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?

+

@@ -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=''; -

暂未开放注册。

+