Merge pull request #316 from shengbinmeng/patch-1

Better configure options for Chinese language
This commit is contained in:
Jelmer Vernooij 2017-07-21 14:21:48 +00:00 committed by GitHub
commit b8adfe3f18

View File

@ -2,8 +2,8 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
"app/i18n/de", "app/i18n/en", "app/i18n/fa", "app/i18n/fi",
"app/i18n/fr", "app/i18n/hr", "app/i18n/ru", "app/i18n/it",
"app/i18n/eo", "app/i18n/sv", "app/i18n/nl", "app/i18n/el_GR",
"app/i18n/es", "app/i18n/vi", "app/i18n/zh_CN"],
function(config, bg, cs, da, de, en, fa, fi, fr, hr, ru, it, eo, sv, nl, el, es, vi, zh) {
"app/i18n/es", "app/i18n/vi", "app/i18n/zh_CN", "app/i18n/zh_CN", "app/i18n/zh_TW"],
function(config, bg, cs, da, de, en, fa, fi, fr, hr, ru, it, eo, sv, nl, el, es, vi, zh, zh_CN, zh_TW) {
"use strict";
@ -25,6 +25,8 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
case "nl":
case "vi":
case "zh":
case "zh_CN":
case "zh_TW":
return function(msgs, n) {
return msgs[n === 1 ? 0 : 1];
};
@ -73,7 +75,9 @@ define(["app/config", "app/i18n/bg", "app/i18n/cs", "app/i18n/da",
sv: sv,
nl: nl,
vi: vi,
zh: zh
zh: zh_CN,
zh_CN: zh_CN,
zh_TW: zh_TW
};
var plural = pluralforms(lang);