From 2e4e130dca690bb9a8b708c5ef05585927741f8c Mon Sep 17 00:00:00 2001 From: YFdyh000 Date: Thu, 2 Apr 2015 06:43:09 +0800 Subject: [PATCH] Change to "Chinese Simplified" (zh-CN) only --- js/interface_localization.js | 6 +++--- options.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/interface_localization.js b/js/interface_localization.js index 28e0d4b..83626bc 100644 --- a/js/interface_localization.js +++ b/js/interface_localization.js @@ -4,7 +4,7 @@ // uses Polyglot.js ( https://github.com/airbnb/polyglot.js ) to translate interface // translators: add your language code here such as "es" for Spanish, "ru" for Russian -var knownLanguages = ["en","es","nl","it","fr","ru","de","zh","ja","pt-BR","tr","uk","cs"]; +var knownLanguages = ["en","es","nl","it","fr","ru","de","zh-CN","ja","pt-BR","tr","uk","cs"]; if( $.Options.getOption('locLang','auto') == 'auto'){ // detect language with JavaScript @@ -845,8 +845,8 @@ if(preferredLanguage == "uk"){ }; } -if(preferredLanguage == "zh"){ - polyglot.locale("zh"); +if(preferredLanguage == "zh-CN"){ + polyglot.locale("zh-CN"); wordset = { "Actions ▼": "操作 ▼", "Active DHT nodes:": "活动的DHT节点: ", diff --git a/options.html b/options.html index c308014..2d4d6a4 100644 --- a/options.html +++ b/options.html @@ -75,7 +75,7 @@