Skip to content

Commit

Permalink
Translation 201910312203
Browse files Browse the repository at this point in the history
  • Loading branch information
spirit1431007 committed Oct 31, 2019
1 parent ff23013 commit e336106
Show file tree
Hide file tree
Showing 6 changed files with 287 additions and 288 deletions.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ function memory_archives_list() {
}
if ($mon != $mon_tmp) {
$mon = $mon_tmp;
$output .= '<li class="al_li"><span class="al_mon">'.$mon. __("","sakura"). /*月*/' (<span id="post-num"></span>'._n(" article"," articles","sakura") /*篇文章*/.')</span><ul class="al_post_list">'; //输出月份

This comment has been minimized.

Copy link
@mashirozx

mashirozx Oct 31, 2019

_n() 有 3 个参数。第一个是单数形式的字符串,第二个是复数形式的字符串,第三个是sakura。
所有这里应该是 _n(" article"," articles","sakura")

月份那个考虑加个 switch-case 把 $mon 和月份(Feb. etc)对应起来吧,$mon 输出的是一个数字,如果方便的话后面的日也建立一下索引吧,注意 1st, 2nd, 3rd, 4th 等不同哦😁

$output .= '<li class="al_li"><span class="al_mon">'.$mon. __("","sakura"). /*月*/' (<span id="post-num"></span>'.__(" articles","sakura") /*篇文章*/.')</span><ul class="al_post_list">'; //输出月份
}
$output .= '<li>'.'<a href="'. get_permalink() .'"><span style="color:#0bf;">'.get_the_time('d'.__("","sakura")) /*日*/.'</span>'. get_the_title() .' <span>('.get_post_views(get_the_ID()).' <span class="fa fa-fire" aria-hidden="true"></span> / '. get_comments_number('0', '1', '%') .' <span class="fa fa-commenting" aria-hidden="true"></span>)</span></a></li>'; //输出文章日期和标题
endwhile;
Expand Down
2 changes: 1 addition & 1 deletion inc/swicher.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function font_end_js_control() { ?>
mashiro_option.qq_avatar_api_url = "https://api.2heng.xin/qqinfo/";
mashiro_option.live_search = <?php if ( akina_option('live_search') ){ echo 'true'; } else { echo 'false'; } ?>;

<?php if( akina_option('sakura_skin_bg' )){ $bg_arry=explode(" ", akina_option('sakura_skin_bg' ));?>
<?php if( akina_option('sakura_skin_bg' )){ $bg_arry=explode(",", akina_option('sakura_skin_bg' ));?>
mashiro_option.skin_bg0 = "<?php echo $bg_arry[0] ?>";
mashiro_option.skin_bg1 = "<?php echo $bg_arry[1] ?>";
mashiro_option.skin_bg2 = "<?php echo $bg_arry[2] ?>";
Expand Down
Loading

0 comments on commit e336106

Please sign in to comment.