diff --git a/functions.php b/functions.php index e42065d..78647d9 100644 --- a/functions.php +++ b/functions.php @@ -50,7 +50,7 @@ function akina_setup() { // This theme uses wp_nav_menu() in one location. register_nav_menus( array( - 'primary' => esc_html__( '导航菜单', 'akina' ), + 'primary' => __( 'Nav Menus', 'sakura' ), //导航菜单 ) ); /* @@ -355,7 +355,7 @@ function convertip($ip) { if( $ipaddr != ' ' ) return $ipaddr; else - $ipaddr = '火星来客'; + $ipaddr = 'Unknown'; return $ipaddr; } //Comment Location End @@ -384,22 +384,22 @@ if(!function_exists('akina_comment_format')){
$depth, 'max_depth' => $args['max_depth']))); ?>
-
comment_agent); ?>comment_agent); ?> 来自: +
comment_agent); ?>comment_agent); ?> : comment_ID; $i_private = get_comment_meta($comment_ID, '_private', true); - $flag .= ' 状态: 私密('; + $flag .= ' '.__('Private', 'mashiro').': '; if (!empty($i_private)) { - $flag .= '是 '; + $flag .= __('Yes', 'mashiro').' '; } else { - $flag .= '否 '; + $flag .= __('No', 'mashiro').' '; } - $flag .= ')'; - $flag .= edit_comment_link(__(' 编辑'), '', ''); + $flag .= ''; + $flag .= edit_comment_link(__(' '.__('Edit', 'mashiro').''), ' '; else if($author_count>=6 && $author_count< 10) - echo ''; + echo ''; else if($author_count>=10 && $author_count< 20) - echo ''; + echo ''; else if($author_count>=20 && $author_count< 40) - echo ''; + echo ''; else if($author_count>=40 && $author_count< 80) - echo ''; + echo ''; else if($author_count>=80 && $author_count< 160) - echo ''; + echo ''; else if($author_count>=160) - echo ''; + echo ''; } /** @@ -461,9 +461,6 @@ function restyle_text($number) { default: return $number; } - - - } function set_post_views() { @@ -483,7 +480,7 @@ add_action('get_header', 'set_post_views'); function get_post_views($post_id) { if (akina_option('statistics_api')=='wp_statistics'){ if (!function_exists('wp_statistics_pages')) { - return '请安装 WP-Statistics 插件'; + return __('Please install pulgin WP-Statistics', 'sakura'); } else { return restyle_text(wp_statistics_pages('total','uri',$post_id)); } @@ -536,7 +533,7 @@ function get_the_link_items($id = null){ if ( !empty($bookmarks) ) { $output .= '