Partially revert fb7ba92f6 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-06-28 18:44:31 +03:00
parent 6dd3795b7a
commit 61705fdd42
9 changed files with 6537 additions and 38 deletions

View file

@ -339,18 +339,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);
}