diff options
author | Sheogorath | 2017-10-23 11:53:31 +0200 |
---|---|---|
committer | GitHub | 2017-10-23 11:53:31 +0200 |
commit | c794412714cdd7b0f6ebfadaf108f72098004d64 (patch) | |
tree | 2d3cc7a8dcaa0551d3b7de872250f39a1206d498 /public | |
parent | a23048254ddfb36a2c204c96db042fd0a6012b48 (diff) | |
parent | 362a7eaf65d902a93890f3510a58a092de3ac467 (diff) |
Merge pull request #591 from Rwing/master
support Simplified Chinese and rename original zh to Traditional Chinese
Diffstat (limited to '')
-rw-r--r-- | public/js/locale.js | 3 | ||||
-rw-r--r-- | public/views/index/body.ejs | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/public/js/locale.js b/public/js/locale.js index 2a2c1814..71c0f99f 100644 --- a/public/js/locale.js +++ b/public/js/locale.js @@ -11,6 +11,9 @@ $('.ui-locale option').each(function () { }) if (Cookies.get('locale')) { lang = Cookies.get('locale') + if (lang === 'zh') { + lang = 'zh-TW' + } } else if (supportLangs.indexOf(userLang) !== -1) { lang = supportLangs[supportLangs.indexOf(userLang)] } else if (supportLangs.indexOf(userLangCode) !== -1) { diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index 911742ac..b9c5c426 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -130,7 +130,8 @@ </p> <select class="ui-locale"> <option value="en">English</option> - <option value="zh">中文</option> + <option value="zh-CN">简体中文</option> + <option value="zh-TW">繁體中文</option> <option value="fr">Français</option> <option value="de">Deutsch</option> <option value="ja">日本語</option> |