diff options
-rw-r--r-- | config.h.in | 1 | ||||
-rw-r--r-- | src/mirall/application.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config.h.in b/config.h.in index 3ad75b205..ffde7b2c4 100644 --- a/config.h.in +++ b/config.h.in @@ -11,6 +11,7 @@ #cmakedefine APPLICATION_NAME "@APPLICATION_NAME@" #cmakedefine APPLICATION_SHORTNAME "@APPLICATION_SHORTNAME@" +#cmakedefine APPLICATION_EXECUTABLE "@APPLICATION_EXECUTABLE@" #cmakedefine SYSCONFDIR "@SYSCONFDIR@" #cmakedefine DATADIR "@DATADIR@" diff --git a/src/mirall/application.cpp b/src/mirall/application.cpp index dda81efb9..379df723e 100644 --- a/src/mirall/application.cpp +++ b/src/mirall/application.cpp @@ -83,7 +83,7 @@ static const char optionsC[] = QString applicationTrPath() { #ifdef Q_OS_LINUX - return QString::fromLatin1(DATADIR"/i18n/"); + return QString::fromLatin1(DATADIR"/"APPLICATION_EXECUTABLE"/i18n/"); #endif #ifdef Q_OS_MAC return QApplication::applicationDirPath()+QLatin1String("/../Resources/Translations"); // path defaults to app dir. |