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

This commit is contained in:
Fabio Bas
2014-06-22 23:41:15 +02:00
parent 2eebddea9a
commit 55c4c464e4
+1 -5
View File
@@ -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