diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-12-28 13:06:50 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-12-28 13:07:15 +0100 |
commit | 13984a10d01cb325b819d29165acad8939a0318f (patch) | |
tree | bc9bc62f7e7d42c69ab0e4d69236a3b8baf97e4b /gui | |
parent | 4df3023e479a3a3c0c8071b20c62f98cd69fce0b (diff) |
cmake: fix translations on Linux
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/main.cpp b/gui/main.cpp index 1f1445c3..661b3d19 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -11,6 +11,7 @@ #include "main-window.hpp" #include "options/options.hpp" using namespace options; +#include "opentrack-library-path.h" #include <QApplication> #include <QCommandLineParser> #include <QStyleFactory> @@ -144,7 +145,7 @@ main(int argc, char** argv) if (!QSettings(OPENTRACK_ORG).value("disable-translation", false).toBool()) { - (void) t.load(QLocale(), "", "", QCoreApplication::applicationDirPath() + "/i18n", ".qm"); + (void) t.load(QLocale(), "", "", QCoreApplication::applicationDirPath() + "/" + OPENTRACK_I18N_PATH, ".qm"); (void) QCoreApplication::installTranslator(&t); } |