OSX: get translation path from qt.conf instead of hardcoding it
This commit is contained in:
parent
2eebddea9a
commit
55c4c464e4
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue