translate

This commit is contained in:
spirit 2019-11-17 21:36:51 +08:00
parent c9a029d775
commit 23088bfc2b
11 changed files with 127 additions and 129 deletions

View File

@ -52,7 +52,7 @@ get_header(); ?>
</main><!-- #main -->
<?php if ( akina_option('pagenav_style') == 'ajax') { ?>
<div id="pagination" <?php if(akina_option('image_category') && is_category(explode(',',akina_option('image_category')))) echo 'class="pagination-archive"'; ?>><?php next_posts_link(__('Previous')); ?></div>
<div id="pagination" <?php if(akina_option('image_category') && is_category(explode(',',akina_option('image_category')))) echo 'class="pagination-archive"'; ?>><?php next_posts_link(' Previous'); ?></div>
<div id="add_post"><span id="add_post_time" style="visibility: hidden;" title="<?php echo akina_option('auto_load_post',''); ?>" ></span></div>
<?php }else{ ?>
<nav class="navigator">

View File

@ -73,7 +73,7 @@ get_header();
</main><!-- #main -->
<?php if ( akina_option('pagenav_style') == 'ajax') { ?>
<div id="pagination"><?php next_posts_link(__('Previous')); ?></div>
<div id="pagination"><?php next_posts_link(' Previous'); ?></div>
<div id="add_post"><span id="add_post_time" style="visibility: hidden;" title="<?php echo akina_option('auto_load_post',''); ?>" ></span></div>
<?php }else{ ?>
<nav class="navigator">

View File

@ -1654,7 +1654,7 @@ function markdown_parser($incoming_comment) {
}
$myCustomer = $wpdb->get_row("SELECT * FROM wp_comments");
//Add column if not present.
if (!isset($myCustomer->say_state)) {
if (!isset($myCustomer->comment_markdown)) {
$wpdb->query("ALTER TABLE wp_comments ADD comment_markdown text");
}
$comment_markdown_content = $incoming_comment['comment_content'];

Binary file not shown.

View File

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2019-11-16 10:08+0800\n"
"PO-Revision-Date: 2019-11-16 10:11+0800\n"
"POT-Creation-Date: 2019-11-17 21:32+0800\n"
"PO-Revision-Date: 2019-11-17 21:32+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en_US\n"
@ -38,14 +38,10 @@ msgstr "Return to home page"
msgid "Don't worry, search in site?"
msgstr ""
#: 404.php:53 footer.php:73 search.php:42
#: 404.php:53 footer.php:62 search.php:42
msgid "Search..."
msgstr "Search..."
#: archive.php:55 author.php:76
msgid "Previous"
msgstr "Previous"
#: comments.php:21
msgid "view comments"
msgstr "View comments"
@ -130,86 +126,86 @@ msgstr ""
msgid "Site"
msgstr ""
#: footer.php:75 footer.php:83
msgid "Want to find something?"
msgstr ""
#: footer.php:85
msgid "Search"
msgstr ""
#: footer.php:144
msgid "Widgets"
msgstr ""
#: footer.php:86 footer.php:94
msgid "Want to find something?"
msgstr ""
#: footer.php:96
msgid "Search"
msgstr ""
#: functions.php:52
#: functions.php:51
msgid "Nav Menus"
msgstr ""
#: functions.php:390 inc/theme_plus.php:187 layouts/authorprofile.php:11
#: functions.php:389 inc/theme_plus.php:187 layouts/authorprofile.php:11
#: options.php:123
msgid "Author"
msgstr ""
#: functions.php:390
#: functions.php:389
msgid "Blogger"
msgstr ""
#: functions.php:394
#: functions.php:393
msgid "Location"
msgstr ""
#: functions.php:398
#: functions.php:397
msgid "Private"
msgstr ""
#: functions.php:400
#: functions.php:399
msgid "Yes"
msgstr ""
#: functions.php:402
#: functions.php:401
msgid "No"
msgstr ""
#: functions.php:405
#: functions.php:404
msgid "Edit"
msgstr ""
#: functions.php:486
#: functions.php:485
msgid ""
"Please install pulgin <a href=\"https://wordpress.org/plugins/wp-statistics/"
"\" target=\"_blank\">WP-Statistics</a>"
msgstr ""
#: functions.php:539
#: functions.php:538
msgid "This guy is so lazy ╮(╯▽╰)╭"
msgstr ""
#: functions.php:1260
#: functions.php:1248
msgid "All expand/collapse"
msgstr ""
#: functions.php:1271 options.php:840
#: functions.php:1259 options.php:840
msgid " "
msgstr ""
#: functions.php:1275
#: functions.php:1263
msgid " post(s)"
msgstr ""
#: functions.php:1297 functions.php:1300 inc/theme_plus.php:479
#: functions.php:1285 functions.php:1288 inc/theme_plus.php:479
msgid "Dashboard"
msgstr ""
#: functions.php:1513
#: functions.php:1501
msgid "<b>ERROR</b>: This email domain (<b>@"
msgstr ""
#: functions.php:1593
#: functions.php:1581
msgid "QQ"
msgstr ""
#: functions.php:1649
#: functions.php:1637
msgid "Sidebar"
msgstr ""
@ -1501,7 +1497,7 @@ msgid "Chevereto API v1 key"
msgstr ""
#: options.php:1042
msgid "Get your API key here "
msgid "Get your API key here: "
msgstr ""
#: options.php:1048
@ -1745,7 +1741,7 @@ msgid "Please enter email address."
msgstr ""
#: user/page-register.php:26
msgid "Invalid email address"
msgid "Invalid email address."
msgstr ""
#: user/page-register.php:29
@ -1753,11 +1749,11 @@ msgid "This email address has been registered."
msgstr ""
#: user/page-register.php:34
msgid "Password length is at least 6 digits"
msgid "Password length is at least 6 digits."
msgstr ""
#: user/page-register.php:36
msgid "Inconsistent password entered twice"
msgid "Inconsistent password entered twice."
msgstr ""
#: user/page-register.php:41
@ -1781,9 +1777,12 @@ msgid "Sign up"
msgstr ""
#: user/page-register.php:92
msgid "Registration is not open yet"
msgid "Registration is not open yet."
msgstr ""
#~ msgid " Previous"
#~ msgstr " Previous"
#, php-format
#~ msgid "第 %s 页"
#~ msgstr "Page %s"

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2019-11-16 10:11+0800\n"
"POT-Creation-Date: 2019-11-17 21:32+0800\n"
"PO-Revision-Date: 2019-11-01 14:27+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -38,14 +38,10 @@ msgstr ""
msgid "Don't worry, search in site?"
msgstr ""
#: 404.php:53 footer.php:73 search.php:42
#: 404.php:53 footer.php:62 search.php:42
msgid "Search..."
msgstr ""
#: archive.php:55 author.php:76
msgid "Previous"
msgstr ""
#: comments.php:21
msgid "view comments"
msgstr ""
@ -130,85 +126,85 @@ msgstr ""
msgid "Site"
msgstr ""
#: footer.php:75 footer.php:83
msgid "Want to find something?"
msgstr ""
#: footer.php:85
msgid "Search"
msgstr ""
#: footer.php:144
msgid "Widgets"
msgstr ""
#: footer.php:86 footer.php:94
msgid "Want to find something?"
msgstr ""
#: footer.php:96
msgid "Search"
msgstr ""
#: functions.php:52
#: functions.php:51
msgid "Nav Menus"
msgstr ""
#: functions.php:390 inc/theme_plus.php:187 layouts/authorprofile.php:11 options.php:123
#: functions.php:389 inc/theme_plus.php:187 layouts/authorprofile.php:11 options.php:123
msgid "Author"
msgstr ""
#: functions.php:390
#: functions.php:389
msgid "Blogger"
msgstr ""
#: functions.php:394
#: functions.php:393
msgid "Location"
msgstr ""
#: functions.php:398
#: functions.php:397
msgid "Private"
msgstr ""
#: functions.php:400
#: functions.php:399
msgid "Yes"
msgstr ""
#: functions.php:402
#: functions.php:401
msgid "No"
msgstr ""
#: functions.php:405
#: functions.php:404
msgid "Edit"
msgstr ""
#: functions.php:486
#: functions.php:485
msgid ""
"Please install pulgin <a href=\"https://wordpress.org/plugins/wp-statistics/\" target=\"_blank"
"\">WP-Statistics</a>"
msgstr ""
#: functions.php:539
#: functions.php:538
msgid "This guy is so lazy ╮(╯▽╰)╭"
msgstr ""
#: functions.php:1260
#: functions.php:1248
msgid "All expand/collapse"
msgstr ""
#: functions.php:1271 options.php:840
#: functions.php:1259 options.php:840
msgid " "
msgstr ""
#: functions.php:1275
#: functions.php:1263
msgid " post(s)"
msgstr ""
#: functions.php:1297 functions.php:1300 inc/theme_plus.php:479
#: functions.php:1285 functions.php:1288 inc/theme_plus.php:479
msgid "Dashboard"
msgstr ""
#: functions.php:1513
#: functions.php:1501
msgid "<b>ERROR</b>: This email domain (<b>@"
msgstr ""
#: functions.php:1593
#: functions.php:1581
msgid "QQ"
msgstr ""
#: functions.php:1649
#: functions.php:1637
msgid "Sidebar"
msgstr ""
@ -1478,7 +1474,7 @@ msgid "Chevereto API v1 key"
msgstr ""
#: options.php:1042
msgid "Get your API key here "
msgid "Get your API key here: "
msgstr ""
#: options.php:1048
@ -1707,7 +1703,7 @@ msgid "Please enter email address."
msgstr ""
#: user/page-register.php:26
msgid "Invalid email address"
msgid "Invalid email address."
msgstr ""
#: user/page-register.php:29
@ -1715,11 +1711,11 @@ msgid "This email address has been registered."
msgstr ""
#: user/page-register.php:34
msgid "Password length is at least 6 digits"
msgid "Password length is at least 6 digits."
msgstr ""
#: user/page-register.php:36
msgid "Inconsistent password entered twice"
msgid "Inconsistent password entered twice."
msgstr ""
#: user/page-register.php:41
@ -1743,5 +1739,5 @@ msgid "Sign up"
msgstr ""
#: user/page-register.php:92
msgid "Registration is not open yet"
msgid "Registration is not open yet."
msgstr ""

Binary file not shown.

View File

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2019-11-16 10:08+0800\n"
"PO-Revision-Date: 2019-11-16 10:11+0800\n"
"POT-Creation-Date: 2019-11-17 21:32+0800\n"
"PO-Revision-Date: 2019-11-17 21:32+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_CN\n"
@ -38,14 +38,10 @@ msgstr "返回首页"
msgid "Don't worry, search in site?"
msgstr "别着急,试试站内检索?"
#: 404.php:53 footer.php:73 search.php:42
#: 404.php:53 footer.php:62 search.php:42
msgid "Search..."
msgstr "搜索..."
#: archive.php:55 author.php:76
msgid "Previous"
msgstr "上一页"
#: comments.php:21
msgid "view comments"
msgstr "查看评论"
@ -130,52 +126,52 @@ msgstr "禁止小广告😀"
msgid "Site"
msgstr "网站"
#: footer.php:75 footer.php:83
msgid "Want to find something?"
msgstr "想要找点什么呢?"
#: footer.php:85
msgid "Search"
msgstr "搜索"
#: footer.php:144
msgid "Widgets"
msgstr "小工具"
#: footer.php:86 footer.php:94
msgid "Want to find something?"
msgstr "想要找点什么呢?"
#: footer.php:96
msgid "Search"
msgstr "搜索"
#: functions.php:52
#: functions.php:51
msgid "Nav Menus"
msgstr "导航菜单"
#: functions.php:390 inc/theme_plus.php:187 layouts/authorprofile.php:11
#: functions.php:389 inc/theme_plus.php:187 layouts/authorprofile.php:11
#: options.php:123
msgid "Author"
msgstr "作者"
#: functions.php:390
#: functions.php:389
msgid "Blogger"
msgstr "博主"
#: functions.php:394
#: functions.php:393
msgid "Location"
msgstr "来自"
#: functions.php:398
#: functions.php:397
msgid "Private"
msgstr "私密"
#: functions.php:400
#: functions.php:399
msgid "Yes"
msgstr "是"
#: functions.php:402
#: functions.php:401
msgid "No"
msgstr "否"
#: functions.php:405
#: functions.php:404
msgid "Edit"
msgstr "编辑"
#: functions.php:486
#: functions.php:485
msgid ""
"Please install pulgin <a href=\"https://wordpress.org/plugins/wp-statistics/"
"\" target=\"_blank\">WP-Statistics</a>"
@ -183,35 +179,35 @@ msgstr ""
"请安装插件 <a href=\"https://wordpress.org/plugins/wp-statistics/\" target="
"\"_blank\">WP-Statistics</a>"
#: functions.php:539
#: functions.php:538
msgid "This guy is so lazy ╮(╯▽╰)╭"
msgstr "这家伙好懒╮(╯▽╰)╭"
#: functions.php:1260
#: functions.php:1248
msgid "All expand/collapse"
msgstr "全部展开/收缩"
#: functions.php:1271 options.php:840
#: functions.php:1259 options.php:840
msgid " "
msgstr ""
#: functions.php:1275
#: functions.php:1263
msgid " post(s)"
msgstr " 篇文章"
#: functions.php:1297 functions.php:1300 inc/theme_plus.php:479
#: functions.php:1285 functions.php:1288 inc/theme_plus.php:479
msgid "Dashboard"
msgstr "管理中心"
#: functions.php:1513
#: functions.php:1501
msgid "<b>ERROR</b>: This email domain (<b>@"
msgstr ""
#: functions.php:1593
#: functions.php:1581
msgid "QQ"
msgstr ""
#: functions.php:1649
#: functions.php:1637
msgid "Sidebar"
msgstr "侧栏"
@ -1528,7 +1524,7 @@ msgid "Chevereto API v1 key"
msgstr ""
#: options.php:1042
msgid "Get your API key here "
msgid "Get your API key here: "
msgstr "在这里获取你的 API key "
#: options.php:1048
@ -1549,7 +1545,7 @@ msgstr "评论图片代理"
#: options.php:1056
msgid ""
"A front-ed proxy for the uploaded images. Leave it blank if you do not need."
msgstr "前端显示的图片的代理"
msgstr "前端显示的图片的代理"
#: options.php:1062
msgid "Imgur upload proxy"
@ -1783,11 +1779,13 @@ msgid "This username has been registered."
msgstr "该用户名已被注册。"
#: user/page-register.php:24
#, fuzzy
#| msgid "Please enter email address."
msgid "Please enter email address."
msgstr "请填写电子邮件地址。"
#: user/page-register.php:26
msgid "Invalid email address"
msgid "Invalid email address."
msgstr "电子邮件地址不正确。"
#: user/page-register.php:29
@ -1795,11 +1793,11 @@ msgid "This email address has been registered."
msgstr "该电子邮件地址已经被注册。"
#: user/page-register.php:34
msgid "Password length is at least 6 digits"
msgid "Password length is at least 6 digits."
msgstr "密码长度至少6位。"
#: user/page-register.php:36
msgid "Inconsistent password entered twice"
msgid "Inconsistent password entered twice."
msgstr "两次输入的密码不一致。"
#: user/page-register.php:41
@ -1823,9 +1821,14 @@ msgid "Sign up"
msgstr "注 册"
#: user/page-register.php:92
msgid "Registration is not open yet"
#, fuzzy
#| msgid "Registration is not open yet"
msgid "Registration is not open yet."
msgstr "暂未开放注册。"
#~ msgid " Previous"
#~ msgstr " 上一页"
#~ msgid "A branch of theme Akina"
#~ msgstr "Akina主题分支原版地址 http://www.akina.pw/themeakina"

View File

@ -1039,7 +1039,7 @@ function optionsframework_options() {
$options[] = array(
'name' => __('Chevereto API v1 key', 'sakura'),
'desc' => __('Get your API key here '.akina_option('cheverto_url').'/dashboard/settings/api', 'sakura'),
'desc' => __('Get your API key here: '.akina_option('cheverto_url').'/dashboard/settings/api', 'sakura'),
'id' => 'chevereto_api_key',
'std' => '',
'type' => 'text');

View File

@ -23,7 +23,7 @@ if( !empty($_POST['register_reg']) ) {
if ( $user_email == '' ) {
$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>'.__("Please enter email address.","sakura")./*请填写电子邮件地址。*/'<br />';
} elseif ( ! is_email( $user_email ) ) {
$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>'.__("Invalid email address","sakura")./*电子邮件地址不正确。*/'<br />';
$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>'.__("Invalid email address.","sakura")./*电子邮件地址不正确。*/'<br />';
$user_email = '';
} elseif ( email_exists( $user_email ) ) {
$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>'.__("This email address has been registered.","sakura")./*该电子邮件地址已经被注册。*/'<br />';
@ -31,9 +31,9 @@ if( !empty($_POST['register_reg']) ) {
// Check the password
if(strlen($_POST['user_pass']) < 6){
$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>'.__("Password length is at least 6 digits","sakura")./*密码长度至少6位。*/'<br />';
$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>'.__("Password length is at least 6 digits.","sakura")./*密码长度至少6位。*/'<br />';
}elseif($_POST['user_pass'] != $_POST['user_pass2']){
$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>'.__("Inconsistent password entered twice","sakura")./*两次输入的密码不一致。*/'<br />';
$error .= '<strong>'.__("Error","sakura")./*错误*/'</strong>'.__("Inconsistent password entered twice.","sakura")./*两次输入的密码不一致。*/'<br />';
}
// verification
@ -89,7 +89,7 @@ if( !empty($_POST['register_reg']) ) {
<script>//window.location.href='<?php echo $loadurl; ?>';</script>
<?php } ?>
<?php else : ?>
<div class="register-close"><p><?php _e("Registration is not open yet","sakura")/*暂未开放注册。*/?></p></div>
<div class="register-close"><p><?php _e("Registration is not open yet.","sakura")/*暂未开放注册。*/?></p></div>
<?php endif; ?>
</main><!-- #main -->
</div><!-- #primary -->