Skip to content

Commit

Permalink
改进一些翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvshujun0918 committed Apr 30, 2024
1 parent c1ac43c commit eee14bb
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 20 deletions.
4 changes: 2 additions & 2 deletions inc/fun/widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,11 +691,11 @@ function widget( $args, $instance ){
</div>
<div class="row mt10">
<div class="col-6 text-center">
<div class="c-sub t-sm">阅读量</div>
<div class="c-sub t-sm"><?php _e('阅读量', PUOCK) ?></div>
<div><?php echo get_total_views() ?></div>
</div>
<div class="col-6 text-center">
<div class="c-sub t-sm">评论数</div>
<div class="c-sub t-sm"><?php _e('评论数', PUOCK) ?></div>
<div><?php echo $comment_num ?></div>
</div>
</div>
Expand Down
Binary file modified languages/en_US.mo
Binary file not shown.
39 changes: 33 additions & 6 deletions languages/en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ msgstr "Theme"

#: page.php:14 single.php:18
msgid "次阅读"
msgstr "Views"
msgstr " Views"

#: page.php:20 single.php:39
msgid "编辑"
Expand All @@ -1276,27 +1276,30 @@ msgstr ""

#: single.php:84
msgid "发表至:"
msgstr ""
msgstr "Posted to: "

#: single.php:107 single.php:122
msgid "版权声明:"
msgstr "Copyright notice: "
msgstr "Copyright Notice: "

#: single.php:107
msgid "本站原创文章,由"
msgstr "Our original article, by "
msgstr "Our original article was published by"

#: single.php:114
msgid "发表,"
msgstr " publish, "
msgstr ", "

msgid "于"
msgstr "on "

#: single.php:114 single.php:126
msgid "字。"
msgstr " words."

#: single.php:117
msgid "转载说明:"
msgstr ""
msgstr "Reproduction Note: "

#: single.php:122
msgid "本文于"
Expand Down Expand Up @@ -1398,3 +1401,27 @@ msgstr ""

#~ msgid "分享至"
#~ msgstr "Share to"

msgid "正文完"
msgstr "END"

msgid "下一篇"
msgstr "Next"

msgid "上一篇"
msgstr "Previous"

msgid "已是最新的文章"
msgstr "Already the latest article. "

msgid "已是最早的文章"
msgstr "Already the earliest article. "

msgid "阅读量"
msgstr "Views"

msgid "评论数"
msgstr "Comments"

msgid "个评论"
msgstr " Comments"
4 changes: 2 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class="fa-regular fa-pen-to-square mr-1"></i><?php _e('编辑', PUOCK) ?>
</ul>
</div>
<?php endif; ?>
<div class="t-separator c-sub t-sm mt30">正文完</div>
<div class="t-separator c-sub t-sm mt30"><?php _e('正文完', PUOCK) ?></div>
<?php if (pk_is_checked('post_foot_qrcode_open')): ?>
<div class="post-foot-qrcode">
<div class="title"><?php echo pk_get_option('post_foot_qrcode_title', '无说明') ?></div>
Expand Down Expand Up @@ -108,7 +108,7 @@ class="fa-regular fa-pen-to-square mr-1"></i><?php _e('编辑', PUOCK) ?>
if ($authordata) {
echo get_author_posts_url($authordata->ID,
$authordata->user_nicename);
} ?>"><?php the_author() ?> </a><?php the_date('Y-m-d') ?><?php
} ?>"><?php the_author() ?> </a><?php _e('', PUOCK) ?><?php the_date('Y-m-d') ?><?php
_e('发表,', PUOCK) ?><?php _e('共计', PUOCK) ?><?php echo count_words() ?><?php _e('字。', PUOCK) ?>
</div>
<div class="mt-2">
Expand Down
12 changes: 6 additions & 6 deletions templates/module-andb.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
<div class="row text-center pd-links single-next-or-pre t-md ">
<div class="col-6 p-border-r-1 p-0">
<?php if(!empty(get_previous_post_link())): ?>
<?php echo get_previous_post_link("%link","<div class='abhl puock-text'><p class='t-line-1'>%title</p><span>上一篇</span></div>") ?>
<?php echo get_previous_post_link("%link","<div class='abhl puock-text'><p class='t-line-1'>%title</p><span>".__('上一篇', PUOCK) ."</span></div>") ?>
<?php else:?>
<a rel="prev">
<div class="abhl">
<p class="t-line-1">已是最早的文章</p>
<span>上一篇</span>
<p class="t-line-1"><?php _e('已是最早的文章', PUOCK) ?></p>
<span><?php _e('上一篇', PUOCK) ?></span>
</div>
</a>
<?php endif?>
</div>
<div class="col-6 p-0">
<?php if(!empty(get_next_post_link())): ?>
<?php echo get_next_post_link("%link","<div class='abhl puock-text'><p class='t-line-1'>%title</p><span>下一篇</span></div>") ?>
<?php echo get_next_post_link("%link","<div class='abhl puock-text'><p class='t-line-1'>%title</p><span>".__('下一篇', PUOCK) ."</span></div>") ?>
<?php else:?>
<a rel="prev">
<div class="abhl">
<p class="t-line-1">已是最新的文章</p>
<span>下一篇</span>
<p class="t-line-1"><?php _e('已是最新的文章', PUOCK) ?></p>
<span><?php _e('下一篇', PUOCK) ?></span>
</div>
</a>
<?php endif?>
Expand Down
8 changes: 4 additions & 4 deletions templates/module-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class="fa fa-bolt-lightning"></i>置顶</span><?php endif; ?>
<?php if (!pk_is_checked('hide_post_views')): ?>
<span class="mr-2"><i
class="fa-regular fa-eye mr-1"></i><?php pk_get_post_views() ?><span
class="t-sm d-none d-sm-inline-block">次阅读</span></span>
class="t-sm d-none d-sm-inline-block"><?php _e('次阅读', PUOCK) ?></span></span>
<?php endif; ?>
<?php if (!pk_post_comment_is_closed()): ?>
<a class="c-sub-a" <?php pk_link_target() ?> href="<?php the_permalink() ?>#comments">
<i class="fa-regular fa-comment mr-1"></i>
<?php echo get_comments_number() ?><span
class="t-sm d-none d-sm-inline-block">个评论</span></a>
class="t-sm d-none d-sm-inline-block"><?php _e('个评论', PUOCK) ?></span></a>
<?php endif; ?>
</span>
</div>
Expand Down Expand Up @@ -73,13 +73,13 @@ class="fa fa-bolt-lightning"></i>置顶</span><?php endif; ?>
<?php if (!pk_is_checked('hide_post_views')): ?>
<span class="mr-2">
<i class="fa-regular fa-eye mr-1"></i><?php pk_get_post_views() ?><span
class="t-sm d-none d-sm-inline-block">次阅读</span></span>
class="t-sm d-none d-sm-inline-block"><?php _e('次阅读', PUOCK) ?></span></span>
<?php endif; ?>
<?php if (!pk_post_comment_is_closed()): ?>
<a class="c-sub-a" <?php pk_link_target() ?> href="<?php the_permalink() ?>#comments">
<i class="fa-regular fa-comment mr-1"></i>
<?php echo get_comments_number() ?><span
class="t-sm d-none d-sm-inline-block">个评论</span></a>
class="t-sm d-none d-sm-inline-block"><?php _e('个评论', PUOCK) ?></span></a>
<?php endif; ?>
</span>
</div>
Expand Down

0 comments on commit eee14bb

Please sign in to comment.