summaryrefslogtreecommitdiffhomepage
path: root/gui/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main.cpp')
-rw-r--r--gui/main.cpp7
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
{