From 6e4d9ba44621a489ee9ba5b1af2a27020df1b86e Mon Sep 17 00:00:00 2001 From: wendal Date: Tue, 7 Apr 2015 10:47:04 +0800 Subject: [PATCH] add: zh_CN Translation --- isso/js/app/i18n.js | 4 +++- isso/js/app/i18n/zh_CN.js | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 isso/js/app/i18n/zh_CN.js diff --git a/isso/js/app/i18n.js b/isso/js/app/i18n.js index 96c1cdd..010d966 100644 --- a/isso/js/app/i18n.js +++ b/isso/js/app/i18n.js @@ -1,4 +1,4 @@ -define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru", "app/i18n/it", "app/i18n/eo", "app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR", "app/i18n/es"], function(config, de, en, fr, ru, it, eo, sv, nl, el, es) { +define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru", "app/i18n/it", "app/i18n/eo", "app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR", "app/i18n/es", "app/i18n/zh_CN"], function(config, de, en, fr, ru, it, eo, sv, nl, el, es, zh) { "use strict"; @@ -12,6 +12,7 @@ define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru" case "it": case "sv": case "nl": + case "zh": return function(msgs, n) { return msgs[n === 1 ? 0 : 1]; }; @@ -52,6 +53,7 @@ define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru" ru: ru, sv: sv, nl: nl, + zh: zh, es: es }; diff --git a/isso/js/app/i18n/zh_CN.js b/isso/js/app/i18n/zh_CN.js new file mode 100644 index 0000000..70ae081 --- /dev/null +++ b/isso/js/app/i18n/zh_CN.js @@ -0,0 +1,30 @@ +define({ + "postbox-text": "在此输入评论(最少3个字符)", + "postbox-author": "名字(可选)", + "postbox-email": "E-mail(可选)", + "postbox-website": "网站(可选)", + "postbox-submit": "提交", + + "num-comments": "1条评论\n{{ n }}条评论", + "no-comments": "还没有评论", + + "comment-reply": "回复", + "comment-edit": "编辑", + "comment-save": "保存", + "comment-delete": "删除", + "comment-confirm": "确认", + "comment-close": "关闭", + "comment-cancel": "取消", + "comment-deleted": "评论已删除.", + "comment-queued": "评论待审核.", + "comment-anonymous": "匿名", + "comment-hidden": "{{ n }} 条评论已隐藏", + + "date-now": "刚刚", + "date-minute": "1分钟前\n{{ n }}分钟前", + "date-hour": "1小时前\n{{ n }}小时前", + "date-day": "昨天\n{{ n }}天前", + "date-week": "上周\n{{ n }}周前", + "date-month": "上个月\n{{ n }}个月前", + "date-year": "去年\n{{ n }}年前" +});