From f39ed3d821e429c7a124213abc802a903d2cbf16 Mon Sep 17 00:00:00 2001 From: spirit Date: Thu, 31 Oct 2019 13:33:52 +0800 Subject: [PATCH] Translation 201910311333 --- comments.php | 30 +++++++++++++++--------------- footer.php | 8 ++++---- functions.php | 10 +++++----- header.php | 2 +- search.php | 4 ++-- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/comments.php b/comments.php index 6228e4d..3d9abab 100644 --- a/comments.php +++ b/comments.php @@ -5,7 +5,7 @@ */ /*if('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) - die(esc_html__('Please do not load this page directly.', 'akina'));*/ + die(__('Please do not load this page directly.', 'akina'));*/ if(post_password_required()){ return; @@ -18,13 +18,13 @@
-
- - +
- +
-

Comments |

+

Comments |

@@ -40,7 +40,7 @@
-
+
@@ -57,15 +57,15 @@ 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => '', - 'title_reply_to' => '
' . esc_html__('Leave a Reply to', 'akina') . ' %s' . '
', - 'cancel_reply_link' => esc_html__('Cancel Reply', 'akina'), - 'label_submit' => esc_html__('BiuBiuBiu~', 'akina'), - 'comment_field' => '

Markdown Supported while Forbidden

+ 'title_reply_to' => '
' . __('Leave a Reply to', 'sakura') . ' %s' . '
', + 'cancel_reply_link' => __('Cancel Reply', 'sakura'), + 'label_submit' => __('BiuBiuBiu~', 'sakura'), + 'comment_field' => '

Markdown Supported while Forbidden

- 戳我试试 OωO - 嘿嘿嘿 ヾ(≧∇≦*)ゝ + ' . __("Click me OωO", "sakura")/*戳我试试 OωO*/ . ' + ' . __("HeHeHe ヾ(≧∇≦*)ゝ", "sakura")/*嘿嘿嘿 ヾ(≧∇≦*)ゝ*/ . '

@@ -90,13 +90,13 @@ 'fields' => apply_filters( 'comment_form_default_fields', array( 'avatar' => '
', 'author' => - '', + '', 'email' => - '', + '', 'url' => - '
' . $robot_comments . $private_ms . $mail_notify , + '' . $robot_comments . $private_ms . $mail_notify , 'qq' => - '' + '' ) ) ); diff --git a/footer.php b/footer.php index bee30d5..8460cf6 100644 --- a/footer.php +++ b/footer.php @@ -59,7 +59,7 @@ 2, 'theme_location' => 'primary', 'container' => false ) ); ?> @@ -72,7 +72,7 @@
- +
@@ -80,9 +80,9 @@
-

+

- +
diff --git a/functions.php b/functions.php index 78647d9..328fa54 100644 --- a/functions.php +++ b/functions.php @@ -1254,7 +1254,7 @@ function siren_private(){ //时间序列 function memory_archives_list() { if( true ){ - $output = '

[全部展开/收缩]

'; + $output = '

['.__( "All expand/collapse", "sakura" )/*全部展开/收缩*/.']

'; $the_query = new WP_Query( 'posts_per_page=-1&ignore_sticky_posts=1&post_type=post' ); //update: 加上忽略置顶文章 $year=0; $mon=0; $i=0; $j=0; while ( $the_query->have_posts() ) : $the_query->the_post(); @@ -1265,13 +1265,13 @@ function memory_archives_list() { if ($year != $year_tmp && $year > 0) $output .= ''; if ($year != $year_tmp) { $year = $year_tmp; - $output .= '

'. $year .' 年

'; @@ -1664,7 +1664,7 @@ EOS; foreach ($comments as $comment) { $is_private = get_comment_meta($comment->comment_ID, '_private', true); if($is_private){ - $output .= '{"type":"comment","link":"'.get_comment_link($comment).'","title":'.json_encode(get_the_title($comment->comment_post_ID)).',"comments":"","text":'.json_encode($comment->comment_author.":该评论为私密评论").'},'; + $output .= '{"type":"comment","link":"'.get_comment_link($comment).'","title":'.json_encode(get_the_title($comment->comment_post_ID)).',"comments":"","text":'.json_encode($comment->comment_author.":".__("The comment is private","sakura")/*该评论为私密评论*/).'},'; continue; }else{ $output .= '{"type":"comment","link":"'.get_comment_link($comment).'","title":'.json_encode(get_the_title($comment->comment_post_ID)).',"comments":"","text":'.json_encode(str_replace($vowels, " ",preg_replace($regex," ",$comment->comment_author.":".$comment->comment_content))).'},'; diff --git a/header.php b/header.php index 3efbd2d..2fc982f 100644 --- a/header.php +++ b/header.php @@ -32,7 +32,7 @@ Theme by Mashiro <?php global $page, $paged;wp_title( '-', true, 'right' ); bloginfo( 'name' );$site_description = get_bloginfo( 'description', 'display' ); -if ( $site_description && ( is_home() || is_front_page() ) ) echo " - $site_description";if ( $paged >= 2 || $page >= 2 ) echo ' - ' . sprintf( __( '第 %s 页'), max( $paged, $page ) );?> +if ( $site_description && ( is_home() || is_front_page() ) ) echo " - $site_description";if ( $paged >= 2 || $page >= 2 ) echo ' - ' . sprintf( __( 'page %s ','sakura'), max( $paged, $page ) );/*第 %s 页*/?> if ( have_posts() ) : ?> - +