From f39ed3d821e429c7a124213abc802a903d2cbf16 Mon Sep 17 00:00:00 2001 From: spirit Date: Thu, 31 Oct 2019 13:33:52 +0800 Subject: [PATCH 1/5] 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() ) : ?> - +
From ff23013144d91a4b6b5b491ce870524a45124e24 Mon Sep 17 00:00:00 2001 From: spirit Date: Thu, 31 Oct 2019 17:25:24 +0800 Subject: [PATCH 2/5] Translation 201910311725 --- 404.php | 9 +++---- functions.php | 2 +- inc/categories-images.php | 18 +++++++------- inc/template-tags.php | 16 ++++++------ inc/theme_plus.php | 52 +++++++++++++++++++-------------------- layouts/duoshuo.php | 2 +- tpl/content-category.php | 2 +- tpl/content-image.php | 4 +-- tpl/content-none.php | 8 +++--- tpl/content-page.php | 4 +-- tpl/content-single.php | 4 +-- tpl/content-status.php | 4 +-- tpl/content-thumb.php | 4 +-- tpl/single-image.php | 2 +- user/page-register.php | 26 ++++++++++---------- 15 files changed, 78 insertions(+), 79 deletions(-) diff --git a/404.php b/404.php index cc1cc28..caf76ae 100644 --- a/404.php +++ b/404.php @@ -14,7 +14,7 @@ <?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'), max( $paged, $page ) );/*第 %s 页*/?> @@ -43,12 +43,11 @@ if (!no_report) httpGet(report_url);
-

别急,试试站内搜索?

-

Don't worry, search in site?

+

diff --git a/functions.php b/functions.php index 328fa54..1dda4cd 100644 --- a/functions.php +++ b/functions.php @@ -1269,7 +1269,7 @@ function memory_archives_list() { } if ($mon != $mon_tmp) { $mon = $mon_tmp; - $output .= '
  • '.$mon. __("","sakura"). /*月*/' ('.__("article(s)","sakura") /*篇文章*/.')
      '; //输出月份 + $output .= '
    • '.$mon. __("","sakura"). /*月*/' ('._n(" article"," articles","sakura") /*篇文章*/.')
        '; //输出月份 } $output .= '
      • '.''.get_the_time('d'.__("","sakura")) /*日*/.''. get_the_title() .' ('.get_post_views(get_the_ID()).' / '. get_comments_number('0', '1', '%') .' )
      • '; //输出文章日期和标题 endwhile; diff --git a/inc/categories-images.php b/inc/categories-images.php index 06e65cf..1a5a1fc 100644 --- a/inc/categories-images.php +++ b/inc/categories-images.php @@ -42,10 +42,10 @@ function z_add_texonomy_field() { } echo '
        - +
        - +
        '.z_script(); } @@ -63,10 +63,10 @@ function z_edit_texonomy_field($taxonomy) { else $image_url = z_taxonomy_image_url( $taxonomy->term_id, NULL, TRUE ); echo '
  • - + '.z_script(); } @@ -194,8 +194,8 @@ function z_quick_edit_custom_box($column_name, $screen, $name) { 暂无 - - + + @@ -208,7 +208,7 @@ function z_quick_edit_custom_box($column_name, $screen, $name) { function z_taxonomy_columns( $columns ) { $new_columns = array(); $new_columns['cb'] = $columns['cb']; - $new_columns['thumb'] = __('图像', 'categories-images'); + $new_columns['thumb'] = __('image', 'sakura')/*图像*/; unset( $columns['cb'] ); @@ -220,7 +220,7 @@ function z_taxonomy_columns( $columns ) { */ function z_taxonomy_column( $columns, $column, $id ) { if ( $column == 'thumb' ) - $columns = '' . __('暂无', 'categories-images') . ''; + $columns = '' . __('no image', 'sakura') /*暂无*/. ''; return $columns; } diff --git a/inc/template-tags.php b/inc/template-tags.php index e36e441..859e84c 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -25,12 +25,12 @@ function akina_posted_on() { ); $posted_on = sprintf( - esc_html_x( 'Posted on %s', 'post date', 'akina' ), + _x( 'Posted on %s', 'post date', 'sakura' ), '' . $time_string . '' ); $byline = sprintf( - esc_html_x( 'by %s', 'post author', 'akina' ), + _x( 'by %s', 'post author', 'sakura' ), '' . esc_html( get_the_author() ) . '' ); @@ -47,29 +47,29 @@ function akina_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ - $categories_list = get_the_category_list( esc_html__( ', ', 'akina' ) ); + $categories_list = get_the_category_list( __( ', ', 'sakura' ) ); if ( $categories_list && akina_categorized_blog() ) { - printf( '' . esc_html__( 'Posted in %1$s', 'akina' ) . '', $categories_list ); // WPCS: XSS OK. + printf( '' . __( 'Posted in %1$s', 'sakura' ) . '', $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ - $tags_list = get_the_tag_list( '', esc_html__( ', ', 'akina' ) ); + $tags_list = get_the_tag_list( '', __( ', ', 'sakura' ) ); if ( $tags_list ) { - printf( '' . esc_html__( 'Tagged %1$s', 'akina' ) . '', $tags_list ); // WPCS: XSS OK. + printf( '' . __( 'Tagged %1$s', 'sakura' ) . '', $tags_list ); // WPCS: XSS OK. } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; /* translators: %s: post title */ - comments_popup_link( sprintf( wp_kses( __( 'Leave a Comment on %s', 'akina' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) ); + comments_popup_link( sprintf( wp_kses( __( 'Leave a Comment on %s', 'sakura' ), array( 'span' => array( 'class' => array() ) ) ), get_the_title() ) ); echo ''; } edit_post_link( sprintf( /* translators: %s: Name of current post */ - esc_html__( 'Edit %s', 'akina' ), + __( 'Edit %s', 'sakura' ), the_title( '"', '"', false ) ), '', diff --git a/inc/theme_plus.php b/inc/theme_plus.php index 494c95d..133a903 100644 --- a/inc/theme_plus.php +++ b/inc/theme_plus.php @@ -61,10 +61,10 @@ function get_random_bg_url(){ */ function poi_time_since( $older_date, $comment_date = false, $text = false ) { $chunks = array( - array( 24 * 60 * 60, __( ' 天前', 'akina' ) ), - array( 60 * 60 , __( ' 小时前', 'akina' ) ), - array( 60 , __( ' 分钟前', 'akina' ) ), - array( 1, __( ' 秒前', 'akina' ) ) + array( 24 * 60 * 60, __( ' days ago', 'sakura' ) ),/*天前*/ + array( 60 * 60 , __( ' hours ago', 'sakura' ) ),/*小时前*/ + array( 60 , __( ' minutes ago', 'sakura' ) ),/*分钟前*/ + array( 1, __( ' seconds ago', 'sakura' ) )/*秒前*/ ); $newer_date = time() - (akina_option('time_zone_fix')*60*60); @@ -72,7 +72,7 @@ function poi_time_since( $older_date, $comment_date = false, $text = false ) { if($text){ $output = ''; }else{ - $output = '发布于 '; + $output = __('Posted on ','sakura')/*发布于*/; } if ( $since < 30 * 24 * 60 * 60 ) { @@ -128,7 +128,7 @@ add_filter( 'comment_text' , 'comment_add_at', 20, 2); /* * Ajax评论 */ -if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) { wp_die('请升级到4.4以上版本'); } +if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) { wp_die(__('Please upgrade wordpress to version 4.4+','sakura')); }/*请升级到4.4以上版本*/ // 提示 if(!function_exists('siren_ajax_comment_err')) { function siren_ajax_comment_err($t) { @@ -184,7 +184,7 @@ if(!function_exists('siren_ajax_comment_callback')) {
    @@ -230,16 +230,16 @@ function Exuser_center(){ ?> function gopage(url,type){ URL = url; if(type == 1){ - TYPE = '管理后台'; + TYPE = ; }else{ - TYPE = '主页'; + TYPE = ; } for(var i=secs;i>=0;i--){ window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000); } } function doUpdate(num){ - document.getElementById('login-showtime').innerHTML = '空降成功,'+num+'秒后自动转到'+TYPE; + document.getElementById('login-showtime').innerHTML = ''+num+''+TYPE; if(num == 0) { window.location=URL; } } @@ -262,16 +262,16 @@ function login_ok(){ global $current_user; get_currentuserinfo(); ?> - - + + user_email){echo '

    '.$current_user->user_email.'

    ';} ?>

    - 首页 + - 后台 + - 登出? +

    ', '', false); - $t .= '

    '. get_the_author() .'·'. poi_time_since(get_post_time('U', true),false,true) .'·'. get_post_views(get_the_ID()) .' 次阅读'.$edit_this_post_link.'

    '; + $t .= '

    '. get_the_author() .'·'. poi_time_since(get_post_time('U', true),false,true) .'·'. get_post_views(get_the_ID()) .' '._n("View","Views",get_post_views(get_the_ID()),"sakura")/*次阅读*/.$edit_this_post_link.'

    '; endwhile; endif; }elseif(is_page()){ $full_image_url = $full_image_url[0]; @@ -308,7 +308,7 @@ function the_headPattern(){ $t .= ' '.$des.''; }elseif(is_search()){ $full_image_url = get_random_bg_url(); - $t .= '

    关于“ '.get_search_query().' ”的搜索结果

    '; + $t .= '

    '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'

    '; } if(akina_option('patternimg')) $full_image_url = false; if(!is_home() && $full_image_url) : ?> @@ -366,7 +366,7 @@ function the_video_headPattern_hls(){ }elseif(is_search()){ $full_image_url = get_random_bg_url(); $thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg'; - $t .= '

    关于“ '.get_search_query().' ”的搜索结果

    '; + $t .= '

    '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'

    '; } $thubm_image_url = $thubm_image_url . "#lazyload-blur"; $thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url); @@ -414,12 +414,12 @@ function the_video_headPattern_normal(){ $ava = akina_option('focus_logo', '') ? akina_option('focus_logo', '') : get_avatar_url(get_the_author_meta('user_email')); global $user_ID; if($user_ID && current_user_can('level_10')) { - $edit_this_post_link = '·EDIT'; + $edit_this_post_link = '·'._e("EDIT","sakura").''; } else { $edit_this_post_link = ''; } $t .= the_title( '

    ', '

    ', false); - $t .= '

    '. get_the_author() .'·'. poi_time_since(get_post_time('U', true),false,true) .'·'. get_post_views(get_the_ID()) .' 次阅读'.$edit_this_post_link.'

    '; + $t .= '

    '. get_the_author() .'·'. poi_time_since(get_post_time('U', true),false,true) .'·'. get_post_views(get_the_ID()) .' '._n("View","Views",get_post_views(get_the_ID()),"sakura")/*次阅读*/.$edit_this_post_link.'

    '; endwhile; endif; }elseif(is_page()){ $full_image_url = $full_image_url[0]; @@ -434,7 +434,7 @@ function the_video_headPattern_normal(){ }elseif(is_search()){ $full_image_url = get_random_bg_url(); $thubm_image_url = 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.1/img/svg/loader/orange.progress-bar-stripe-loader.svg'; - $t .= '

    关于“ '.get_search_query().' ”的搜索结果

    '; + $t .= '

    '.printf( __( "Search results for \" %s \"","sakura" ), get_search_query()) ./*关于“ '.get_search_query().' ”的搜索结果*/'

    '; } $thubm_image_url = $thubm_image_url . "#lazyload-blur"; $thubm_image_url = str_replace(akina_option('qiniu_cdn'),'https://cdn.2heng.xin/',$thubm_image_url); @@ -476,11 +476,11 @@ function header_user_menu(){
    @@ -723,7 +723,7 @@ function siren_private_message_hook($comment_content , $comment){ $current_commenter = wp_get_current_commenter(); if ( $is_private ) $comment_content = '#私密# ' . $comment_content; if ( $current_commenter['comment_author_email'] == $email || $parent_email == $current_commenter['comment_author_email'] || current_user_can('delete_user') ) return $comment_content; - if ( $is_private ) return ' 该评论为私密评论'; + if ( $is_private ) return ' '.__("The comment is private","sakura")/*该评论为私密评论*/; return $comment_content; } add_filter('get_comment_text','siren_private_message_hook',10,2); diff --git a/layouts/duoshuo.php b/layouts/duoshuo.php index 1f07b41..bbf6358 100644 --- a/layouts/duoshuo.php +++ b/layouts/duoshuo.php @@ -9,7 +9,7 @@
    -
    +
    diff --git a/tpl/content-category.php b/tpl/content-category.php index 2cd09cd..45595c2 100644 --- a/tpl/content-category.php +++ b/tpl/content-category.php @@ -27,7 +27,7 @@
    - +
    diff --git a/tpl/content-image.php b/tpl/content-image.php index 2849885..1c317bb 100644 --- a/tpl/content-image.php +++ b/tpl/content-image.php @@ -32,10 +32,10 @@
    - +
    - 热度 +
    diff --git a/tpl/content-none.php b/tpl/content-none.php index 81c5e9b..dd894e6 100644 --- a/tpl/content-none.php +++ b/tpl/content-none.php @@ -11,18 +11,18 @@
    -

    点击这里开始.', 'akina' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?>

    +

    Click here to start.', 'sakura' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); /*准备好发布你的第一篇文章了么? 点击这里开始.*/?>

    -

    +

      -

      +

      diff --git a/tpl/content-page.php b/tpl/content-page.php index 0736a21..e340619 100644 --- a/tpl/content-page.php +++ b/tpl/content-page.php @@ -21,7 +21,7 @@ the_content(); wp_link_pages( array( - 'before' => '
      -
      知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议
      +
      diff --git a/tpl/content-status.php b/tpl/content-status.php index 0d12d04..d58beaf 100644 --- a/tpl/content-status.php +++ b/tpl/content-status.php @@ -28,10 +28,10 @@
      - +
      - 热度 +
      diff --git a/tpl/content-thumb.php b/tpl/content-thumb.php index aabeb6b..0cb8a8b 100644 --- a/tpl/content-thumb.php +++ b/tpl/content-thumb.php @@ -49,8 +49,8 @@ $the_cat = get_the_category();

    diff --git a/tpl/single-image.php b/tpl/single-image.php index 0463b26..fc7ccb5 100644 --- a/tpl/single-image.php +++ b/tpl/single-image.php @@ -15,7 +15,7 @@

    -

    post_date_gmt)); ?>   次阅读

    +

    post_date_gmt)); ?>  


    diff --git a/user/page-register.php b/user/page-register.php index 1f4579d..d21fb13 100644 --- a/user/page-register.php +++ b/user/page-register.php @@ -11,40 +11,40 @@ if( !empty($_POST['register_reg']) ) { // Check the username if ( $sanitized_user_login == '' ) { - $error .= '错误:请输入用户名。
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("Please enter username.","sakura")./*请输入用户名。*/'
    '; } elseif ( ! validate_username( $sanitized_user_login ) ) { - $error .= '错误:此用户名包含无效字符,请输入有效的用户名。
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("Invalid characters, please enter a valid username.","sakura")./*此用户名包含无效字符,请输入有效的用户名。*/'
    '; $sanitized_user_login = ''; } elseif ( username_exists( $sanitized_user_login ) ) { - $error .= '错误:该用户名已被注册。
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("This username has been registered.","sakura")./*该用户名已被注册。*/'
    '; } // Check the e-mail address if ( $user_email == '' ) { - $error .= '错误:请填写电子邮件地址。
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("Please enter email address.","sakura")./*请填写电子邮件地址。*/'
    '; } elseif ( ! is_email( $user_email ) ) { - $error .= '错误:电子邮件地址不正确。
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("Invalid email address","sakura")./*电子邮件地址不正确。*/'
    '; $user_email = ''; } elseif ( email_exists( $user_email ) ) { - $error .= '错误:该电子邮件地址已经被注册。
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("This email address has been registered.","sakura")./*该电子邮件地址已经被注册。*/'
    '; } // Check the password if(strlen($_POST['user_pass']) < 6){ - $error .= '错误:密码长度至少6位。
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("Password length is at least 6 digits","sakura")./*密码长度至少6位。*/'
    '; }elseif($_POST['user_pass'] != $_POST['user_pass2']){ - $error .= '错误:两次输入的密码不一致。
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("Inconsistent password entered twice","sakura")./*两次输入的密码不一致。*/'
    '; } // verification if(akina_option('login_validate') && strlen($_POST['verification']) > 0 ){ - $error .= '错误:请拖动滑块验证身份
    '; + $error .= ''.__("Error","sakura")./*错误*/':'.__("Please drag the slider to verify identity","sakura")./*请拖动滑块验证身份*/'
    '; } if($error == '') { $user_id = wp_create_user( $sanitized_user_login, $_POST['user_pass'], $user_email ); if ( !$user_id ) { - $error .= sprintf( '错误:无法完成注册请求... 请联系管理员
    ', get_option( 'admin_email' ) ); + $error .= ''.__("Error","sakura")./*错误*/':'.__("Unable to complete registration request...Please contact","sakura")./*无法完成注册请求... 请联系*/''.__("administrator","sakura")./*管理员*/'
    '; }else if (!is_user_logged_in()) { $user = get_userdatabylogin($sanitized_user_login); $user_id = $user->ID; @@ -73,14 +73,14 @@ if( !empty($_POST['register_reg']) ) {
    - »拖动滑块验证 + »
    '.$error.'

    '; } ?> - + ">
    //window.location.href=''; -

    暂未开放注册。

    +

    From e3361060ef08b34ce919c7ebfa9a7e838fe1c6ce Mon Sep 17 00:00:00 2001 From: spirit Date: Thu, 31 Oct 2019 22:03:39 +0800 Subject: [PATCH 3/5] Translation 201910312203 --- functions.php | 2 +- inc/swicher.php | 2 +- options.php | 565 ++++++++++++++++++++--------------------- tpl/content-image.php | 2 +- tpl/content-status.php | 2 +- tpl/content-thumb.php | 2 +- 6 files changed, 287 insertions(+), 288 deletions(-) diff --git a/functions.php b/functions.php index 1dda4cd..a2876e8 100644 --- a/functions.php +++ b/functions.php @@ -1269,7 +1269,7 @@ function memory_archives_list() { } if ($mon != $mon_tmp) { $mon = $mon_tmp; - $output .= '
  • '.$mon. __("","sakura"). /*月*/' ('._n(" article"," articles","sakura") /*篇文章*/.')
      '; //输出月份 + $output .= '
    • '.$mon. __("","sakura"). /*月*/' ('.__(" articles","sakura") /*篇文章*/.')
        '; //输出月份 } $output .= '
      • '.''.get_the_time('d'.__("","sakura")) /*日*/.''. get_the_title() .' ('.get_post_views(get_the_ID()).' / '. get_comments_number('0', '1', '%') .' )
      • '; //输出文章日期和标题 endwhile; diff --git a/inc/swicher.php b/inc/swicher.php index 508c686..f2ec4d0 100644 --- a/inc/swicher.php +++ b/inc/swicher.php @@ -17,7 +17,7 @@ mashiro_option.qq_api_url = "https://api.2heng.xin/qqinfo/"; mashiro_option.qq_avatar_api_url = "https://api.2heng.xin/qqinfo/"; mashiro_option.live_search = ; - + mashiro_option.skin_bg0 = ""; mashiro_option.skin_bg1 = ""; mashiro_option.skin_bg2 = ""; diff --git a/options.php b/options.php index 5c80fde..0cfa4af 100644 --- a/options.php +++ b/options.php @@ -109,232 +109,231 @@ function optionsframework_options() { //基本设置 $options[] = array( - 'name' => __('基本设置', 'sakura'), + 'name' => __('Basic settings', 'sakura'),/*基本设置*/ 'type' => 'heading'); $options[] = array( - 'name' => __('站点名称', 'sakura'), + 'name' => __('Site title', 'sakura'),/*站点名称*/ 'desc' => __('樱花庄的白猫', 'sakura'), 'id' => 'site_name', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('作者', 'sakura'), + 'name' => __('Author', 'sakura'),/*作者*/ 'desc' => __('Mashiro', 'sakura'), 'id' => 'author_name', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __("主题风格", 'sakura'), + 'name' => __('Theme style', 'sakura'),/*主题风格*/ 'id' => 'theme_skin', 'std' => "#FE9600", - 'desc' => __('自定义主题颜色', ''), + 'desc' => __('Custom theme color', 'sakura'),/*自定义主题颜色*/ 'type' => "color" ); $options[] = array( - 'name' => __('切换主题菜单透明度', 'sakura'), - 'desc' => __('调整切换主题菜单透明度,值越小越透明,默认透明度0.8', 'sakura'), + 'name' => __('Theme scheme tool transparency', 'sakura'),/*切换主题菜单透明度*/ + 'desc' => __('Adjust the theme scheme menu transparency, the smaller the value, the more transparent. The default value is 0.8', 'sakura'),/*调整切换主题菜单透明度,值越小越透明。默认透明度0.8*/ 'id' => 'sakura_skin_alpha', 'std' => '0.8', 'type' => 'select', 'options'=>array( - '0'=> __('全透明',''), - '0.1'=> __('透明度0.1',''), - '0.2'=> __('透明度0.2',''), - '0.3'=> __('透明度0.3',''), - '0.4'=> __('透明度0.4',''), - '0.5'=> __('透明度0.5',''), - '0.6'=> __('透明度0.6',''), - '0.7'=> __('透明度0.7',''), - '0.8'=> __('透明度0.8',''), - '0.9'=> __('透明度0.9',''), - '1'=> __('不透明',''), + '0'=> __('Transparent','sakura'),/*全透明*/ + '0.1'=> __('Transparency 0.1','sakura'),/*透明度0.1*/ + '0.2'=> __('Transparency 0.2','sakura'),/*透明度0.2*/ + '0.3'=> __('Transparency 0.3','sakura'),/*透明度0.3*/ + '0.4'=> __('Transparency 0.4','sakura'),/*透明度0.4*/ + '0.5'=> __('Transparency 0.5','sakura'),/*透明度0.5*/ + '0.6'=> __('Transparency 0.6','sakura'),/*透明度0.6*/ + '0.7'=> __('Transparency 0.7','sakura'),/*透明度0.7*/ + '0.8'=> __('Transparency 0.8','sakura'),/*透明度0.8*/ + '0.9'=> __('Transparency 0.9','sakura'),/*透明度0.9*/ + '1'=> __('Opaque','sakura'),/*不透明*/ )); $options[] = array( - 'name' => __('切换网页背景', 'sakura'), - 'desc' => __('前台切换网页背景,共8个url,使用空格分隔,顺序对应前台切换主题按钮位置(按钮顺序从左至右,从上至下),如不需要背景则填写对应位置为none。注意:如果主题是从v3.2.3及以下更新过来的,请务必将本配置页的【其他】标签下的【版本控制】参数修改为任意新值! -', 'sakura'), + 'name' => __('Change web background', 'sakura'),/*切换网页背景*/ + 'desc' => __('The foreground switches the background of the webpage. There are 8 urls separated by commas. The order corresponds to the foreground scheme tool button position (the order of the buttons is from left to right, top to bottom). If no background is needed, fill in the corresponding position as none.Note: If the theme is updated from v3.2.3 and below, be sure to change the [Version Control] parameter under the [Other] tab of this configuration page to any new value!', 'sakura'),/*前台切换网页背景,共8个url,使用英文逗号分隔,顺序对应前台切换主题按钮位置(按钮顺序从左至右,从上至下),如不需要背景则填写对应位置为none。注意:如果主题是从v3.2.3及以下更新过来的,请务必将本配置页的【其他】标签下的【版本控制】参数修改为任意新值!*/ 'id' => 'sakura_skin_bg', - 'std' => 'none https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/sakura.png https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/plaid2dbf8.jpg https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/star02.png https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/kyotoanimation.png https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/dot_orange.gif https://api.mashiro.top/bing/ https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.2/other-sites/api-index/images/me.png', + 'std' => 'none,https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/sakura.png,https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/plaid2dbf8.jpg,https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/star02.png,https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/kyotoanimation.png,https://cdn.jsdelivr.net/gh/spirit1431007/cdn@1.6/img/dot_orange.gif,https://api.mashiro.top/bing/,https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.2/other-sites/api-index/images/me.png', 'type' => 'textarea'); $options[] = array( - 'name' => __('个人头像', 'sakura'), - 'desc' => __('最佳高度尺寸130*130px。', 'sakura'), + 'name' => __('Personal avatar', 'sakura'),/*个人头像*/ + 'desc' => __('The best size is 130px*130px.', 'sakura'),/*最佳尺寸130px*130px。*/ 'id' => 'focus_logo', 'type' => 'upload'); $options[] = array( - 'name' => __('文字版LOGO', 'sakura'), - 'desc' => __('首页不显示上方的头像,而是显示一段文字(此处留空则使用上方的头像)。文字建议不要过长,16个字节左右为宜。', 'sakura'), + 'name' => __('Text LOGO', 'sakura'),/*文字版LOGO*/ + 'desc' => __('The home page does not display the avatar above, but displays a paragraph of text (use the avatar above if left blank).The text is recommended not to be too long, about 16 bytes is appropriate.', 'sakura'),/*首页不显示上方的头像,而是显示一段文字(此处留空则使用上方的头像)。文字建议不要过长,16个字节左右为宜。*/ 'id' => 'focus_logo_text', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('logo', 'sakura'), - 'desc' => __('最佳高度尺寸40px。', 'sakura'), + 'desc' => __('The best height size is 40px。', 'sakura'),/*最佳高度尺寸40px。*/ 'id' => 'akina_logo', 'type' => 'upload'); $options[] = array( 'name' => __('Favicon', 'sakura'), - 'desc' => __('就是浏览器标签栏上那个小 logo,填写url', 'sakura'), + 'desc' => __('It is the small logo on the browser tab, fill in the url', 'sakura'),/*就是浏览器标签栏上那个小 logo,填写url*/ 'id' => 'favicon_link', 'std' => '/wp-content/themes/Sakura/images/favicon.ico', 'type' => 'text'); $options[] = array( - 'name' => __('自定义关键词和描述', 'sakura'), - 'desc' => __('开启之后可自定义填写关键词和描述', 'sakura'), + 'name' => __('Custom keywords and descriptions ', 'sakura'),/*自定义关键词和描述*/ + 'desc' => __('Customize keywords and descriptions after opening', 'sakura'),/*开启之后可自定义填写关键词和描述*/ 'id' => 'akina_meta', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('网站关键词', 'sakura'), - 'desc' => __('各关键字间用半角逗号","分割,数量在5个以内最佳。', 'sakura'), + 'name' => __('Site keywords', 'sakura'),/*网站关键词*/ + 'desc' => __('Each keyword is divided by a comma "," and the number is within 5.', 'sakura'),/*各关键字间用半角逗号","分割,数量在5个以内最佳。*/ 'id' => 'akina_meta_keywords', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('网站描述', 'sakura'), - 'desc' => __('用简洁的文字描述本站点,字数建议在120个字以内。', 'sakura'), + 'name' => __('Site descriptions', 'sakura'),/*网站描述*/ + 'desc' => __('Describe the site in concise text, with a maximum of 120 words.', 'sakura'),/*用简洁的文字描述本站点,字数建议在120个字以内。*/ 'id' => 'akina_meta_description', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('展开导航菜单', 'sakura'), - 'desc' => __('勾选开启,默认收缩', 'sakura'), + 'name' => __('Expand the nav menu', 'sakura'),/*展开导航菜单*/ + 'desc' => __('Check to enable, default shrink', 'sakura'),/*勾选开启,默认收缩*/ 'id' => 'shownav', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('头部装饰图', 'sakura'), - 'desc' => __('默认开启,勾选关闭,显示在文章页面,独立页面以及分类页', 'sakura'), + 'name' => __('Head decoration', 'sakura'),/*头部装饰图*/ + 'desc' => __('Enable by default, check off, display on the article page, separate page and category page', 'sakura'),/*默认开启,勾选关闭,显示在文章页面,独立页面以及分类页*/ 'id' => 'patternimg', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('搜索按钮', 'sakura'), + 'name' => __('Search button', 'sakura'),/*搜索按钮*/ 'id' => 'top_search', 'std' => "yes", 'type' => "radio", 'options' => array( - 'yes' => __('开启', ''), - 'no' => __('关闭', '') + 'yes' => __('Open', 'sakura'), + 'no' => __('Close', 'sakura') )); $options[] = array( - 'name' => __('首页文章风格', 'sakura'), + 'name' => __('Home article style', 'sakura'),/*首页文章风格*/ 'id' => 'post_list_style', 'std' => "imageflow", 'type' => "radio", 'options' => array( - 'standard' => __('标准', ''), - 'imageflow' => __('图文', '') + 'standard' => __('Standard', 'sakura'),/*标准*/ + 'imageflow' => __('Graphic', 'sakura')/*图文*/ )); $options[] = array( - 'name' => __('首页文章特色图(仅对标准风格生效)', 'sakura'), + 'name' => __('Home article feature images (only valid for standard mode)', 'sakura'),/*首页文章特色图(仅对标准风格生效)*/ 'id' => 'list_type', 'std' => "round", 'type' => "radio", 'options' => array( - 'round' => __('圆形', ''), - 'square' => __('方形', '') + 'round' => __('Round', 'sakura'),/*圆形*/ + 'square' => __('Square', 'sakura')/*方形*/ )); $options[] = array( - 'name' => __('首页文章特色图对齐方式(仅对图文风格生效,默认左右交替)', 'sakura'), + 'name' => __('Home article feature images alignment (only for graphic mode, default left and right alternate)', 'sakura'),/*首页文章特色图对齐方式(仅对图文风格生效,默认左右交替)*/ 'id' => 'feature_align', 'std' => "alternate", 'type' => "radio", 'options' => array( - 'left' => __('向左对齐', ''), - 'right' => __('向右对齐', ''), - 'alternate' => __('左右交替', '') + 'left' => __('Left', 'sakura'),/*向左对齐*/ + 'right' => __('Right', 'sakura'),/*向右对齐*/ + 'alternate' => __('Alternate', 'sakura')/*左右交替*/ )); $options[] = array( - 'name' => __('默认文章特色图', 'sakura'), - 'desc' => __('在未设置文章特色图的情况下展示的默认图像,留空则调用本地随机封面(要展示的图片放入 /wp-content/themes/Sakura/feature/gallery/ 目录)', 'sakura'), + 'name' => __('Default article feature image', 'sakura'),/*默认文章特色图*/ + 'desc' => __('The default image displayed without the article feature image set, use random cover if left blank (the image to be displayed is placed in the /wp-content/themes/Sakura/feature/gallery/ directory)', 'sakura'),/*在未设置文章特色图的情况下展示的默认图像,留空则调用本地随机封面(要展示的图片放入 /wp-content/themes/Sakura/feature/gallery/ 目录)*/ 'id' => 'default_feature_image', 'std' => 'https://api.mashiro.top/feature/', 'type' => 'text'); $options[] = array( - 'name' => __('评论收缩', 'sakura'), + 'name' => __('Comment shrink', 'sakura'),/*评论收缩*/ 'id' => 'toggle-menu', 'std' => "yes", 'type' => "radio", 'options' => array( - 'yes' => __('开启', ''), - 'no' => __('关闭', '') + 'yes' => __('Open', 'sakura'),/*开启*/ + 'no' => __('Close', 'sakura')/*关闭*/ )); $options[] = array( - 'name' => __('文章末尾显示作者信息?', 'sakura'), - 'desc' => __('勾选启用', 'sakura'), + 'name' => __('Display author information at the end of the article?', 'sakura'),/*文章末尾显示作者信息?*/ + 'desc' => __('Check to enable', 'sakura'),/*勾选启用*/ 'id' => 'show_authorprofile', 'std' => '1', 'type' => 'checkbox'); $options[] = array( - 'name' => __('分页模式', 'sakura'), + 'name' => __('Paging mode', 'sakura'),/*分页模式*/ 'id' => 'pagenav_style', 'std' => "ajax", 'type' => "radio", 'options' => array( - 'ajax' => __('ajax加载', ''), - 'np' => __('上一页和下一页', '') + 'ajax' => __('Ajax load', 'sakura'),/*ajax加载*/ + 'np' => __('Previous and next page', 'sakura')/*上一页和下一页*/ )); $options[] = array( - 'name' => __('自动加载下一页', 'sakura'), - 'desc' => __('(秒)设置自动加载下一页时间,默认不自动加载', 'sakura'), + 'name' => __('Automatically load the next page', 'sakura'),/*自动加载下一页*/ + 'desc' => __('(seconds) Set to automatically load the next page time, the default is not automatically loaded', 'sakura'),/*(秒)设置自动加载下一页时间,默认不自动加载*/ 'id' => 'auto_load_post', 'std' => '233', 'type' => 'select', 'options'=>array( - '0'=> __('0秒',''), - '1'=> __('1秒',''), - '2'=> __('2秒',''), - '3'=> __('3秒',''), - '4'=> __('4秒',''), - '5'=> __('5秒',''), - '6'=> __('6秒',''), - '7'=> __('7秒',''), - '8'=> __('8秒',''), - '9'=> __('9秒',''), - '10'=> __('10秒',''), - '233'=> __('233秒,即不倒计时自动加载',''), + '0'=> __('0','sakura'), + '1'=> __('1','sakura'), + '2'=> __('2','sakura'), + '3'=> __('3','sakura'), + '4'=> __('4','sakura'), + '5'=> __('5','sakura'), + '6'=> __('6','sakura'), + '7'=> __('7','sakura'), + '8'=> __('8','sakura'), + '9'=> __('9','sakura'), + '10'=> __('10','sakura'), + '233'=> __('Do not load automatically','sakura'),/*不自动加载*/ )); $options[] = array( - 'name' => __('博主描述', 'sakura'), - 'desc' => __('一段自我描述的话', 'sakura'), + 'name' => __('Blogger description', 'sakura'),/*博主描述*/ + 'desc' => __('A self-described statement', 'sakura'),/*一段自我描述的话*/ 'id' => 'admin_des', 'std' => '一沙一世界,一花一天堂。君掌盛无边,刹那成永恒。', 'type' => 'textarea'); $options[] = array( - 'name' => __('页脚信息', 'sakura'), - 'desc' => __('页脚说明文字,支持HTML代码', 'sakura'), + 'name' => __('Footer info', 'sakura'),/*页脚信息*/ + 'desc' => __('Footer description, support for HTML code', 'sakura'),/*页脚说明文字,支持HTML代码*/ 'id' => 'footer_info', 'std' => 'Copyright © by Mashiro All Rights Reserved.', 'type' => 'textarea'); $options[] = array( - 'name' => __('Google 统计代码', 'sakura'), + 'name' => __('Google analytics', 'sakura'),/*Google 统计代码*/ 'desc' => __('UA-xxxxx-x', 'sakura'), 'id' => 'google_analytics_id', 'std' => '', @@ -348,8 +347,8 @@ function optionsframework_options() { 'type' => 'textarea'); $options[] = array( - 'name' => __('自定义CSS样式', 'sakura'), - 'desc' => __('直接填写CSS代码,不需要写style标签', 'sakura'), + 'name' => __('Customize CSS styles', 'sakura'),/*自定义CSS样式*/ + 'desc' => __('Fill in the CSS code directly, no need to write style tags', 'sakura'),/*直接填写CSS代码,不需要写style标签*/ 'id' => 'site_custom_style', 'std' => '', 'type' => 'textarea'); @@ -357,193 +356,193 @@ function optionsframework_options() { //第一屏 $options[] = array( - 'name' => __('第一屏', 'sakura'), + 'name' => __('First screen', 'sakura'),/*第一屏*/ 'type' => 'heading'); $options[] = array( - 'name' => __('总开关', 'sakura'), - 'desc' => __('默认开启,勾选关闭', 'sakura'), + 'name' => __('Main switch', 'sakura'),/*总开关*/ + 'desc' => __('Default on, check off', 'sakura'),/*默认开启,勾选关闭*/ 'id' => 'head_focus', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('社交信息', 'sakura'), - 'desc' => __('默认开启,勾选关闭,显示头像、签名、SNS', 'sakura'), + 'name' => __('Social information', 'sakura'),/*社交信息*/ + 'desc' => __('Enable by default, check off, display avatar, signature, SNS', 'sakura'),/*默认开启,勾选关闭,显示头像、签名、SNS*/ 'id' => 'focus_infos', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('社交信息样式', 'sakura'), + 'name' => __('Social information style', 'sakura'),/*社交信息样式*/ 'id' => 'social_style', 'std' => "v2", 'type' => "radio", 'options' => array( - 'v2' => __('与签名合并', ''), - 'v1' => __('独立成行', '') + 'v2' => __('Merge with signature', 'sakura'),/*与签名合并*/ + 'v1' => __('Independent line', 'sakura')/*独立成行*/ )); $options[] = array( - 'name' => __('全屏显示', 'sakura'), - 'desc' => __('默认开启,勾选关闭', 'sakura'), + 'name' => __('full-screen display', 'sakura'),/*全屏显示*/ + 'desc' => __('Default on, check off', 'sakura'),/*默认开启,勾选关闭*/ 'id' => 'focus_height', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('开启视频', 'sakura'), - 'desc' => __('勾选开启', 'sakura'), + 'name' => __('Enable video', 'sakura'),/*开启视频*/ + 'desc' => __('Check on', 'sakura'),/*勾选开启*/ 'id' => 'focus_amv', 'std' => '0', 'type' => 'checkbox'); $options[] = array( 'name' => __('Live', 'sakura'), - 'desc' => __('勾选开启,视频自动续播,需要开启Pjax功能', 'sakura'), + 'desc' => __('Check to enable, the video will continue to play automatically, you need to enable Pjax', 'sakura'),/*勾选开启,视频自动续播,需要开启Pjax功能*/ 'id' => 'focus_mvlive', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('视频地址', 'sakura'), - 'desc' => __('视频的来源地址,该地址拼接下面的视频名,地址尾部不需要加斜杠', 'sakura'), + 'name' => __('Video address', 'sakura'),/*视频地址*/ + 'desc' => __('The source address of the video, the address is spliced below the video name, the slash is not required at the end of the address', 'sakura'),/*视频的来源地址,该地址拼接下面的视频名,地址尾部不需要加斜杠*/ 'id' => 'amv_url', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('视频名称', 'sakura'), - 'desc' => __('abc.mp4 ,只需要填写视频文件名 abc 即可,多个用英文逗号隔开如 abc,efg ,无需在意顺序,因为加载是随机的抽取的 ', 'sakura'), + 'name' => __('Video name', 'sakura'),/*视频名称*/ + 'desc' => __('abc.mp4, just fill in the video file name abc, multiple videos separated by commas such as abc, efg, do not care about the order, because the loading is random extraction', 'sakura'),/*abc.mp4 ,只需要填写视频文件名 abc 即可,多个用英文逗号隔开如 abc,efg ,无需在意顺序,因为加载是随机的抽取的 */ 'id' => 'amv_title', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('封面图', 'sakura'), - 'desc' => __('此处留空则使用内置API(将需要随机展示的图片放入 /cover/gallery/ 目录)', 'sakura'), + 'name' => __('Cover image', 'sakura'),/*封面图*/ + 'desc' => __('Leave this blank to use the built-in API (put the images that need to be randomly displayed into the /cover/gallery/ directory)', 'sakura'),/*此处留空则使用内置API(将需要随机展示的图片放入 /cover/gallery/ 目录)*/ 'id' => 'cover_img', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('背景图滤镜', 'sakura'), + 'name' => __('Background image filter', 'sakura'),/*背景图滤镜*/ 'id' => 'focus_img_filter', 'std' => "filter-nothing", 'type' => "radio", 'options' => array( - 'filter-nothing' => __('无', ''), - 'filter-undertint' => __('浅色', ''), - 'filter-dim' => __('暗淡', ''), - 'filter-grid' => __('网格', ''), - 'filter-dot' => __('点点', '') + 'filter-nothing' => __('Nothing', 'sakura'),/*无*/ + 'filter-undertint' => __('Undertint', 'sakura'),/*浅色*/ + 'filter-dim' => __('Dim', 'sakura'),/*暗淡*/ + 'filter-grid' => __('Grid', 'sakura'),/*网格*/ + 'filter-dot' => __('Dot', 'sakura')/*点点*/ )); $options[] = array( - 'name' => __('是否开启聚焦', 'sakura'), - 'desc' => __('默认开启', 'sakura'), + 'name' => __('Whether to turn on the top-feature', 'sakura'),/*是否开启聚焦*/ + 'desc' => __('Default on', 'sakura'), 'id' => 'top_feature', 'std' => '1', 'type' => 'checkbox'); $options[] = array( - 'name' => __('聚焦样式', 'sakura'), + 'name' => __('Top-feature style', 'sakura'),/*聚焦样式*/ 'id' => 'top_feature_style', 'std' => "left_and_right", 'type' => "radio", 'options' => array( - 'left_and_right' => __('左右交替', ''), - 'bottom_to_top' => __('从下往上', '') + 'left_and_right' => __('Alternate left and right', 'sakura'),/*左右交替*/ + 'bottom_to_top' => __('From bottom to top', 'sakura')/*从下往上*/ )); $options[] = array( - 'name' => __('聚焦标题', 'sakura'), - 'desc' => __('默认为聚焦,你也可以修改为其他,当然不能当广告用!不允许!!', 'sakura'), + 'name' => __('Top-feature title', 'sakura'),/*聚焦标题*/ + 'desc' => __('Default is 聚焦, you can also change it to other, of course you can\'t use it as an advertisement!Not allowed!!', 'sakura'),/*默认为聚焦,你也可以修改为其他,当然不能当广告用!不允许!!*/ 'id' => 'feature_title', 'std' => '聚焦', 'class' => 'mini', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图一', 'sakura'), - 'desc' => __('尺寸257px*160px', 'sakura'), + 'name' => __('Top-feature 1 image', 'sakura'),/*聚焦图一*/ + 'desc' => __('size 257px*160px', 'sakura'),/*尺寸257px*160px*/ 'id' => 'feature1_img', 'std' => $imagepath.'/temp.png', 'type' => 'upload'); $options[] = array( - 'name' => __('聚焦图一标题', 'sakura'), - 'desc' => __('聚焦图一标题', 'sakura'), + 'name' => __('Top-feature 1 title', 'sakura'),/*聚焦图一标题*/ + 'desc' => __('Top-feature 1 title', 'sakura'),/*聚焦图一标题*/ 'id' => 'feature1_title', 'std' => 'feature1', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图一描述', 'sakura'), - 'desc' => __('聚焦图一描述', 'sakura'), + 'name' => __('Top-feature 1 description', 'sakura'),/*聚焦图一描述*/ + 'desc' => __('Top-feature 1 description', 'sakura'),/*聚焦图一描述*/ 'id' => 'feature1_description', 'std' => 'Description goes here 1', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图一链接', 'sakura'), - 'desc' => __('聚焦图一链接', 'sakura'), + 'name' => __('Top-feature 1 link', 'sakura'),/*聚焦图一链接*/ + 'desc' => __('Top-feature 1 link', 'sakura'),/*聚焦图一链接*/ 'id' => 'feature1_link', 'std' => '#', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图二', 'sakura'), - 'desc' => __('尺寸257px*160px', 'sakura'), + 'name' => __('Top-feature 2 image', 'sakura'),/*聚焦图二*/ + 'desc' => __('size 257px*160px', 'sakura'),/*尺寸257px*160px*/ 'id' => 'feature2_img', 'std' => $imagepath.'/temp.png', 'type' => 'upload'); $options[] = array( - 'name' => __('聚焦图二标题', 'sakura'), - 'desc' => __('聚焦图二标题', 'sakura'), + 'name' => __('Top-feature 2 title', 'sakura'),/*聚焦图二标题*/ + 'desc' => __('Top-feature 2 title', 'sakura'),/*聚焦图二标题*/ 'id' => 'feature2_title', 'std' => 'feature2', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图二描述', 'sakura'), - 'desc' => __('聚焦图二描述', 'sakura'), + 'name' => __('Top-feature 2 description', 'sakura'),/*聚焦图二描述*/ + 'desc' => __('Top-feature 2 description', 'sakura'),/*聚焦图二描述*/ 'id' => 'feature2_description', 'std' => 'Description goes here 2', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图二链接', 'sakura'), - 'desc' => __('聚焦图二链接', 'sakura'), + 'name' => __('Top-feature 2 link', 'sakura'),/*聚焦图二链接*/ + 'desc' => __('Top-feature 2 link', 'sakura'),/*聚焦图二链接*/ 'id' => 'feature2_link', 'std' => '#', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图三', 'sakura'), - 'desc' => __('尺寸257px*160px', 'sakura'), + 'name' => __('Top-feature 3 image', 'sakura'),/*聚焦图三*/ + 'desc' => __('size 257px*160px', 'sakura'),/*尺寸257px*160px*/ 'id' => 'feature3_img', 'std' => $imagepath.'/temp.png', 'type' => 'upload'); $options[] = array( - 'name' => __('聚焦图三标题', 'sakura'), - 'desc' => __('聚焦图三标题', 'sakura'), + 'name' => __('Top-feature 3 title', 'sakura'),/*聚焦图三标题*/ + 'desc' => __('Top-feature 3 title', 'sakura'),/*聚焦图三标题*/ 'id' => 'feature3_title', 'std' => 'feature3', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图三描述', 'sakura'), - 'desc' => __('聚焦图三描述', 'sakura'), + 'name' => __('Top-feature 3 description', 'sakura'),/*聚焦图三描述*/ + 'desc' => __('Top-feature 3 description', 'sakura'),/*聚焦图三描述*/ 'id' => 'feature3_description', 'std' => 'Description goes here 3', 'type' => 'text'); $options[] = array( - 'name' => __('聚焦图三链接', 'sakura'), - 'desc' => __('聚焦图三链接', 'sakura'), + 'name' => __('Top-feature 3 link', 'sakura'),/*聚焦图三链接*/ + 'desc' => __('Top-feature 3 link', 'sakura'),/*聚焦图三链接*/ 'id' => 'feature3_link', 'std' => '#', 'type' => 'text'); @@ -551,329 +550,329 @@ function optionsframework_options() { //文章页 $options[] = array( - 'name' => __('文章页', 'sakura'), + 'name' => __('Post page', 'sakura'),/*文章页*/ 'type' => 'heading'); $options[] = array( - 'name' => __('文章样式', 'sakura'), + 'name' => __('Post style', 'sakura'),/*文章样式*/ 'id' => 'entry_content_theme', 'std' => "sakura", 'type' => "radio", 'options' => array( - 'sakura' => __('默认样式', ''), - 'github' => __('GitHub 样式', ''), + 'sakura' => __('Sakura', 'sakura'),/*默认样式*/ + 'github' => __('GitHub', 'sakura'), )); $options[] = array( - 'name' => __('文章点赞', 'sakura'), + 'name' => __('Post like', 'sakura'),/*文章点赞*/ 'id' => 'post_like', 'std' => "yes", 'type' => "radio", 'options' => array( - 'yes' => __('开启', ''), - 'no' => __('关闭', '') + 'yes' => __('Open', 'sakura'),/*开启*/ + 'no' => __('Close', 'sakura')/*关闭*/ )); $options[] = array( - 'name' => __('文章分享', 'sakura'), + 'name' => __('Post share', 'sakura'),/*文章分享*/ 'id' => 'post_share', 'std' => "yes", 'type' => "radio", 'options' => array( - 'yes' => __('开启', ''), - 'no' => __('关闭', '') + 'yes' => __('Open', 'sakura'),/*开启*/ + 'no' => __('Close', 'sakura')/*关闭*/ )); $options[] = array( - 'name' => __('上一篇下一篇', 'sakura'), + 'name' => __('Previous and Next', 'sakura'),/*上一篇下一篇*/ 'id' => 'post_nepre', 'std' => "yes", 'type' => "radio", 'options' => array( - 'yes' => __('开启', ''), - 'no' => __('关闭', '') + 'yes' => __('Open', 'sakura'),/*开启*/ + 'no' => __('Close', 'sakura')/*关闭*/ )); $options[] = array( - 'name' => __('博主信息', 'sakura'), + 'name' => __('Author profile', 'sakura'),/*博主信息*/ 'id' => 'author_profile', 'std' => "yes", 'type' => "radio", 'options' => array( - 'yes' => __('开启', ''), - 'no' => __('关闭', '') + 'yes' => __('Open', 'sakura'),/*开启*/ + 'no' => __('Close', 'sakura')/*关闭*/ )); $options[] = array( - 'name' => __('支付宝打赏', 'sakura'), - 'desc' => __('支付宝二维码', 'sakura'), + 'name' => __('Alipay reward', 'sakura'),/*支付宝打赏*/ + 'desc' => __('Alipay qrcode', 'sakura'),/*支付宝二维码*/ 'id' => 'alipay_code', 'type' => 'upload'); $options[] = array( - 'name' => __('微信打赏', 'sakura'), - 'desc' => __('微信二维码', 'sakura'), + 'name' => __('Wechat reward', 'sakura'),/*微信打赏*/ + 'desc' => __('Wechat qrcode ', 'sakura'),/*微信二维码*/ 'id' => 'wechat_code', 'type' => 'upload'); //社交选项 $options[] = array( - 'name' => __('社交网络', 'sakura'), + 'name' => __('Social network', 'sakura'),/*社交网络*/ 'type' => 'heading'); $options[] = array( - 'name' => __('微信', 'sakura'), - 'desc' => __('微信二维码', 'sakura'), + 'name' => __('Wechat', 'sakura'),/*微信*/ + 'desc' => __('Wechat qrcode', 'sakura'),/*微信二维码*/ 'id' => 'wechat', 'type' => 'upload'); $options[] = array( - 'name' => __('新浪微博', 'sakura'), - 'desc' => __('新浪微博地址', 'sakura'), + 'name' => __('Sina Weibo', 'sakura'),/*新浪微博*/ + 'desc' => __('Sina Weibo address', 'sakura'),/*新浪微博地址*/ 'id' => 'sina', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('腾讯QQ', 'sakura'), - 'desc' => __('tencent://message/?uin={{QQ号码}},如tencent://message/?uin=123456', 'sakura'), + 'name' => __('Tencent QQ', 'sakura'),/*腾讯QQ*/ + 'desc' => __('tencent://message/?uin={{QQ number}}. for example, tencent://message/?uin=123456', 'sakura'),/*tencent://message/?uin={{QQ号码}},如tencent://message/?uin=123456*/ 'id' => 'qq', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Telegram', 'sakura'), - 'desc' => __('Telegram链接', 'sakura'), + 'desc' => __('Telegram link', 'sakura'),/*Telegram链接*/ 'id' => 'telegram', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('QQ空间', 'sakura'), - 'desc' => __('QQ空间地址', 'sakura'), + 'name' => __('Qzone', 'sakura'),/*QQ空间*/ + 'desc' => __('Qzone address', 'sakura'),/*QQ空间地址*/ 'id' => 'qzone', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('GitHub', 'sakura'), - 'desc' => __('GitHub地址', 'sakura'), + 'desc' => __('GitHub address', 'sakura'),/*GitHub地址*/ 'id' => 'github', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Lofter', 'sakura'), - 'desc' => __('lofter地址', 'sakura'), + 'desc' => __('Lofter address', 'sakura'),/*lofter地址*/ 'id' => 'lofter', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('BiliBili', 'sakura'), - 'desc' => __('B站地址', 'sakura'), + 'desc' => __('BiliBili address', 'sakura'),/*B站地址*/ 'id' => 'bili', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('优酷视频', 'sakura'), - 'desc' => __('优酷地址', 'sakura'), + 'name' => __('Youku video', 'sakura'),/*优酷视频*/ + 'desc' => __('Youku video address', 'sakura'),/*优酷地址*/ 'id' => 'youku', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('网易云音乐', 'sakura'), - 'desc' => __('网易云音乐地址', 'sakura'), + 'name' => __('Netease Cloud Music', 'sakura'),/*网易云音乐*/ + 'desc' => __('Netease Cloud Music address', 'sakura'),/*网易云音乐地址*/ 'id' => 'wangyiyun', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Twitter', 'sakura'), - 'desc' => __('推特地址', 'sakura'), + 'desc' => __('Twitter address', 'sakura'),/*推特地址*/ 'id' => 'twitter', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Facebook', 'sakura'), - 'desc' => __('脸书地址', 'sakura'), + 'desc' => __('Facebook address', 'sakura'),/*脸书地址*/ 'id' => 'facebook', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('Google+', 'sakura'), - 'desc' => __('G+地址', 'sakura'), + 'desc' => __('G+ address', 'sakura'),/*G+地址*/ 'id' => 'googleplus', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('简书', 'sakura'), - 'desc' => __('简书地址', 'sakura'), + 'name' => __('Jianshu', 'sakura'),/*简书*/ + 'desc' => __('Jianshu address', 'sakura'),/*简书地址*/ 'id' => 'jianshu', 'std' => '', 'type' => 'text'); $options[] = array( 'name' => __('CSDN', 'sakura'), - 'desc' => __('CSND社区地址', 'sakura'), + 'desc' => __('CSND community address', 'sakura'),/*CSND社区地址*/ 'id' => 'csdn', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('知乎', 'sakura'), - 'desc' => __('知乎地址', 'sakura'), + 'name' => __('Zhihu', 'sakura'),/*知乎*/ + 'desc' => __('Zhihu address', 'sakura'),/*知乎地址*/ 'id' => 'zhihu', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('邮箱-用户名', 'sakura'), - 'desc' => __('name@domain.com 的 name 部分,前端仅具有js运行环境时才能获取完整地址,可放心填写', 'sakura'), + 'name' => __('Email-name', 'sakura'),/*邮箱-用户名*/ + 'desc' => __('The name part of name@domain.com, only the frontend has js runtime environment can get the full address, you can rest assured to fill in', 'sakura'),/*name@domain.com 的 name 部分,前端仅具有js运行环境时才能获取完整地址,可放心填写*/ 'id' => 'email_name', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('邮箱-域名', 'sakura'), - 'desc' => __('name@domain.com 的 domain.com 部分', 'sakura'), + 'name' => __('Email-domain', 'sakura'),/*邮箱-域名*/ + 'desc' => __('The domain.com part of name@domain.com', 'sakura'),/*ame@domain.com 的 domain.com 部分*/ 'id' => 'email_domain', 'std' => '', 'type' => 'text'); //后台配置 $options[] = array( - 'name' => __('后台配置', 'sakura'), + 'name' => __('Background configuration', 'sakura'),/*后台配置*/ 'type' => 'heading' ); //后台面板自定义配色方案 $options[] = array( - 'name' => __('后台面板自定义配色方案', 'sakura'), - 'desc' => __('你可以在下面自行设计后台面板(/wp-admin/)样式,不过在开始之前请到这里将配色方案改为自定义(Custom)。
        Tip: 如何搭配颜色?或许这个可以帮到你。', 'sakura'), + 'name' => __('Background panel custom color scheme', 'sakura'),/*后台面板自定义配色方案*/ + 'desc' => __('You can design the background panel (/wp-admin/) style yourself below, but before you start, please go to here to change the color scheme to custom.(Custom).
        Tip: How to match colors? Maybe this can help you.', 'sakura'),/*你可以在下面自行设计后台面板(/wp-admin/)样式,不过在开始之前请到这里将配色方案改为自定义(Custom)。
        Tip: 如何搭配颜色?或许这个可以帮到你。*/ 'id' => 'scheme_tip', 'std' => '', 'type' => 'typography '); $options[] = array( - 'name' => __("面板主色调A", 'sakura'), + 'name' => __('Panel main color A', 'sakura'),/*面板主色调A*/ 'id' => 'dash_scheme_color_a', 'std' => "#c6742b", - 'desc' => __('(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.', ''), + 'desc' => __('(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.', 'sakura'), 'type' => "color" ); $options[] = array( - 'name' => __("面板主色调B", 'sakura'), + 'name' => __('Panel main color B', 'sakura'), 'id' => 'dash_scheme_color_b', 'std' => "#d88e4c", - 'desc' => __('(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.', ''), + 'desc' => __('(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.', 'sakura'), 'type' => "color" ); $options[] = array( - 'name' => __("面板主色调C", 'sakura'), + 'name' => __('Panel main color C', 'sakura'), 'id' => 'dash_scheme_color_c', 'std' => "#695644", - 'desc' => __('(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.', ''), + 'desc' => __('(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.', 'sakura'), 'type' => "color" ); $options[] = array( - 'name' => __("面板主色调D", 'sakura'), + 'name' => __('Panel main color D', 'sakura'), 'id' => 'dash_scheme_color_d', 'std' => "#a19780", - 'desc' => __('(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.', ''), + 'desc' => __('(array) (optional) An array of CSS color definitions which are used to give the user a feel for the theme.', 'sakura'), 'type' => "color" ); $options[] = array( - 'name' => __("面板图标配色——base", 'sakura'), + 'name' => __('Panel icon color——base', 'sakura'),/*面板图标配色——base*/ 'id' => 'dash_scheme_color_base', 'std' => "#e5f8ff", - 'desc' => __('(array) (optional) An array of CSS color definitions used to color any SVG icons.', ''), + 'desc' => __('(array) (optional) An array of CSS color definitions used to color any SVG icons.', 'sakura'), 'type' => "color" ); $options[] = array( - 'name' => __("面板图标配色——focus", 'sakura'), + 'name' => __('Panel icon color——focus', 'sakura'), 'id' => 'dash_scheme_color_focus', 'std' => "#fff", - 'desc' => __('(array) (optional) An array of CSS color definitions used to color any SVG icons.', ''), + 'desc' => __('(array) (optional) An array of CSS color definitions used to color any SVG icons.', 'sakura'), 'type' => "color" ); $options[] = array( - 'name' => __("面板图标配色——current", 'sakura'), + 'name' => __('Panel icon color——current', 'sakura'), 'id' => 'dash_scheme_color_current', 'std' => "#fff", - 'desc' => __('(array) (optional) An array of CSS color definitions used to color any SVG icons.', ''), + 'desc' => __('(array) (optional) An array of CSS color definitions used to color any SVG icons.', 'sakura'), 'type' => "color" ); $options[] = array( - 'name' => __('其他自定义面板样式(CSS)', 'sakura'), - 'desc' => __('如果还需要对面板其他样式进行调整可以把style放到这里', 'sakura'), + 'name' => __('Other custom panel styles(CSS)', 'sakura'),/*其他自定义面板样式(CSS)*/ + 'desc' => __('If you need to adjust other styles of the panel, put the style here.', 'sakura'),/*如果还需要对面板其他样式进行调整可以把style放到这里*/ 'id' => 'dash_scheme_css_rules', 'std' => '#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,#wpadminbar .ab-submenu .ab-item,#wpadminbar .quicklinks .menupop ul li a,#wpadminbar .quicklinks .menupop.hover ul li a,#wpadminbar.nojs .quicklinks .menupop:hover ul li a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#f3f2f1}body{background-image:url(https://view.moezx.cc/images/2019/04/21/windows10-2019-4-21-i3.jpg);background-size:cover;background-repeat:no-repeat;background-attachment:fixed;}#wpcontent{background:rgba(255,255,255,.8)}', 'type' => 'textarea'); $options[] = array( - 'name' => __('后台登陆界面背景图', 'sakura'), - 'desc' => __('该地址为空则使用默认图片', 'sakura'), + 'name' => __('Login interface background image', 'sakura'),/*后台登陆界面背景图*/ + 'desc' => __('Use the default image if left this blank', 'sakura'),/*该地址为空则使用默认图片*/ 'id' => 'login_bg', 'type' => 'upload'); $options[] = array( - 'name' => __('后台登陆界面logo', 'sakura'), - 'desc' => __('用于登录界面显示', 'sakura'), + 'name' => __('Login interface logo', 'sakura'),/*后台登陆界面logo*/ + 'desc' => __('Used for login interface display', 'sakura'),/*用于登录界面显示*/ 'id' => 'logo_img', 'std' => $imagepath.'mashiro-logo-s.png', 'type' => 'upload'); $options[] = array( - 'name' => __('登陆/注册相关设定', 'sakura'), + 'name' => __('Login/registration related settings', 'sakura'),/*登陆/注册相关设定*/ 'desc' => __('', 'sakura'), 'id' => 'login_tip', 'std' => '', 'type' => 'typography '); $options[] = array( - 'name' => __('指定登录地址', 'sakura'), - 'desc' => __('强制不使用后台地址登陆,填写新建的登陆页面地址,比如 http://www.xxx.com/login【注意】填写前先测试下你新建的页面是可以正常打开的,以免造成无法进入后台等情况', 'sakura'), + 'name' => __('Specify login address', 'sakura'),/*指定登录地址*/ + 'desc' => __('Forcibly do not use the background address to log in, fill in the new landing page address, such as http://www.xxx.com/login [Note] Before you fill out, test your new page can be opened normally, so as not to enter the background or other problems happening', 'sakura'),/*强制不使用后台地址登陆,填写新建的登陆页面地址,比如 http://www.xxx.com/login【注意】填写前先测试下你新建的页面是可以正常打开的,以免造成无法进入后台等情况*/ 'id' => 'exlogin_url', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('指定注册地址', 'sakura'), - 'desc' => __('该链接使用在登录页面作为注册入口,建议填写', 'sakura'), + 'name' => __('Specify registered address', 'sakura'),/*指定注册地址*/ + 'desc' => __('This link is used on the login page as a registration entry', 'sakura'),/*该链接使用在登录页面作为注册入口,建议填写*/ 'id' => 'exregister_url', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('允许用户注册', 'sakura'), - 'desc' => __('勾选开启,允许用户在前台注册', 'sakura'), + 'name' => __('Allow users to register', 'sakura'),/*允许用户注册*/ + 'desc' => __('Check to allow users to register at the frontend', 'sakura'),/*勾选开启,允许用户在前台注册*/ 'id' => 'ex_register_open', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('登录后自动跳转', 'sakura'), - 'desc' => __('勾选开启,管理员跳转至后台,用户跳转至主页', 'sakura'), + 'name' => __('Automatically redirect after login', 'sakura'),/*登录后自动跳转*/ + 'desc' => __('After checken, the administrator redirects to the background and the user redirects to the home page.', 'sakura'),/*勾选开启,管理员跳转至后台,用户跳转至主页*/ 'id' => 'login_urlskip', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('注册验证(仅前端,后端强制开启)', 'sakura'), - 'desc' => __('勾选开启滑动验证', 'sakura'), + 'name' => __('Registration verification (frontend only, backend forced open)', 'sakura'),/*注册验证(仅前端,后端强制开启)*/ + 'desc' => __('Check to enable slide verification', 'sakura'),/*勾选开启滑动验证*/ 'id' => 'login_validate', 'std' => '0', 'type' => 'checkbox'); @@ -884,41 +883,41 @@ function optionsframework_options() { 'type' => 'heading' ); $options[] = array( - 'name' => __('图片库 CDN', 'sakura'), - 'desc' => __('注意:填写格式为 http(s)://你的CDN域名/。
        也就是说,原路径为 http://your.domain/wp-content/uploads/2018/05/xx.png 的图片将从 http://你的CDN域名/2018/05/xx.png 加载', 'sakura'), + 'name' => __('Images CDN', 'sakura'),/*图片库*/ + 'desc' => __('Note: Fill in the format http(s)://your CDN domain name/.
        In other words, the original path is http://your.domain/wp-content/uploads/2018/05/xx.png and the picture will load from http://your CDN domain/2018/05/xx.png', 'sakura'),/*注意:填写格式为 http(s)://你的CDN域名/。
        也就是说,原路径为 http://your.domain/wp-content/uploads/2018/05/xx.png 的图片将从 http://你的CDN域名/2018/05/xx.png 加载*/ 'id' => 'qiniu_cdn', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('本地调用前端库(lib.js、lib.css)', 'sakura'), - 'desc' => __('前端库不走 jsDelivr,不建议启用', 'sakura'), + 'name' => __('Use the front-end library locally (lib.js、lib.css)', 'sakura'),/*本地调用前端库(lib.js、lib.css)*/ + 'desc' => __('The front-end library don\'t load from jsDelivr, not recommand', 'sakura'),/*前端库不走 jsDelivr,不建议启用*/ 'id' => 'jsdelivr_cdn_test', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('本地调用主题 js、css 文件(sakura-app.js、style.css)', 'sakura'), - 'desc' => __('主题的 js、css 文件不走 jsDelivr,DIY 时请开启', 'sakura'), + 'name' => __('Use js and css file of the theme (sakura-app.js、style.css) locally', 'sakura'),/*本地调用主题 js、css 文件(sakura-app.js、style.css)*/ + 'desc' => __('The js and css files of the theme do not load from jsDelivr, please open when DIY', 'sakura'),/*主题的 js、css 文件不走 jsDelivr,DIY 时请开启*/ 'id' => 'app_no_jsdelivr_cdn', 'std' => '0', 'type' => 'checkbox'); //其他 $options[] = array( - 'name' => __('其他', 'sakura'), + 'name' => __('Others', 'sakura'),/*其他*/ 'type' => 'heading' ); $options[] = array( - 'name' => __('关于', 'sakura'), - 'desc' => __('Theme Sakura v'.SAKURA_VERSION.' | 主题说明 | 源码GitHub release', 'sakura'), + 'name' => __('About', 'sakura'),/*关于*/ + 'desc' => __('Theme Sakura v'.SAKURA_VERSION.' | Theme document | Source codeGitHub release', 'sakura'),/*Theme Sakura v'.SAKURA_VERSION.' | 主题说明 | 源码GitHub release*/ 'id' => 'theme_intro', 'std' => '', 'type' => 'typography '); $options[] = array( - 'name' => "检查更新", - 'desc' => '下载最新版', + 'name' => __('Check for Updates', 'sakura'),/*检查更新*/ + 'desc' => 'Download the latest version', 'id' => "release_info", 'std' => "tag", 'type' => "images", @@ -929,177 +928,177 @@ function optionsframework_options() { ); $options[] = array( - 'name' => __('页脚悬浮播放器', 'sakura'), - 'desc' => __('如果不需要播放器留空即可。填写网易云音乐的「歌单」ID,eg:https://music.163.com/#/playlist?id=2288037900的ID是2288037900', 'sakura'), + 'name' => __('Footer float music player', 'sakura'),/*页脚悬浮播放器*/ + 'desc' => __('If you don\'t need the player just leave it blank.Fill in the "song list" ID of Netease Cloud Music, eg: https://music.163.com/#/playlist?id=2288037900 The ID is 2288037900', 'sakura'),/*如果不需要播放器留空即可。填写网易云音乐的「歌单」ID,eg:https://music.163.com/#/playlist?id=2288037900的ID是2288037900*/ 'id' => 'playlist_id', 'std' => '2288037900', 'type' => 'text'); $options[] = array( - 'name' => __('版本控制', 'sakura'), - 'desc' => __('用于更新前端 cookie 及浏览器缓存,可使用任意字符串', 'sakura'), + 'name' => __('Version Control', 'sakura'),/*版本控制*/ + 'desc' => __('Used to update frontend cookies and browser caches, any string can be used', 'sakura'),/*用于更新前端 cookie 及浏览器缓存,可使用任意字符串*/ 'id' => 'cookie_version', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('开启PJAX局部刷新(建议开启)', 'sakura'), - 'desc' => __('原理与Ajax相同', 'sakura'), + 'name' => __('Enable PJAX (recommand on)', 'sakura'),/*开启PJAX局部刷新(建议开启)*/ + 'desc' => __('The principle is the same as Ajax', 'sakura'),/*原理与Ajax相同*/ 'id' => 'poi_pjax', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('开启NProgress加载进度条', 'sakura'), - 'desc' => __('默认不开启,勾选开启', 'sakura'), + 'name' => __('Enable NProgress progress bar', 'sakura'),/*开启NProgress加载进度条*/ + 'desc' => __('Default off, check on', 'sakura'),/*默认不开启,勾选开启*/ 'id' => 'nprogress_on', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('开启公告', 'sakura'), - 'desc' => __('默认不显示,勾选开启', 'sakura'), + 'name' => __('Enable Announcement', 'sakura'), + 'desc' => __('Default off, check o', 'sakura'),/*默认不显示,勾选开启*/ 'id' => 'head_notice', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('公告内容', 'sakura'), - 'desc' => __('公告内容,文字超出142个字节将会被滚动显示(移动端无效),一个汉字 = 3字节,一个字母 = 1字节,自己计算吧', 'sakura'), + 'name' => __('Announcement content', 'sakura'), + 'desc' => __('Announcement content, the text exceeds 142 bytes will be scrolled display (mobile device is invalid)', 'sakura'),/*公告内容,文字超出142个字节将会被滚动显示(移动端无效),一个汉字 = 3字节,一个字母 = 1字节,自己计算吧*/ 'id' => 'notice_title', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('首页不显示的分类文章', 'sakura'), - 'desc' => __('填写分类ID,多个用英文“ , ”分开', 'sakura'), + 'name' => __('The categories of articles that don\t not show on homepage', 'sakura'),/*首页不显示的分类文章*/ + 'desc' => __('Fill in category ID, multiple IDs are divided by a comma ","', 'sakura'),/*填写分类ID,多个用英文“ , ”分开*/ 'id' => 'classify_display', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('图片展示分类', 'sakura'), - 'desc' => __('填写分类ID,多个用英文“ , ”分开', 'sakura'), + 'name' => __('Images category', 'sakura'),/*图片展示分类*/ + 'desc' => __('Fill in category ID, multiple IDs are divided by a comma ","', 'sakura'),/*填写分类ID,多个用英文“ , ”分开*/ 'id' => 'image_category', 'std' => '', 'type' => 'text'); $options[] = array( - 'name' => __('统计接口', 'sakura'), + 'name' => __('Statistics Interface', 'sakura'),/*统计接口*/ 'id' => 'statistics_api', 'std' => "theme_build_in", 'type' => "radio", 'options' => array( - 'wp_statistics' => __('WP-Statistics 插件(专业性统计,可排除无效访问)', ''), - 'theme_build_in' => __('主题内建(简单的统计,计算每一次页面访问请求)', '') + 'wp_statistics' => __('WP-Statistics plugin (Professional statistics, can exclude invalid access)', 'sakura'),/*WP-Statistics 插件(专业性统计,可排除无效访问)*/ + 'theme_build_in' => __('Theme built-in (simple statistics, calculate each page access request)', 'sakura')/*主题内建(简单的统计,计算每一次页面访问请求)*/ )); $options[] = array( - 'name' => __('统计数据显示格式', 'sakura'), + 'name' => __('Statistical data display format', 'sakura'),/*统计数据显示格式*/ 'id' => 'statistics_format', 'std' => "type_1", 'type' => "radio", 'options' => array( - 'type_1' => __('23333 次访问(默认)', ''), - 'type_2' => __('23,333 次访问(英式)', ''), - 'type_3' => __('23 333 次访问(法式)', ''), - 'type_4' => __('23k 次访问(中式)', ''), + 'type_1' => __('23333 Views (default)', 'sakura'),/*23333 次访问(默认)*/ + 'type_2' => __('23,333 Views (britain)', 'sakura'),/*23,333 次访问(英式)'*/ + 'type_3' => __('23 333 Views (french)', 'sakura'),/*23 333 次访问(法式)*/ + 'type_4' => __('23k Views (chinese)', 'sakura'),/*23k 次访问(中式)*/ )); $options[] = array( - 'name' => __('启用实时搜索', 'sakura'), - 'desc' => __('前台实现实时搜索,调用 Rest API 每小时更新一次缓存,可在 functions.php 里手动设置缓存时间'), + 'name' => __('Enable live search', 'sakura'),/*启用实时搜索*/ + 'desc' => __('Real-time search in the foreground, call the Rest API to update the cache every hour, you can manually set the cache time in functions.php'),/*前台实现实时搜索,调用 Rest API 每小时更新一次缓存,可在 functions.php 里手动设置缓存时间*/ 'id' => 'live_search', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('实时搜索包含评论', 'sakura'), - 'desc' => __('在实时搜索中搜索评论(如果网站评论数量太多不建议开启)'), + 'name' => __('Include comments in live search', 'sakura'),/*实时搜索包含评论*/ + 'desc' => __('Search for comments in real-time search (not recommended if there are too many comments on the site)'),/*在实时搜索中搜索评论(如果网站评论数量太多不建议开启)*/ 'id' => 'live_search_comment', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('启用 baguetteBox', 'sakura'), - 'desc' => __('默认禁用,请阅读说明', 'sakura'), + 'name' => __('Enable baguetteBox', 'sakura'),/*启用 baguetteBox*/ + 'desc' => __('Default off,please read wiki', 'sakura'),/*默认禁用,请阅读说明*/ 'id' => 'image_viewer', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('文章内图片启用 lazyload', 'sakura'), - 'desc' => __('默认启用', 'sakura'), + 'name' => __('Enable lazyload in posts', 'sakura'),/*文章内图片启用 lazyload*/ + 'desc' => __('Default on', 'sakura'),/*默认启用*/ 'id' => 'lazyload', 'std' => '1', 'type' => 'checkbox'); $options[] = array( 'name' => __('lazyload spinner', 'sakura'), - 'desc' => __('图片加载时要显示的占位图,填写图片 url', 'sakura'), + 'desc' => __('The placeholder to display when the image loads, fill in the image url', 'sakura'),/*图片加载时要显示的占位图,填写图片 url*/ 'id' => 'lazyload_spinner', 'std' => 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg', 'type' => 'text'); $options[] = array( - 'name' => __('是否开启剪贴板版权标识', 'sakura'), - 'desc' => __('复制超过30个字节时自动向剪贴板添加版权标识,默认开启', 'sakura'), + 'name' => __('Whether to enable the clipboard copyright', 'sakura'),/*是否开启剪贴板版权标识*/ + 'desc' => __('Automatically add a copyright to the clipboard when copying more than 30 bytes, which is enabled by default.', 'sakura'),/*复制超过30个字节时自动向剪贴板添加版权标识,默认开启*/ 'id' => 'clipboard_copyright', 'std' => '1', 'type' => 'checkbox'); $options[] = array( - 'name' => __('发件地址前缀', 'sakura'), - 'desc' => __('用于发送系统邮件,在用户的邮箱中显示的发件人地址,不要使用中文,默认系统邮件地址为 bibi@你的域名', 'sakura'), + 'name' => __('Email address prefix', 'sakura'),/*发件地址前缀*/ + 'desc' => __('For sending system mail, the sender address displayed in the user\'s mailbox, do not use Chinese, the default system email address is bibi@your_domain_name', 'sakura'),/*用于发送系统邮件,在用户的邮箱中显示的发件人地址,不要使用中文,默认系统邮件地址为 bibi@你的域名*/ 'id' => 'mail_user_name', 'std' => 'bibi', 'type' => 'text'); $options[] = array( - 'name' => __('邮件回复通知', 'sakura'), - 'desc' => __('WordPress默认会使用邮件通知用户评论收到回复,开启此项允许用户设置自己的评论收到回复时是否使用邮件通知', 'sakura'), + 'name' => __('Comments reply notification', 'sakura'),/*邮件回复通知*/ + 'desc' => __('WordPress will use email to notify users when their comments receive a reply by default. Tick this item allows users to set their own comments reply notification', 'sakura'),/*WordPress默认会使用邮件通知用户评论收到回复,开启此项允许用户设置自己的评论收到回复时是否使用邮件通知*/ 'id' => 'mail_notify', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('邮件回复通知管理员', 'sakura'), - 'desc' => __('当管理员评论收到回复时是否使用邮件通知', 'sakura'), + 'name' => __('Administrator comment notification', 'sakura'),/*邮件回复通知管理员*/ + 'desc' => __('Whether to use email notification when the administrator\'s comments receive a reply', 'sakura'),/*当管理员评论收到回复时是否使用邮件通知*/ 'id' => 'admin_notify', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('允许私密评论', 'sakura'), - 'desc' => __('允许用户设置自己的评论对其他人不可见', 'sakura'), + 'name' => __('Enable private comment', 'sakura'),/*允许私密评论*/ + 'desc' => __('Allow users to set their own comments to be invisible to others', 'sakura'),/*允许用户设置自己的评论对其他人不可见*/ 'id' => 'open_private_message', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('机器人验证', 'sakura'), - 'desc' => __('开启机器人验证', 'sakura'), + 'name' => __('Human verification', 'sakura'),/*机器人验证*/ + 'desc' => __('Enable human verification', 'sakura'),/*开启机器人验证*/ 'id' => 'norobot', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('评论UA信息', 'sakura'), - 'desc' => __('勾选开启,用户的浏览器,操作系统信息', 'sakura'), + 'name' => __('Comment UA infomation', 'sakura'),/*评论UA信息*/ + 'desc' => __('Check to enable, display the user\'s browser, operating system information', 'sakura'),/*勾选开启,显示用户的浏览器,操作系统信息*/ 'id' => 'open_useragent', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('开启多说插件支持', 'sakura'), - 'desc' => __('多说已经凉了', 'sakura'), + 'name' => __('Enable disqus', 'sakura'),/*开启多说插件支持*/ + 'desc' => __('Enable disqus for comment', 'sakura'),/*多说已经凉了*/ 'id' => 'general_disqus_plugin_support', 'std' => '0', 'type' => 'checkbox'); $options[] = array( - 'name' => __('时区调整', 'sakura'), - 'desc' => __('如果评论出现时差问题在这里调整,填入一个整数,计算方法:实际时间=显示错误的时间-你输入的整数(单位:小时)', 'sakura'), + 'name' => __('Time Zone adjustment', 'sakura'),/*时区调整*/ + 'desc' => __('If the comment has a time difference problem adjust here, fill in an integer, the calculation method: actual_time = display_error_time - the_integer_you_entered (unit: hour)', 'sakura'),/*如果评论出现时差问题在这里调整,填入一个整数,计算方法:实际时间=显示错误的时间-你输入的整数(单位:小时)*/ 'id' => 'time_zone_fix', 'std' => '0', 'type' => 'text'); diff --git a/tpl/content-image.php b/tpl/content-image.php index 1c317bb..d75ced1 100644 --- a/tpl/content-image.php +++ b/tpl/content-image.php @@ -32,7 +32,7 @@
  • - +
    diff --git a/tpl/content-status.php b/tpl/content-status.php index d58beaf..168f790 100644 --- a/tpl/content-status.php +++ b/tpl/content-status.php @@ -28,7 +28,7 @@
    - +
    diff --git a/tpl/content-thumb.php b/tpl/content-thumb.php index 0cb8a8b..b6e64b6 100644 --- a/tpl/content-thumb.php +++ b/tpl/content-thumb.php @@ -50,7 +50,7 @@ $the_cat = get_the_category();

    From 75046c75ccefa59033584c7d9429546f64b9d9b4 Mon Sep 17 00:00:00 2001 From: spirit Date: Fri, 1 Nov 2019 00:20:57 +0800 Subject: [PATCH 4/5] Translation 201911010020 --- functions.php | 4 ++-- tpl/content-image.php | 2 +- tpl/content-status.php | 2 +- tpl/content-thumb.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/functions.php b/functions.php index a2876e8..804c001 100644 --- a/functions.php +++ b/functions.php @@ -1269,9 +1269,9 @@ function memory_archives_list() { } if ($mon != $mon_tmp) { $mon = $mon_tmp; - $output .= '
  • '.$mon. __("","sakura"). /*月*/' ('.__(" articles","sakura") /*篇文章*/.')
  • '; diff --git a/tpl/content-image.php b/tpl/content-image.php index d75ced1..75140e7 100644 --- a/tpl/content-image.php +++ b/tpl/content-image.php @@ -32,7 +32,7 @@
    - +
    diff --git a/tpl/content-status.php b/tpl/content-status.php index 168f790..8ad1b02 100644 --- a/tpl/content-status.php +++ b/tpl/content-status.php @@ -28,7 +28,7 @@
    - +
    diff --git a/tpl/content-thumb.php b/tpl/content-thumb.php index b6e64b6..1c668dc 100644 --- a/tpl/content-thumb.php +++ b/tpl/content-thumb.php @@ -50,7 +50,7 @@ $the_cat = get_the_category();

    From 3e79761fc6a80839feb22542e6de94abaff25cda Mon Sep 17 00:00:00 2001 From: spirit Date: Fri, 1 Nov 2019 09:37:35 +0800 Subject: [PATCH 5/5] fix github-style --- cdn/theme/github.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdn/theme/github.css b/cdn/theme/github.css index 3610a06..74644e1 100644 --- a/cdn/theme/github.css +++ b/cdn/theme/github.css @@ -924,6 +924,6 @@ } /*other fix*/ -.entry-content ol, ul { +.entry-content ol,.entry-content ul { margin: auto !important; -} \ No newline at end of file +}


    - - + +