From 13984a10d01cb325b819d29165acad8939a0318f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 28 Dec 2016 13:06:50 +0100 Subject: cmake: fix translations on Linux --- gui/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui') 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 #include #include @@ -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); } -- cgit v1.2.3