Skip to content

Commit

Permalink
upd&fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
yzxoi committed Feb 14, 2022
1 parent 6d61c8c commit 1a4143a
Show file tree
Hide file tree
Showing 8 changed files with 1,011 additions and 752 deletions.
6 changes: 3 additions & 3 deletions functions.php
Expand Up @@ -604,7 +604,7 @@ function get_article_meta($type){
if ($type == 'sticky'){
return '<div class="post-meta-detail post-meta-detail-stickey">
<i class="fa fa-thumb-tack" aria-hidden="true"></i>
' . __('置顶', 'argon') . '
' . _x('置顶', 'pinned', 'argon') . '
</div>';
}
if ($type == 'needpassword'){
Expand Down Expand Up @@ -1059,7 +1059,7 @@ function argon_comment_format($comment, $args, $depth){
echo '<span class="badge badge-primary badge-admin">' . __('博主', 'argon') . '</span>';}
?>
<?php if ($GLOBALS['argon_comment_options']['enable_pinning'] && get_comment_meta(get_comment_ID(), "pinned", true) == "true"){
echo '<span class="badge badge-danger badge-pinned"><i class="fa fa-thumb-tack" aria-hidden="true"></i> ' . __('置顶', 'argon') . '</span>';
echo '<span class="badge badge-danger badge-pinned"><i class="fa fa-thumb-tack" aria-hidden="true"></i> ' . _x('置顶', 'pinned', 'argon') . '</span>';
}?>
<?php if (is_comment_private_mode(get_comment_ID()) && user_can_view_comment(get_comment_ID())){
echo '<span class="badge badge-success badge-private-comment">' . __('悄悄话', 'argon') . '</span>';}
Expand Down Expand Up @@ -1093,7 +1093,7 @@ function argon_comment_format($comment, $args, $depth){
if (get_comment_meta(get_comment_ID(), "pinned", true) == "true") { ?>
<button class="comment-unpin btn btn-sm btn-outline-primary" data-id="<?php comment_ID(); ?>" type="button" style="margin-right: 2px;"><?php _e('取消置顶', 'argon')?></button>
<?php } else { ?>
<button class="comment-pin btn btn-sm btn-outline-primary" data-id="<?php comment_ID(); ?>" type="button" style="margin-right: 2px;"><?php _e('置顶', 'argon')?></button>
<button class="comment-pin btn btn-sm btn-outline-primary" data-id="<?php comment_ID(); ?>" type="button" style="margin-right: 2px;"><?php _ex('置顶', 'to pin', 'argon')?></button>
<?php }
} ?>
<?php if ((check_comment_token(get_comment_ID()) || check_login_user_same($comment -> user_id)) && (get_option("argon_comment_allow_editing") != "false")) { ?>
Expand Down
Binary file modified languages/en_US.mo
Binary file not shown.
18 changes: 12 additions & 6 deletions languages/en_US.po
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: argon\n"
"POT-Creation-Date: 2022-02-14 14:49+0800\n"
"PO-Revision-Date: 2022-02-14 14:58+0800\n"
"POT-Creation-Date: 2022-02-14 19:14+0800\n"
"PO-Revision-Date: 2022-02-14 19:14+0800\n"
"Last-Translator: \n"
"Language-Team: solstice23\n"
"Language: en_US\n"
Expand All @@ -12,7 +12,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;_x;_ex;_n;_nx\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n;_nx\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: assets\n"
"X-Poedit-SearchPathExcluded-1: languages\n"
Expand Down Expand Up @@ -194,10 +194,11 @@ msgstr "minutes"
msgid "小时"
msgstr "hour"

#: functions.php:607 functions.php:1062 functions.php:1096
#: functions.php:607 functions.php:1062
#: template-parts/content-shuoshuo-details.php:16
#: template-parts/content-shuoshuo-preview.php:24
#: template-parts/content-shuoshuo.php:16
msgctxt "pinned"
msgid "置顶"
msgstr "Pinned"

Expand Down Expand Up @@ -266,6 +267,11 @@ msgstr " ago"
msgid "取消置顶"
msgstr "Unpin"

#: functions.php:1096
msgctxt "to pin"
msgid "置顶"
msgstr "Pin"

#: functions.php:1102
msgid "回复"
msgstr "Reply"
Expand Down Expand Up @@ -336,7 +342,7 @@ msgstr "The comment is already unpinned"

#: functions.php:1612
msgid "不能置顶子评论"
msgstr "Cannot pin a sub comment"
msgstr "Cannot pin a sub-comment"

#: functions.php:1618
msgid "不能置顶悄悄话"
Expand Down Expand Up @@ -2316,7 +2322,7 @@ msgstr ""

#: settings.php:1458
msgid "在子评论中显示被回复者用户名"
msgstr "Display respondent username in subcomments"
msgstr "Display respondent username in sub-comments"

#: settings.php:1465
msgid ""
Expand Down
Binary file modified languages/zh_TW.mo
Binary file not shown.

0 comments on commit 1a4143a

Please sign in to comment.