From 43cc975ff74b741af2693d6524499025472a7f4a Mon Sep 17 00:00:00 2001 From: "Dr.Z" Date: Sun, 19 Jan 2014 01:04:12 +0800 Subject: [PATCH] Add Simplized Chinese. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just modified the .json in language folder and some .tpl in the templates folder(except the admin folder). Noted there are a lot of front-end related code in the .js files, I’ll move on to them. --- public/language/zh_cn/category.json | 14 ++++++ public/language/zh_cn/footer.json | 7 +++ public/language/zh_cn/global.json | 31 ++++++++++++ public/language/zh_cn/language.json | 4 ++ public/language/zh_cn/login.json | 10 ++++ public/language/zh_cn/modules.json | 6 +++ public/language/zh_cn/notifications.json | 9 ++++ public/language/zh_cn/recent.json | 5 ++ public/language/zh_cn/register.json | 16 ++++++ public/language/zh_cn/reset_password.json | 13 +++++ public/language/zh_cn/topic.json | 50 +++++++++++++++++++ public/language/zh_cn/unread.json | 5 ++ public/language/zh_cn/user.json | 41 +++++++++++++++ public/language/zh_cn/users.json | 9 ++++ public/templates/account.tpl | 6 +-- public/templates/accountedit.tpl | 6 +-- public/templates/accountsettings.tpl | 2 +- public/templates/admin/testing/categories.tpl | 2 +- public/templates/composer.tpl | 8 +-- public/templates/emails/reset.tpl | 9 ++-- public/templates/emails/reset_plaintext.tpl | 11 ++-- public/templates/emails/welcome.tpl | 8 +-- public/templates/emails/welcome_plaintext.tpl | 11 ++++ public/templates/favourites.tpl | 4 +- public/templates/noscript/category.tpl | 2 +- public/templates/noscript/header.tpl | 4 +- public/templates/outgoing.tpl | 2 +- public/templates/recent.tpl | 12 ++--- public/templates/search.tpl | 6 +-- public/templates/topic.tpl | 2 +- public/templates/unread.tpl | 4 +- public/templates/users.tpl | 2 +- 32 files changed, 275 insertions(+), 46 deletions(-) create mode 100644 public/language/zh_cn/category.json create mode 100644 public/language/zh_cn/footer.json create mode 100644 public/language/zh_cn/global.json create mode 100644 public/language/zh_cn/language.json create mode 100644 public/language/zh_cn/login.json create mode 100644 public/language/zh_cn/modules.json create mode 100644 public/language/zh_cn/notifications.json create mode 100644 public/language/zh_cn/recent.json create mode 100644 public/language/zh_cn/register.json create mode 100644 public/language/zh_cn/reset_password.json create mode 100644 public/language/zh_cn/topic.json create mode 100644 public/language/zh_cn/unread.json create mode 100644 public/language/zh_cn/user.json create mode 100644 public/language/zh_cn/users.json diff --git a/public/language/zh_cn/category.json b/public/language/zh_cn/category.json new file mode 100644 index 0000000000..9385ac2f87 --- /dev/null +++ b/public/language/zh_cn/category.json @@ -0,0 +1,14 @@ +{ + "new_topic_button": "新主题", + "no_topics": "这个版面还没有任何内容。
赶紧来发帖吧!", + "sidebar.recent_replies": "最近回复", + "sidebar.active_participants": "活跃用户", + "sidebar.moderators": "版主", + "posts": "帖子", + "views": "浏览", + "posted": "发布", + "browsing": "正在浏览", + "no_replies": "还没有回复", + "replied": "回复", + "last_edited_by": "最后编辑" +} diff --git a/public/language/zh_cn/footer.json b/public/language/zh_cn/footer.json new file mode 100644 index 0000000000..2bdf57d65d --- /dev/null +++ b/public/language/zh_cn/footer.json @@ -0,0 +1,7 @@ +{ + "stats.online": "在线", + "stats.users": "用户", + "stats.topics": "主题", + "stats.posts": "帖子", + "success": "成功" +} diff --git a/public/language/zh_cn/global.json b/public/language/zh_cn/global.json new file mode 100644 index 0000000000..35194a6f7d --- /dev/null +++ b/public/language/zh_cn/global.json @@ -0,0 +1,31 @@ +{ + "home": "主页", + "search": "搜索", + "buttons.close": "关闭", + "403.title": "禁止访问", + "403.message": "你没有该页面的访问权限,可能是因为你尚未登录。", + "404.title": "无法找到该页", + "404.message": "你所查找的页面并不存在,返回主页。", + "500.title": "内部错误", + "500.message": "不好!看来是哪里出错了!", + + "register": "注册", + "login": "登录", + + "logout": "退出", + "logout.title": "你已经退出。", + "logout.message": "你已经成功退出登录。", + + "save_changes": "保存修改", + "close": "关闭", + + "header.admin": "管理", + "header.recent": "最近", + "header.unread": "未读", + "header.users": "用户", + "header.search": "搜索", + "header.profile": "设置", + + "notifications.loading": "消息载入中", + "chats.loading": "聊天载入中" +} diff --git a/public/language/zh_cn/language.json b/public/language/zh_cn/language.json new file mode 100644 index 0000000000..c9a02bc548 --- /dev/null +++ b/public/language/zh_cn/language.json @@ -0,0 +1,4 @@ +{ + "name": "简体中文", + "code": "zh_cn" +} \ No newline at end of file diff --git a/public/language/zh_cn/login.json b/public/language/zh_cn/login.json new file mode 100644 index 0000000000..9247f6e674 --- /dev/null +++ b/public/language/zh_cn/login.json @@ -0,0 +1,10 @@ +{ + "login": "登录", + "username": "用户名", + "password": "密码", + "remember_me": "记住我?", + "forgot_password": "忘记密码?", + "alternative_logins": "其他登录方式", + "failed_login_attempt": "登录失败,请再尝试。", + "login_successful": "你已成功登录!" +} diff --git a/public/language/zh_cn/modules.json b/public/language/zh_cn/modules.json new file mode 100644 index 0000000000..44c77f2b82 --- /dev/null +++ b/public/language/zh_cn/modules.json @@ -0,0 +1,6 @@ +{ + "chat.chatting_with": "和聊天中", + "chat.placeholder": "在这里输入消息,按Enter发送", + "chat.send": "发送", + "chat.no_active": "暂无聊天" +} \ No newline at end of file diff --git a/public/language/zh_cn/notifications.json b/public/language/zh_cn/notifications.json new file mode 100644 index 0000000000..8f32fcce2e --- /dev/null +++ b/public/language/zh_cn/notifications.json @@ -0,0 +1,9 @@ +{ + "title": "消息", + "back_to_home": "返回主页", + "mark_all_as_read": "全部标记为已读", + "outgoing_link": "站外链接", + "outgoing_link_message": "你正在离开本站。", + "continue_to": "继续前往", + "return_to": "返回" +} diff --git a/public/language/zh_cn/recent.json b/public/language/zh_cn/recent.json new file mode 100644 index 0000000000..b7dfeb7ea7 --- /dev/null +++ b/public/language/zh_cn/recent.json @@ -0,0 +1,5 @@ +{ + "day": "今日", + "week": "本周", + "month": "本月" +} \ No newline at end of file diff --git a/public/language/zh_cn/register.json b/public/language/zh_cn/register.json new file mode 100644 index 0000000000..b4c4525f00 --- /dev/null +++ b/public/language/zh_cn/register.json @@ -0,0 +1,16 @@ +{ + "register": "注册", + "help.email": "默认情况下,你的邮箱不会公开。", + "help.username_restrictions": "用户名由%1到%2个字符组成。其他人可以通过 @用户名 点名你。", + "help.minimum_password_length": "密码必须至少包含%1个字符。", + "email_address": "Email", + "email_address_placeholder": "输入邮箱地址", + "username": "用户名", + "username_placeholder": "输入用户名", + "password": "密码", + "password_placeholder": "输入密码", + "confirm_password": "确认密码", + "confirm_password_placeholder": "再次输入密码", + "register_now_button": "现在注册", + "alternative_registration": "其他方式注册" +} \ No newline at end of file diff --git a/public/language/zh_cn/reset_password.json b/public/language/zh_cn/reset_password.json new file mode 100644 index 0000000000..71055400be --- /dev/null +++ b/public/language/zh_cn/reset_password.json @@ -0,0 +1,13 @@ +{ + "reset_password": "重置密码", + "update_password": "更新密码", + "password_changed.title": "密码已更改", + "password_changed.message": "

密码重置成功,请重新登录。", + "wrong_reset_code.title": "验证码不正确", + "wrong_reset_code.message": "您输入的验证码有误,请重新输入,或申请新的验证码。", + "new_password": "新的密码", + "repeat_password": "确认密码", + "enter_email": "请输入您的Email地址,我们会发送邮件告诉您如何重置密码。", + "password_reset_sent": "密码重置邮件已发送。", + "invalid_email": "非法的邮箱地址/邮箱不存在!" +} diff --git a/public/language/zh_cn/topic.json b/public/language/zh_cn/topic.json new file mode 100644 index 0000000000..19920a6db1 --- /dev/null +++ b/public/language/zh_cn/topic.json @@ -0,0 +1,50 @@ +{ + "topic": "主题", + "topics": "主题", + + "no_topics_found": "没有找到主题!", + + "profile": "资料", + "posted_by": "发表", + "chat": "聊天", + "notify_me": "该主题有新回复时通知我", + "quote": "引用", + "reply": "回复", + "edit": "编辑", + "delete": "删除", + "move": "移动", + "fork": "作为主题", + "banned": "封禁", + "link": "链接", + + "thread_tools.title": "管理工具", + "thread_tools.pin": "置顶帖子", + "thread_tools.lock": "锁定帖子", + "thread_tools.move": "移动帖子", + "thread_tools.fork": "作为主题", + "thread_tools.delete": "删除帖子", + + "load_categories": "版面载入中", + "disabled_categories_note": "停用的版面为灰色", + "confirm_move": "移动", + "confirm_fork": "作为主题", + + "favourite": "收藏", + "favourites": "收藏", + "favourites.not_logged_in.title": "未登录", + "favourites.not_logged_in.message": "收藏帖子之前请先登录。", + "favourites.has_no_favourites": "你还没有任何收藏,收藏的帖子将会出现在这里!", + + "posted_by": "发布", + "loading_more_posts": "载入更多帖子", + "move_topic": "移动主题", + "move_post": "移动帖子", + "fork_topic": "作为主题", + "topic_will_be_moved_to": "这个主题将会被移动到", + "fork_topic_instruction": "点击要作为主题的帖子", + "fork_no_pids": "尚未选择帖子!", + "fork_success": "成功将帖子作为主题!", + + "reputation": "声望", + "posts": "发帖数" +} diff --git a/public/language/zh_cn/unread.json b/public/language/zh_cn/unread.json new file mode 100644 index 0000000000..fabface997 --- /dev/null +++ b/public/language/zh_cn/unread.json @@ -0,0 +1,5 @@ +{ + "no_unread_topics": "没有未读主题。", + "mark_all_read": "标记全部为已读", + "load_more": "载入更多" +} \ No newline at end of file diff --git a/public/language/zh_cn/user.json b/public/language/zh_cn/user.json new file mode 100644 index 0000000000..6c5dae7e28 --- /dev/null +++ b/public/language/zh_cn/user.json @@ -0,0 +1,41 @@ +{ + "banned": "封禁", + "offline": "下线", + "username": "用户名", + "email": "Email", + "fullname": "姓名", + "website": "网站", + "location": "地址", + "age": "年龄", + "joined": "加入时间", + "lastonline": "最后在线", + "profile_views": "资料被查看", + "reputation": "声望", + "posts": "发帖数", + "followers": "被关注", + "following": "关注", + "signature": "签名", + "gravatar": "Gravatar头像", + "birthday": "生日", + + "change_picture": "改变头像", + "edit": "编辑", + "uploaded_picture": "已有头像", + "upload_new_picture": "上传新头像", + "change_password": "更改密码", + "confirm_password": "确认密码", + "password": "密码", + + "upload_picture": "上传头像", + "upload_a_picture": "上传一张照片", + "image_spec": "你可以上传PNG,JPG或GIF格式的图像,文件小于256kb。", + + "settings": "设置", + "show_email": "显示我的邮箱", + + "has_no_follower": "该用户还没有被任何人关注。", + "follows_no_one": "该用户还没有关注过任何人。", + + "email_hidden": "邮箱被隐藏", + "hidden": "隐藏" +} diff --git a/public/language/zh_cn/users.json b/public/language/zh_cn/users.json new file mode 100644 index 0000000000..39242bdf64 --- /dev/null +++ b/public/language/zh_cn/users.json @@ -0,0 +1,9 @@ +{ + "latest_users": "最近用户", + "top_posters": "发帖最多", + "most_reputation": "声望最高", + "online": "在线", + "search": "搜索", + "enter_username": "输入你想找的用户名", + "load_more": "载入更多" +} \ No newline at end of file diff --git a/public/templates/account.tpl b/public/templates/account.tpl index 9b5eae3519..4f45983b57 100644 --- a/public/templates/account.tpl +++ b/public/templates/account.tpl @@ -21,11 +21,11 @@

- Chat + 聊天
- Follow - Unfollow + 关注 + 取消关注
diff --git a/public/templates/accountedit.tpl b/public/templates/accountedit.tpl index b511bf5917..b6f137946f 100644 --- a/public/templates/accountedit.tpl +++ b/public/templates/accountedit.tpl @@ -23,8 +23,8 @@ [[user:upload_new_picture]] @@ -116,7 +116,7 @@
- +
diff --git a/public/templates/accountsettings.tpl b/public/templates/accountsettings.tpl index f90b978973..5d858a148f 100644 --- a/public/templates/accountsettings.tpl +++ b/public/templates/accountsettings.tpl @@ -9,7 +9,7 @@
-

privacy

+

隐私设置

-
Drag and Drop Images Here
+
拖拽图片至此
- Upload images by dragging & dropping them + 通过拖拽上传图片
- - + +
diff --git a/public/templates/emails/reset.tpl b/public/templates/emails/reset.tpl index 1d00a3db06..ab92d3bf4d 100644 --- a/public/templates/emails/reset.tpl +++ b/public/templates/emails/reset.tpl @@ -1,20 +1,19 @@

- Hello, + 你好,

- We received a request to reset your password, possibly because you have forgotten it. If this is not the case, please ignore this email. + 我们收到你重新设置密码的请求,可能是你忘记了密码。如果不是本人提出的申请,请忽略这封邮件。

- To continue with the password reset, please click on the following link: -

+ 点击下面的链接进行密码重置:
{reset_link}

- Thanks!
+ 谢谢!
{site_title}

\ No newline at end of file diff --git a/public/templates/emails/reset_plaintext.tpl b/public/templates/emails/reset_plaintext.tpl index 2e6bfd3b3b..3094512139 100644 --- a/public/templates/emails/reset_plaintext.tpl +++ b/public/templates/emails/reset_plaintext.tpl @@ -1,10 +1,9 @@ -Hello, +你好, -We received a request to reset your password, possibly because you have forgotten it. If this is not the case, please ignore this email. - -To continue with the password reset, please click on the following link: + 我们收到你重新设置密码的请求,可能是你忘记了密码。如果不是本人提出的申请,请忽略这封邮件。 + + 点击下面的链接进行密码重置: {reset_link} - -Thanks! +谢谢! {site_title} \ No newline at end of file diff --git a/public/templates/emails/welcome.tpl b/public/templates/emails/welcome.tpl index 8a2944286c..bbf18c8bb9 100644 --- a/public/templates/emails/welcome.tpl +++ b/public/templates/emails/welcome.tpl @@ -1,13 +1,13 @@

- Hello {username}, + {username}你好,

- Thank you for registering with {site_title}! + 感谢你注册{site_title}!

- To fully activate your account, we need to verify that you own the email address you registered with. Please click on the following link: + 为了完全激活你的账号,我们需要验证你注册时所填写的邮箱。请点击下面的链接:

@@ -15,6 +15,6 @@

- Thanks!
+ 谢谢!
{site_title}

\ No newline at end of file diff --git a/public/templates/emails/welcome_plaintext.tpl b/public/templates/emails/welcome_plaintext.tpl index 24906a2900..717e812e07 100644 --- a/public/templates/emails/welcome_plaintext.tpl +++ b/public/templates/emails/welcome_plaintext.tpl @@ -8,4 +8,15 @@ To fully activate your account, we need to verify that you own the email address Thanks! +{site_title} + +{username}你好, + +感谢你注册{site_title}! + +为了完全激活你的账号,我们需要验证你注册时所填写的邮箱。请点击下面的链接: + + {confirm_link} + +谢谢! {site_title} \ No newline at end of file diff --git a/public/templates/favourites.tpl b/public/templates/favourites.tpl index c26e4952c1..0eca806d0e 100644 --- a/public/templates/favourites.tpl +++ b/public/templates/favourites.tpl @@ -25,8 +25,8 @@
- posted - in + 发布 + 于 {posts.categoryName} diff --git a/public/templates/noscript/category.tpl b/public/templates/noscript/category.tpl index d88fd17c95..7a13d7d335 100644 --- a/public/templates/noscript/category.tpl +++ b/public/templates/noscript/category.tpl @@ -1,5 +1,5 @@
    diff --git a/public/templates/noscript/header.tpl b/public/templates/noscript/header.tpl index 57762cc146..ddc0d2931c 100644 --- a/public/templates/noscript/header.tpl +++ b/public/templates/noscript/header.tpl @@ -1,8 +1,8 @@

    - Your browser does not seem to support javascript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode. + 你的浏览器不支持JavaScript!这可能会降低你的浏览效果,并且你将被限制在只读模式

    - Please download a browser that supports javascript, or enable it, if it disabled (i.e. NoScript). + 请下载支持JavaScript的浏览器。如果你关闭了JavaScript支持(NoScript模式),请重新开启。

    diff --git a/public/templates/outgoing.tpl b/public/templates/outgoing.tpl index 6c6d8d9e0f..cd2919f438 100644 --- a/public/templates/outgoing.tpl +++ b/public/templates/outgoing.tpl @@ -1,7 +1,7 @@
    diff --git a/public/templates/unread.tpl b/public/templates/unread.tpl index 1054e6d03b..d73e472700 100644 --- a/public/templates/unread.tpl +++ b/public/templates/unread.tpl @@ -49,13 +49,13 @@