Partially revert fec6c8af2 and split the Chinese locales into 3.

Chinese Simplified, Chinese Traditional(Taiwan), Chinese Traditional(Hong Kong).
Closes #3262.
This commit is contained in:
sledgehammer999
2015-07-04 01:34:06 +03:00
parent 41e052498b
commit 74bba9ecfe
9 changed files with 6989 additions and 605 deletions

View File

@@ -255,18 +255,7 @@ void Application::initializeTranslation()
QString locale = pref->getLocale();
if (locale.isEmpty()) {
QLocale systemLocale = QLocale::system();
// Check if Chinese and act according to script instead of country
if (systemLocale.language() == QLocale::Chinese) {
if (systemLocale.script() == QLocale::SimplifiedHanScript)
locale = "zh_Hans";
else
locale = "zh_Hant";
}
else {
locale = systemLocale.name();
}
locale = QLocale::system().name();
pref->setLocale(locale);
}