mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-22 06:48:12 +08:00
Translation 1911011510
This commit is contained in:
parent
c7f97d2349
commit
f02595bf5c
16
comments.php
16
comments.php
@ -50,9 +50,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(comments_open()){
|
if(comments_open()){
|
||||||
if(akina_option('norobot')) $robot_comments = '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="no-robot"><span class="siren-no-robot-checkbox siren-checkbox-radioInput"></span>滴,学生卡 | I\'m not a robot</label>';
|
if(akina_option('norobot')) $robot_comments = '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="no-robot"><span class="siren-no-robot-checkbox siren-checkbox-radioInput"></span>'.__('I\'m not a robot', 'sakura').'</label>';
|
||||||
$private_ms = akina_option('open_private_message') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="is-private"><span class="siren-is-private-checkbox siren-checkbox-radioInput"></span>悄悄话 | Comment in private</label>' : '';
|
$private_ms = akina_option('open_private_message') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="is-private"><span class="siren-is-private-checkbox siren-checkbox-radioInput"></span>'.__('Comment in private', 'sakura').'</label>' : '';
|
||||||
$mail_notify = akina_option('mail_notify') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="mail-notify"><span class="siren-mail-notify-checkbox siren-checkbox-radioInput"></span>邮件通知 | Comment reply notify</label>' : '';
|
$mail_notify = akina_option('mail_notify') ? '<label class="siren-checkbox-label"><input class="siren-checkbox-radio" type="checkbox" name="mail-notify"><span class="siren-mail-notify-checkbox siren-checkbox-radioInput"></span>'.__('Comment reply notify', 'sakura').'</label>' : '';
|
||||||
$args = array(
|
$args = array(
|
||||||
'id_form' => 'commentform',
|
'id_form' => 'commentform',
|
||||||
'id_submit' => 'submit',
|
'id_submit' => 'submit',
|
||||||
@ -60,12 +60,12 @@
|
|||||||
'title_reply_to' => '<div class="graybar"><i class="fa fa-comments-o"></i>' . __('Leave a Reply to', 'sakura') . ' %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' => __('Cancel Reply', 'sakura'),
|
'cancel_reply_link' => __('Cancel Reply', 'sakura'),
|
||||||
'label_submit' => __('BiuBiuBiu~', 'sakura'),
|
'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="' . __("你是我一生只会遇见一次的惊喜", "sakura") . ' ..." name="comment" class="commentbody" id="comment" rows="5" tabindex="4"></textarea><label class="input-label">' . __("你是我一生只会遇见一次的惊喜", "sakura") . ' ...</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="' . __("You are a surprise that I will only meet once in my life", "sakura") . ' ..." name="comment" class="commentbody" id="comment" rows="5" tabindex="4"></textarea><label class="input-label">' . __("You are a surprise that I will only meet once in my life", "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">' . __("Click me OωO", "sakura")/*戳我试试 OωO*/ . '</span>
|
<span class="emotion-toggle-off">' . __("Click me OωO", "sakura")/*戳我试试 OωO*/ . '</span>
|
||||||
<span class="emotion-toggle-on">' . __("HeHeHe ヾ(≧∇≦*)ゝ", "sakura")/*嘿嘿嘿 ヾ(≧∇≦*)ゝ*/ . '</span>
|
<span class="emotion-toggle-on">' . __("Woooooow ヾ(≧∇≦*)ゝ", "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,11 +90,11 @@
|
|||||||
'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;">' . __("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>',
|
'<div class="popup cmt-popup cmt-author" onclick="cmt_showPopup(this)"><span class="popuptext" id="thePopup" style="margin-left: -115px;width: 230px;">' . __("Auto pull nickname and avatar with a QQ num. entered", "sakura")/*输入QQ号将自动拉取昵称和头像*/ . '</span><input type="text" placeholder="' . __("Nickname or QQ number", "sakura") /*昵称或QQ号*/. ' ' . ( $req ? '(' . __("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;">' . __("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>',
|
'<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* ", "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;">' . __("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 ,
|
'<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="' . __("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="QQ" 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"/><!--此栏不可见-->'
|
||||||
)
|
)
|
||||||
|
@ -25,20 +25,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|||||||
|
|
||||||
/* If the user can't edit theme options, no use running this plugin */
|
/* If the user can't edit theme options, no use running this plugin */
|
||||||
|
|
||||||
if ( get_user_locale( get_current_user_id() ) == "zh_CN") {
|
define( 'SAKURA_OPTIONS', __('Sakura Options', 'sakura') );
|
||||||
define( 'SAKURA_OPTIONS', 'Sakura主题设置' );
|
|
||||||
}
|
|
||||||
if ( get_user_locale( get_current_user_id() ) == "zh_TW") {
|
|
||||||
define( 'SAKURA_OPTIONS', 'Sakura主題設置' );
|
|
||||||
}
|
|
||||||
if ( get_user_locale( get_current_user_id() ) == "ja") {
|
|
||||||
define( 'SAKURA_OPTIONS', 'さくらテーマの設定' );
|
|
||||||
}
|
|
||||||
if ( get_user_locale( get_current_user_id() ) == "ja-JP") {
|
|
||||||
define( 'SAKURA_OPTIONS', 'さくらテーマの設定' );
|
|
||||||
} else {
|
|
||||||
define( 'SAKURA_OPTIONS', 'Sakura Options' );
|
|
||||||
}
|
|
||||||
|
|
||||||
add_action( 'init', 'optionsframework_rolescheck' );
|
add_action( 'init', 'optionsframework_rolescheck' );
|
||||||
|
|
||||||
@ -288,8 +275,8 @@ function optionsframework_page() { ?>
|
|||||||
<?php settings_fields( 'optionsframework' ); ?>
|
<?php settings_fields( 'optionsframework' ); ?>
|
||||||
<?php optionsframework_fields(); /* Settings */ ?>
|
<?php optionsframework_fields(); /* Settings */ ?>
|
||||||
<div id="optionsframework-submit">
|
<div id="optionsframework-submit">
|
||||||
<input type="submit" class="button-primary" name="update" value="<?php esc_attr_e( '保存设置', 'options_framework_theme' ); ?>" />
|
<input type="submit" class="button-primary" name="update" value="<?php esc_attr_e( 'Save', 'sakaura' ); ?>" />
|
||||||
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e( '恢复默认', 'options_framework_theme' ); ?>" onclick="return confirm( '<?php print esc_js( __( '如果单击“确定”会导致之前所有的设置都丢失,确定要这样做吗?', 'options_framework_theme' ) ); ?>' );" />
|
<input type="submit" class="reset-button button-secondary" name="reset" value="<?php esc_attr_e( 'Restore default', 'sakura' ); ?>" onclick="return confirm( '<?php print esc_js( __( 'All setting will be lost, sure?', 'sakura' ) ); ?>' );" />
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -48,15 +48,15 @@ function optionsframework_uploader( $_id, $_value, $_desc = '', $_name = '' ) {
|
|||||||
if ( $value ) {
|
if ( $value ) {
|
||||||
$class = ' has-file';
|
$class = ' has-file';
|
||||||
}
|
}
|
||||||
$output .= '<input id="' . $id . '" class="upload' . $class . '" type="text" name="'.$name.'" value="' . $value . '" placeholder="' . __('未选择文件', 'options_framework_theme') .'" />' . "\n";
|
$output .= '<input id="' . $id . '" class="upload' . $class . '" type="text" name="'.$name.'" value="' . $value . '" placeholder="' . __('Choose file', 'sakura') .'" />' . "\n";
|
||||||
if ( function_exists( 'wp_enqueue_media' ) ) {
|
if ( function_exists( 'wp_enqueue_media' ) ) {
|
||||||
if ( ( $value == '' ) ) {
|
if ( ( $value == '' ) ) {
|
||||||
$output .= '<input id="upload-' . $id . '" class="upload-button button" type="button" value="' . __( '上传', 'options_framework_theme' ) . '" />' . "\n";
|
$output .= '<input id="upload-' . $id . '" class="upload-button button" type="button" value="' . __( 'Upload', 'sakura' ) . '" />' . "\n";
|
||||||
} else {
|
} else {
|
||||||
$output .= '<input id="remove-' . $id . '" class="remove-file button" type="button" value="' . __( '移除', 'options_framework_theme' ) . '" />' . "\n";
|
$output .= '<input id="remove-' . $id . '" class="remove-file button" type="button" value="' . __( 'Remove', 'sakura' ) . '" />' . "\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$output .= '<p><i>' . __( 'Upgrade your version of WordPress for full media support.', 'options_framework_theme' ) . '</i></p>';
|
$output .= '<p><i>' . __( 'Upgrade your version of WordPress for full media support.', 'sakura' ) . '</i></p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $_desc != '' ) {
|
if ( $_desc != '' ) {
|
||||||
@ -80,7 +80,7 @@ function optionsframework_uploader( $_id, $_value, $_desc = '', $_name = '' ) {
|
|||||||
$output .= '';
|
$output .= '';
|
||||||
|
|
||||||
// Standard generic output if it's not an image.
|
// Standard generic output if it's not an image.
|
||||||
$title = __( 'View File', 'options_framework_theme' );
|
$title = __( 'View File', 'sakura' );
|
||||||
$output .= '<div class="no-image"><span class="file_link"><a href="' . $value . '" target="_blank" rel="external">'.$title.'</a></span></div>';
|
$output .= '<div class="no-image"><span class="file_link"><a href="' . $value . '" target="_blank" rel="external">'.$title.'</a></span></div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -110,8 +110,8 @@ function optionsframework_media_scripts( $hook ) {
|
|||||||
wp_register_script( 'of-media-uploader', OPTIONS_FRAMEWORK_DIRECTORY .'js/media-uploader.js', array( 'jquery' ) );
|
wp_register_script( 'of-media-uploader', OPTIONS_FRAMEWORK_DIRECTORY .'js/media-uploader.js', array( 'jquery' ) );
|
||||||
wp_enqueue_script( 'of-media-uploader' );
|
wp_enqueue_script( 'of-media-uploader' );
|
||||||
wp_localize_script( 'of-media-uploader', 'optionsframework_l10n', array(
|
wp_localize_script( 'of-media-uploader', 'optionsframework_l10n', array(
|
||||||
'upload' => __( '上传', 'options_framework_theme' ),
|
'upload' => __( 'Upload', 'sakura' ),
|
||||||
'remove' => __( '移除', 'options_framework_theme' )
|
'remove' => __( 'Remove', 'sakura' )
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
1610
languages/en_US.po
1610
languages/en_US.po
File diff suppressed because it is too large
Load Diff
1722
languages/sakura.pot
Normal file
1722
languages/sakura.pot
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
1526
languages/zh_CN.po
1526
languages/zh_CN.po
File diff suppressed because it is too large
Load Diff
10
options.php
10
options.php
@ -114,7 +114,7 @@ function optionsframework_options() {
|
|||||||
|
|
||||||
$options[] = array(
|
$options[] = array(
|
||||||
'name' => __('Site title', 'sakura'),/*站点名称*/
|
'name' => __('Site title', 'sakura'),/*站点名称*/
|
||||||
'desc' => __('樱花庄的白猫', 'sakura'),
|
'desc' => __('Mashiro\'s Blog', 'sakura'),
|
||||||
'id' => 'site_name',
|
'id' => 'site_name',
|
||||||
'std' => '',
|
'std' => '',
|
||||||
'type' => 'text');
|
'type' => 'text');
|
||||||
@ -340,8 +340,8 @@ function optionsframework_options() {
|
|||||||
'type' => 'text');
|
'type' => 'text');
|
||||||
|
|
||||||
$options[] = array(
|
$options[] = array(
|
||||||
'name' => __('站长统计(不建议使用)', 'sakura'),
|
'name' => __('CNZZ Statistics (not recommand)', 'sakura'), /*站长统计(不建议使用)*/
|
||||||
'desc' => __('填写统计代码,将被隐藏', 'sakura'),
|
'desc' => __('Statistics code, which will be invisible in web page.', 'sakura'), /*填写统计代码,将被隐藏*/
|
||||||
'id' => 'site_statistics',
|
'id' => 'site_statistics',
|
||||||
'std' => '',
|
'std' => '',
|
||||||
'type' => 'textarea');
|
'type' => 'textarea');
|
||||||
@ -457,9 +457,9 @@ function optionsframework_options() {
|
|||||||
|
|
||||||
$options[] = array(
|
$options[] = array(
|
||||||
'name' => __('Top-feature title', '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'),/*默认为聚焦,你也可以修改为其他,当然不能当广告用!不允许!!*/
|
'desc' => __('Default is Discovery, you can also change it to other, of course you can\'t use it as an advertisement!Not allowed!!', 'sakura'),/*默认为聚焦,你也可以修改为其他,当然不能当广告用!不允许!!*/
|
||||||
'id' => 'feature_title',
|
'id' => 'feature_title',
|
||||||
'std' => '聚焦',
|
'std' => 'Discovery',
|
||||||
'class' => 'mini',
|
'class' => 'mini',
|
||||||
'type' => 'text');
|
'type' => 'text');
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Theme Name: Sakura
|
|||||||
Theme URI: https://2heng.xin/theme-sakura/
|
Theme URI: https://2heng.xin/theme-sakura/
|
||||||
Author: Mashiro, Louie, Fuzzz
|
Author: Mashiro, Louie, Fuzzz
|
||||||
Author URI: http://2heng.xin
|
Author URI: http://2heng.xin
|
||||||
Description: Akina主题分支(原版地址 http://www.akina.pw/themeakina)
|
Description: A branch of theme Akina
|
||||||
Version: 3.2.7
|
Version: 3.2.7
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
Loading…
Reference in New Issue
Block a user