';edit_comment_link(__('编辑', 'kratos'));echo '';};?>
+
';edit_comment_link(__('编辑', 'kratos'));echo '';};?>
* @license MIT License
- * @version 2020.12.14
+ * @version 2020.12.17
*/
// 添加小工具
@@ -66,15 +66,15 @@ function timeago($ptime){
$ptime = strtotime($ptime);
$etime = time() - $ptime;
if($etime < 1)
- return'刚刚';
+ return '刚刚';
$interval = array(
- 12*30*24*60*60 => ' 年前('.date('m月d日',$ptime).')',
- 30*24*60*60 => ' 个月前('.date('m月d日',$ptime).')',
- 7*24*60*60 => ' 周前('.date('m月d日',$ptime).')',
- 24*60*60 => ' 天前('.date('m月d日',$ptime).')',
- 60*60 => ' 小时前('.date('m月d日',$ptime).')',
- 60 => ' 分钟前('.date('m月d日',$ptime).')',
- 1 => ' 秒前('.date('m月d日',$ptime).')',
+ 12*30*24*60*60 => __(' 年前','kratos').'('.date(__('m月d日','kratos'),$ptime).')',
+ 30*24*60*60 => __(' 个月前','kratos').'('.date(__('m月d日','kratos'),$ptime).')',
+ 7*24*60*60 => __(' 周前','kratos').'('.date(__('m月d日','kratos'),$ptime).')',
+ 24*60*60 => __(' 天前','kratos').'('.date(__('m月d日','kratos'),$ptime).')',
+ 60*60 => __(' 小时前','kratos').'('.date(__('m月d日','kratos'),$ptime).')',
+ 60 => __(' 分钟前','kratos').'('.date(__('m月d日','kratos'),$ptime).')',
+ 1 => __(' 秒前','kratos').'('.date(__('m月d日','kratos'),$ptime).')',
);
foreach($interval as$secs=>$str){
$d=$etime/$secs;
@@ -466,7 +466,7 @@ class widget_comments extends WP_Widget
public function widget($args, $instance)
{
$number = !empty($instance['number']) ? $instance['number'] : '5';
- $title = !empty($instance['title']) ? $instance['title'] : '最近评论';
+ $title = !empty($instance['title']) ? $instance['title'] : __('最近评论', 'kratos');
echo '
diff --git a/languages/kratos.pot b/languages/kratos.pot index 788b817..f290d3b 100644 --- a/languages/kratos.pot +++ b/languages/kratos.pot @@ -3,7 +3,7 @@ msgid "" msgstr "" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "Project-Id-Version: Kratos\n" -"POT-Creation-Date: 2020-12-14 15:09+0800\n" +"POT-Creation-Date: 2021-01-06 10:03+0800\n" "PO-Revision-Date: 2020-02-14 23:32+0800\n" "Last-Translator: \n" "Language-Team: \n" @@ -217,43 +217,51 @@ msgstr "" msgid "浏览文件" msgstr "" -#: inc/theme-article.php:247 inc/theme-article.php:286 +#: inc/theme-article.php:210 +msgid "评论正在提交中" +msgstr "" + +#: inc/theme-article.php:211 +msgid "评论提交成功" +msgstr "" + +#: inc/theme-article.php:249 inc/theme-article.php:288 msgid "编辑" msgstr "" -#: inc/theme-article.php:290 inc/theme-smtp.php:102 +#: inc/theme-article.php:292 inc/theme-smtp.php:102 msgid "回复" msgstr "" -#: inc/theme-article.php:345 +#: inc/theme-article.php:347 msgid "添加表情" msgstr "" -#: inc/theme-article.php:398 +#: inc/theme-article.php:400 msgid "描述" msgstr "" -#: inc/theme-article.php:403 inc/theme-options.php:226 +#: inc/theme-article.php:405 inc/theme-options.php:226 msgid "关键词" msgstr "" -#: inc/theme-article.php:409 +#: inc/theme-article.php:411 msgid "SEO 设置" msgstr "" -#: inc/theme-core.php:80 +#: inc/theme-core.php:84 msgid "您已经赞过了" msgstr "" -#: inc/theme-core.php:81 +#: inc/theme-core.php:85 msgid "感谢您的支持" msgstr "" -#: inc/theme-core.php:82 +#: inc/theme-core.php:86 msgid "打赏作者" msgstr "" -#: inc/theme-core.php:83 +#: inc/theme-core.php:87 msgid "扫码支付" msgstr "" @@ -968,6 +976,40 @@ msgstr "" msgid "侧边栏工具" msgstr "" +#: inc/theme-widgets.php:71 +msgid " 年前" +msgstr "" + +#: inc/theme-widgets.php:71 inc/theme-widgets.php:72 inc/theme-widgets.php:73 +#: inc/theme-widgets.php:74 inc/theme-widgets.php:75 inc/theme-widgets.php:76 +#: inc/theme-widgets.php:77 +msgid "m月d日" +msgstr "" + +#: inc/theme-widgets.php:72 +msgid " 个月前" +msgstr "" + +#: inc/theme-widgets.php:73 +msgid " 周前" +msgstr "" + +#: inc/theme-widgets.php:74 +msgid " 天前" +msgstr "" + +#: inc/theme-widgets.php:75 +msgid " 小时前" +msgstr "" + +#: inc/theme-widgets.php:76 +msgid " 分钟前" +msgstr "" + +#: inc/theme-widgets.php:77 +msgid " 秒前" +msgstr "" + #: inc/theme-widgets.php:115 msgid "发布于 " msgstr "" @@ -1089,7 +1131,8 @@ msgstr "" msgid "默认显示:" msgstr "" -#: inc/theme-widgets.php:459 +#: inc/theme-widgets.php:459 inc/theme-widgets.php:469 +#: inc/theme-widgets.php:489 msgid "最近评论" msgstr "" diff --git a/pages/page-content.php b/pages/page-content.php index adef27d..1aeb289 100644 --- a/pages/page-content.php +++ b/pages/page-content.php @@ -3,7 +3,7 @@ * 文章列表 * @author Seaton Jiang
* @license MIT License
- * @version 2020.12.14
+ * @version 2021.01.06
*/
?>
@@ -39,7 +39,7 @@
-
+
diff --git a/single.php b/single.php
index b9594ee..253353c 100644
--- a/single.php
+++ b/single.php
@@ -3,7 +3,7 @@
* 文章内容
* @author Seaton Jiang
* @license MIT License
- * @version 2020.06.08
+ * @version 2021.01.06
*/
get_header();
@@ -48,7 +48,7 @@ $select_col = $col_array[kratos_option('g_article_widgets', 'two_side')];
-
+
ID, 'love', true)) { echo get_post_meta($post->ID, 'love', true); } else {echo '0'; } _e('人点赞', 'kratos'); ?>
@@ -125,8 +125,8 @@ $select_col = $col_array[kratos_option('g_article_widgets', 'two_side')];
' . __( '暂无' , 'kratos') . ''; }?>
-
-
+
+