mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-21 22:38:12 +08:00
Translation 201910311333
This commit is contained in:
parent
c21c2b3e0d
commit
f39ed3d821
30
comments.php
30
comments.php
@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*if('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
|
/*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()){
|
if(post_password_required()){
|
||||||
return;
|
return;
|
||||||
@ -18,13 +18,13 @@
|
|||||||
<section id="comments" class="comments">
|
<section id="comments" class="comments">
|
||||||
|
|
||||||
<div class="commentwrap comments-hidden">
|
<div class="commentwrap comments-hidden">
|
||||||
<div class="notification"><i class="iconfont icon-mark"></i><?php esc_html_e('查看评论', 'akina'); ?> -
|
<div class="notification"><i class="iconfont icon-mark"></i><?php _e('view comments', 'sakura'); /*查看评论*/?> -
|
||||||
<span class="noticom"><?php comments_number('NOTHING', '1 条评论', '% 条评论'); ?> </span>
|
<span class="noticom"><?php comments_number('NOTHING', __('1 comment','sakura'), __('% comments','sakura')); ?> </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="comments-main">
|
<div class="comments-main">
|
||||||
<h3 id="comments-list-title">Comments | <span class="noticom"><?php comments_number('NOTHING', '1 条评论', '% 条评论'); ?> </span></h3>
|
<h3 id="comments-list-title">Comments | <span class="noticom"><?php comments_number('NOTHING', __('1 comment','sakura'), __('% comments','sakura')); ?> </span></h3>
|
||||||
<div id="loading-comments"><span></span></div>
|
<div id="loading-comments"><span></span></div>
|
||||||
<?php if(have_comments()): ?>
|
<?php if(have_comments()): ?>
|
||||||
|
|
||||||
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
<?php if(comments_open()): ?>
|
<?php if(comments_open()): ?>
|
||||||
<div class="commentwrap">
|
<div class="commentwrap">
|
||||||
<div class="notification-hidden"><i class="iconfont icon-mark"></i> <?php esc_html_e('暂无评论', 'akina'); ?></div>
|
<div class="notification-hidden"><i class="iconfont icon-mark"></i> <?php _e('no comment', 'sakura'); /*暂无评论*/?></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
@ -57,15 +57,15 @@
|
|||||||
'id_form' => 'commentform',
|
'id_form' => 'commentform',
|
||||||
'id_submit' => 'submit',
|
'id_submit' => 'submit',
|
||||||
'title_reply' => '',
|
'title_reply' => '',
|
||||||
'title_reply_to' => '<div class="graybar"><i class="fa fa-comments-o"></i>' . esc_html__('Leave a Reply to', 'akina') . ' %s' . '</div>',
|
'title_reply_to' => '<div class="graybar"><i class="fa fa-comments-o"></i>' . __('Leave a Reply to', 'sakura') . ' %s' . '</div>',
|
||||||
'cancel_reply_link' => esc_html__('Cancel Reply', 'akina'),
|
'cancel_reply_link' => __('Cancel Reply', 'sakura'),
|
||||||
'label_submit' => esc_html__('BiuBiuBiu~', 'akina'),
|
'label_submit' => __('BiuBiuBiu~', 'sakura'),
|
||||||
'comment_field' => '<p><i class="iconfont icon-markdown"></i> Markdown Supported while <i class="fa fa-code" aria-hidden="true"></i> Forbidden</p><div class="comment-textarea"><textarea placeholder="' . esc_attr__('你是我一生只会遇见一次的惊喜', 'akina') . ' ..." name="comment" class="commentbody" id="comment" rows="5" tabindex="4"></textarea><label class="input-label">你是我一生只会遇见一次的惊喜 ...</label></div>
|
'comment_field' => '<p><i class="iconfont icon-markdown"></i> Markdown Supported while <i class="fa fa-code" aria-hidden="true"></i> Forbidden</p><div class="comment-textarea"><textarea placeholder="' . __("你是我一生只会遇见一次的惊喜", "sakura") . ' ..." name="comment" class="commentbody" id="comment" rows="5" tabindex="4"></textarea><label class="input-label">' . __("你是我一生只会遇见一次的惊喜", "sakura") . ' ...</label></div>
|
||||||
<div id="upload-img-show"></div>
|
<div id="upload-img-show"></div>
|
||||||
<!--插入表情面版-->
|
<!--插入表情面版-->
|
||||||
<p id="emotion-toggle" class="no-select">
|
<p id="emotion-toggle" class="no-select">
|
||||||
<span class="emotion-toggle-off">戳我试试 OωO</span>
|
<span class="emotion-toggle-off">' . __("Click me OωO", "sakura")/*戳我试试 OωO*/ . '</span>
|
||||||
<span class="emotion-toggle-on">嘿嘿嘿 ヾ(≧∇≦*)ゝ</span>
|
<span class="emotion-toggle-on">' . __("HeHeHe ヾ(≧∇≦*)ゝ", "sakura")/*嘿嘿嘿 ヾ(≧∇≦*)ゝ*/ . '</span>
|
||||||
</p>
|
</p>
|
||||||
<div class="emotion-box no-select">
|
<div class="emotion-box no-select">
|
||||||
<table class="motion-switcher-table">
|
<table class="motion-switcher-table">
|
||||||
@ -90,13 +90,13 @@
|
|||||||
'fields' => apply_filters( 'comment_form_default_fields', array(
|
'fields' => apply_filters( 'comment_form_default_fields', array(
|
||||||
'avatar' => '<div class="cmt-info-container"><div class="comment-user-avatar"><img src="https://gravatar.shino.cc/avatar/f11f237b3de93c93b24045e71f7f65c6?s=80&d=mm&r=g"><div class="socila-check qq-check"><i class="fa fa-qq" aria-hidden="true"></i></div><div class="socila-check gravatar-check"><i class="fa fa-google" aria-hidden="true"></i></div></div>',
|
'avatar' => '<div class="cmt-info-container"><div class="comment-user-avatar"><img src="https://gravatar.shino.cc/avatar/f11f237b3de93c93b24045e71f7f65c6?s=80&d=mm&r=g"><div class="socila-check qq-check"><i class="fa fa-qq" aria-hidden="true"></i></div><div class="socila-check gravatar-check"><i class="fa fa-google" aria-hidden="true"></i></div></div>',
|
||||||
'author' =>
|
'author' =>
|
||||||
'<div class="popup cmt-popup cmt-author" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -115px;width: 230px;">输入QQ号将自动拉取昵称和头像</span><input type="text" placeholder="' . esc_attr__('昵称或QQ号', 'akina') . ' ' . ( $req ? '(' . esc_attr__('必须 Name* ', 'akina') . ')' : '') . '" name="author" id="author" value="' . esc_attr($comment_author) . '" size="22" autocomplete="off" tabindex="1" ' . ($req ? "aria-required='true'" : '' ). ' /></div>',
|
'<div class="popup cmt-popup cmt-author" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -115px;width: 230px;">' . __("Type QQ number I\'ll show nickname and avatar", "sakura")/*输入QQ号将自动拉取昵称和头像*/ . '</span><input type="text" placeholder="' . __("Nickname or QQ number", "sakura") /*昵称或QQ号*/. ' ' . ( $req ? '(' . __("Must Name* ", "sakura") . ')' : '') . '" name="author" id="author" value="' . esc_attr($comment_author) . '" size="22" autocomplete="off" tabindex="1" ' . ($req ? "aria-required='true'" : '' ). ' /></div>',
|
||||||
'email' =>
|
'email' =>
|
||||||
'<div class="popup cmt-popup" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -65px;width: 130px;">你将收到回复通知</span><input type="text" placeholder="' . esc_attr__('邮箱', 'akina') . ' ' . ( $req ? '(' . esc_attr__('必须 Email* ', 'akina') . ')' : '') . '" name="email" id="email" value="' . esc_attr($comment_author_email) . '" size="22" tabindex="1" autocomplete="off" ' . ($req ? "aria-required='true'" : '' ). ' /></div>',
|
'<div class="popup cmt-popup" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -65px;width: 130px;">' . __("You\' receive notification by email", "sakura")/*你将收到回复通知*/ . '</span><input type="text" placeholder="' . __("email", "sakura") . ' ' . ( $req ? '(' . __("Must Email* ", "sakura") . ')' : '') . '" name="email" id="email" value="' . esc_attr($comment_author_email) . '" size="22" tabindex="1" autocomplete="off" ' . ($req ? "aria-required='true'" : '' ). ' /></div>',
|
||||||
'url' =>
|
'url' =>
|
||||||
'<div class="popup cmt-popup" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -55px;width: 110px;">禁止小广告😀</span><input type="text" placeholder="' . esc_attr__('网站 (选填 Site)', 'akina') . '" name="url" id="url" value="' . esc_attr($comment_author_url) . '" size="22" autocomplete="off" tabindex="1" /></div></div>' . $robot_comments . $private_ms . $mail_notify ,
|
'<div class="popup cmt-popup" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -55px;width: 110px;">' . __("Advertisement is forbidden 😀", "sakura")/*禁止小广告😀*/ . '</span><input type="text" placeholder="' . __("Optional Site", "sakura") . '" name="url" id="url" value="' . esc_attr($comment_author_url) . '" size="22" autocomplete="off" tabindex="1" /></div></div>' . $robot_comments . $private_ms . $mail_notify ,
|
||||||
'qq' =>
|
'qq' =>
|
||||||
'<input type="text" placeholder="' . esc_attr__('QQ', 'akina') . '" name="new_field_qq" id="qq" value="' . esc_attr($comment_author_url) . '" style="display:none" autocomplete="off"/><!--此栏不可见-->'
|
'<input type="text" placeholder="QQ" name="new_field_qq" id="qq" value="' . esc_attr($comment_author_url) . '" style="display:none" autocomplete="off"/><!--此栏不可见-->'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="m-search">
|
<div class="m-search">
|
||||||
<form class="m-search-form" method="get" action="<?php echo home_url(); ?>" role="search">
|
<form class="m-search-form" method="get" action="<?php echo home_url(); ?>" role="search">
|
||||||
<input class="m-search-input" type="search" name="s" placeholder="<?php _e('搜索...', 'akina') ?>" required>
|
<input class="m-search-input" type="search" name="s" placeholder="<?php _e('Search...', 'sakura') /*搜索...*/?>" required>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?>
|
<?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?>
|
||||||
@ -72,7 +72,7 @@
|
|||||||
<?php if(akina_option('live_search')){ ?>
|
<?php if(akina_option('live_search')){ ?>
|
||||||
<div class="micro">
|
<div class="micro">
|
||||||
<i class="iconfont icon-search"></i>
|
<i class="iconfont icon-search"></i>
|
||||||
<input id="search-input" class="text-input" type="search" name="s" placeholder="<?php _e('想要找点什么呢?', 'akina') ?>" required>
|
<input id="search-input" class="text-input" type="search" name="s" placeholder="<?php _e('Want to find something?', 'sakura') /*想要找点什么呢*/?>" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="ins-section-wrapper">
|
<div class="ins-section-wrapper">
|
||||||
<a id="Ty" href="#"></a>
|
<a id="Ty" href="#"></a>
|
||||||
@ -80,9 +80,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php }else{ ?>
|
<?php }else{ ?>
|
||||||
<div class="micro">
|
<div class="micro">
|
||||||
<p class="micro mb-"><?php _e('想要找点什么呢?', 'akina') ?></p>
|
<p class="micro mb-"><?php _e('Want to find something?', 'sakura') /*想要找点什么呢*/?></p>
|
||||||
<i class="iconfont icon-search"></i>
|
<i class="iconfont icon-search"></i>
|
||||||
<input class="text-input" type="search" name="s" placeholder="<?php _e('Search', 'akina') ?>" required>
|
<input class="text-input" type="search" name="s" placeholder="<?php _e('Search', 'sakura') ?>" required>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1254,7 +1254,7 @@ function siren_private(){
|
|||||||
//时间序列
|
//时间序列
|
||||||
function memory_archives_list() {
|
function memory_archives_list() {
|
||||||
if( true ){
|
if( true ){
|
||||||
$output = '<div id="archives"><p style="text-align:right;">[<span id="al_expand_collapse">全部展开/收缩</span>]<!-- (注: 点击月份可以展开)--></p>';
|
$output = '<div id="archives"><p style="text-align:right;">[<span id="al_expand_collapse">'.__( "All expand/collapse", "sakura" )/*全部展开/收缩*/.'</span>]<!-- (注: 点击月份可以展开)--></p>';
|
||||||
$the_query = new WP_Query( 'posts_per_page=-1&ignore_sticky_posts=1&post_type=post' ); //update: 加上忽略置顶文章
|
$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;
|
$year=0; $mon=0; $i=0; $j=0;
|
||||||
while ( $the_query->have_posts() ) : $the_query->the_post();
|
while ( $the_query->have_posts() ) : $the_query->the_post();
|
||||||
@ -1265,13 +1265,13 @@ function memory_archives_list() {
|
|||||||
if ($year != $year_tmp && $year > 0) $output .= '</ul>';
|
if ($year != $year_tmp && $year > 0) $output .= '</ul>';
|
||||||
if ($year != $year_tmp) {
|
if ($year != $year_tmp) {
|
||||||
$year = $year_tmp;
|
$year = $year_tmp;
|
||||||
$output .= '<h3 class="al_year">'. $year .' 年</h3><ul class="al_mon_list">'; //输出年份
|
$output .= '<h3 class="al_year">'. $year . __("","sakura"). /*年*/' </h3><ul class="al_mon_list">'; //输出年份
|
||||||
}
|
}
|
||||||
if ($mon != $mon_tmp) {
|
if ($mon != $mon_tmp) {
|
||||||
$mon = $mon_tmp;
|
$mon = $mon_tmp;
|
||||||
$output .= '<li class="al_li"><span class="al_mon">'.$mon.'月 (<span id="post-num"></span>篇文章)</span><ul class="al_post_list">'; //输出月份
|
$output .= '<li class="al_li"><span class="al_mon">'.$mon. __("","sakura"). /*月*/' (<span id="post-num"></span>'.__("article(s)","sakura") /*篇文章*/.')</span><ul class="al_post_list">'; //输出月份
|
||||||
}
|
}
|
||||||
$output .= '<li>'.'<a href="'. get_permalink() .'"><span style="color:#0bf;">'.get_the_time('d日 ') .'</span>'. get_the_title() .' <span>('.get_post_views(get_the_ID()).' <span class="fa fa-fire" aria-hidden="true"></span> / '. get_comments_number('0', '1', '%') .' <span class="fa fa-commenting" aria-hidden="true"></span>)</span></a></li>'; //输出文章日期和标题
|
$output .= '<li>'.'<a href="'. get_permalink() .'"><span style="color:#0bf;">'.get_the_time('d'.__("","sakura")) /*日*/.'</span>'. get_the_title() .' <span>('.get_post_views(get_the_ID()).' <span class="fa fa-fire" aria-hidden="true"></span> / '. get_comments_number('0', '1', '%') .' <span class="fa fa-commenting" aria-hidden="true"></span>)</span></a></li>'; //输出文章日期和标题
|
||||||
endwhile;
|
endwhile;
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
$output .= '</ul></li></ul> <!--<ul class="al_mon_list"><li><ul class="al_post_list" style="display: block;"><li>博客已经萌萌哒运行了<span id="monitorday"></span>天</li></ul></li></ul>--></div>';
|
$output .= '</ul></li></ul> <!--<ul class="al_mon_list"><li><ul class="al_post_list" style="display: block;"><li>博客已经萌萌哒运行了<span id="monitorday"></span>天</li></ul></li></ul>--></div>';
|
||||||
@ -1664,7 +1664,7 @@ EOS;
|
|||||||
foreach ($comments as $comment) {
|
foreach ($comments as $comment) {
|
||||||
$is_private = get_comment_meta($comment->comment_ID, '_private', true);
|
$is_private = get_comment_meta($comment->comment_ID, '_private', true);
|
||||||
if($is_private){
|
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;
|
continue;
|
||||||
}else{
|
}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))).'},';
|
$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))).'},';
|
||||||
|
@ -32,7 +32,7 @@ Theme by Mashiro
|
|||||||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
|
||||||
<title itemprop="name"><?php global $page, $paged;wp_title( '-', true, 'right' );
|
<title itemprop="name"><?php global $page, $paged;wp_title( '-', true, 'right' );
|
||||||
bloginfo( 'name' );$site_description = get_bloginfo( 'description', 'display' );
|
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 页*/?>
|
||||||
</title>
|
</title>
|
||||||
<?php
|
<?php
|
||||||
if (akina_option('akina_meta') == true) {
|
if (akina_option('akina_meta') == true) {
|
||||||
|
@ -16,7 +16,7 @@ get_header(); ?>
|
|||||||
if ( have_posts() ) : ?>
|
if ( have_posts() ) : ?>
|
||||||
<?php if(akina_option('patternimg') || !get_random_bg_url()){ ?>
|
<?php if(akina_option('patternimg') || !get_random_bg_url()){ ?>
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1 class="page-title"><?php printf( esc_html__( '搜索结果: %s', 'akina' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
|
<h1 class="page-title"><?php printf( __( 'search result: %s', 'sakura' )/*搜索结果*/, '<span>' . get_search_query() . '</span>' ); ?></h1>
|
||||||
</header><!-- .page-header -->
|
</header><!-- .page-header -->
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
@ -39,7 +39,7 @@ get_header(); ?>
|
|||||||
<!-- search start -->
|
<!-- search start -->
|
||||||
<form class="s-search">
|
<form class="s-search">
|
||||||
<i class="iconfont icon-search"></i>
|
<i class="iconfont icon-search"></i>
|
||||||
<input class="text-input" type="search" name="s" placeholder="<?php _e('Search...', 'akina') ?>" required>
|
<input class="text-input" type="search" name="s" placeholder="<?php _e('Search...', 'sakura') ?>" required>
|
||||||
</form>
|
</form>
|
||||||
<!-- search end -->
|
<!-- search end -->
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user