diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-18 18:43:35 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-18 18:43:35 +0100 |
commit | 7cb57c1c72bd4dfd56367a7f1130de0dbd5415d5 (patch) | |
tree | d48a7d02990b8ebf80bf74f42cde5d8f59421b48 /gui/main.cpp | |
parent | 3e0038ee3e35fc161624a3c3f94daf3d4fd824b9 (diff) |
gui: allow for disabling translation
Diffstat (limited to 'gui/main.cpp')
-rw-r--r-- | gui/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/main.cpp b/gui/main.cpp index de904f94..8bc09537 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -143,8 +143,11 @@ main(int argc, char** argv) // QLocale::setDefault(QLocale("pl_PL")); // force i18n for testing - (void) t.load(QLocale(), "", "", QCoreApplication::applicationDirPath() + "/i18n", ".qm"); - (void) QCoreApplication::installTranslator(&t); + if (!QSettings(OPENTRACK_ORG).value("disable-translation", false).toBool()) + { + (void) t.load(QLocale(), "", "", QCoreApplication::applicationDirPath() + "/i18n", ".qm"); + (void) QCoreApplication::installTranslator(&t); + } do { |