diff --git a/bin/locale/nl_NL.qm b/bin/locale/nl_NL.qm index 484932430..fc3098648 100644 Binary files a/bin/locale/nl_NL.qm and b/bin/locale/nl_NL.qm differ diff --git a/bin/locale/pl_PL.qm b/bin/locale/pl_PL.qm index b13e5c93a..8634ee592 100644 Binary files a/bin/locale/pl_PL.qm and b/bin/locale/pl_PL.qm differ diff --git a/bin/locale/qt_zh_CN.qm b/bin/locale/qt_zh_CN.qm new file mode 100644 index 000000000..623b8e33a Binary files /dev/null and b/bin/locale/qt_zh_CN.qm differ diff --git a/src/app/mainapplication.cpp b/src/app/mainapplication.cpp index a382bef28..266fe7da5 100644 --- a/src/app/mainapplication.cpp +++ b/src/app/mainapplication.cpp @@ -484,6 +484,7 @@ void MainApplication::translateApp() settings.beginGroup("Language"); QString file = settings.value("language", locale.name() + ".qm").toString(); QString shortLoc = file.left(2); + QString longLoc = file.left(5); if (file == "" || !QFile::exists(TRANSLATIONSDIR + file)) { return; @@ -493,7 +494,10 @@ void MainApplication::translateApp() app->load(TRANSLATIONSDIR + file); QTranslator* sys = new QTranslator(); - if (QFile::exists(TRANSLATIONSDIR + "qt_" + shortLoc + ".qm")) { + if (QFile::exists(TRANSLATIONSDIR + "qt_" + longLoc + ".qm")) { + sys->load(TRANSLATIONSDIR + "qt_" + longLoc + ".qm"); + } + else if (QFile::exists(TRANSLATIONSDIR + "qt_" + shortLoc + ".qm")) { sys->load(TRANSLATIONSDIR + "qt_" + shortLoc + ".qm"); } diff --git a/translations/nl_NL.ts b/translations/nl_NL.ts index f3fa50718..459b9caac 100644 --- a/translations/nl_NL.ts +++ b/translations/nl_NL.ts @@ -3829,7 +3829,7 @@ Na het toevoegen of verwijderen van paden, is het noodzakelijk om de browser te This is your <b>%1</b> visit of this site. - + Dit is uw <b>%1</b> bezoek aan deze site. @@ -4330,42 +4330,42 @@ Na het toevoegen of verwijderen van paden, is het noodzakelijk om de browser te This frame - + Dit frame Show &only this frame - + Toon &alleen dit frame Show this frame in new &tab - + Toon dit frame in nieuw &tabblad Print frame - + Druk frame af Zoom &in - + Zoom &in &Zoom out - + &Zoom uit Reset - Herstart + Zet terug Show so&urce of frame - + Toon &bron van frame diff --git a/translations/pl_PL.ts b/translations/pl_PL.ts index 232c9c23a..a8798e7d0 100644 --- a/translations/pl_PL.ts +++ b/translations/pl_PL.ts @@ -2050,7 +2050,7 @@ Tabs Karty -