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

This commit is contained in:
Fabio Bas 2014-06-22 21:19:10 +02:00
parent 8305927fa2
commit 2b371fd96b

View file

@ -91,11 +91,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