aboutsummaryrefslogtreecommitdiff
path: root/TranslationManager.cpp
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-07-27 22:32:33 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-07-27 22:32:33 +0300
commit9cd73dfbbed6e200852ca9e1c1494ea3e5eae6c3 (patch)
treefa372d5e1e06afdea7bd7112065df9c69d294910 /TranslationManager.cpp
parent1b35a1ae4b01c05224fdc3b1acf70b7afdd6328c (diff)
downloadmonzero-gui-9cd73dfbbed6e200852ca9e1c1494ea3e5eae6c3.tar.gz
monzero-gui-9cd73dfbbed6e200852ca9e1c1494ea3e5eae6c3.tar.xz
monzero-gui-9cd73dfbbed6e200852ca9e1c1494ea3e5eae6c3.zip
Translations are separate qm files
Diffstat (limited to 'TranslationManager.cpp')
-rw-r--r--TranslationManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/TranslationManager.cpp b/TranslationManager.cpp
index afd04ef6..fa39d35a 100644
--- a/TranslationManager.cpp
+++ b/TranslationManager.cpp
@@ -26,7 +26,11 @@ bool TranslationManager::setLanguage(const QString &language)
}
// translations are compiled into app binary
- QString dir = ":/translations";
+#ifdef Q_OS_MACX
+ QString dir = qApp->applicationDirPath() + "/../Resources/translations";
+#else
+ QString dir = qApp->applicationDirPath() + "/translations";
+#endif
QString filename = "monero-core_" + language;