Commit 55c4c464 authored by Fabio Bas's avatar Fabio Bas
Browse files

OSX: get translation path from qt.conf instead of hardcoding it

parent 2eebddea
......@@ -99,11 +99,7 @@ int main(int argc, char *argv[])
if (translationPath.isEmpty()) {
#ifdef Q_OS_MAC
QDir translationsDir = app.applicationDirPath();
translationsDir.cd("..");
translationsDir.cd("Resources");
translationsDir.cd("translations");
translationPath = translationsDir.absolutePath();
translationPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
#elif Q_OS_WIN
translationPath = app.applicationDirPath() + "/translations";
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment