diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-07-27 22:32:33 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-07-27 22:32:33 +0300 |
| commit | 9cd73dfbbed6e200852ca9e1c1494ea3e5eae6c3 (patch) | |
| tree | fa372d5e1e06afdea7bd7112065df9c69d294910 /TranslationManager.cpp | |
| parent | 1b35a1ae4b01c05224fdc3b1acf70b7afdd6328c (diff) | |
| download | monzero-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.cpp | 6 |
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; |
