Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Molkentin <danimo@owncloud.com>2013-09-05 13:06:40 +0400
committerDaniel Molkentin <danimo@owncloud.com>2013-09-05 13:06:40 +0400
commit05178f0fbfc4a6872d98473af6268daca200001e (patch)
treeda0428933aa13a82596da398650becd457a4dd47
parent9ce09713b62106145148a44c0d5e766e0fcd0661 (diff)
Fix locating translations on linux
-rw-r--r--config.h.in1
-rw-r--r--src/mirall/application.cpp2
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.