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()) {
|
if (translationPath.isEmpty()) {
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
QDir translationsDir = app.applicationDirPath();
|
translationPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||||
translationsDir.cd("..");
|
|
||||||
translationsDir.cd("Resources");
|
|
||||||
translationsDir.cd("translations");
|
|
||||||
translationPath = translationsDir.absolutePath();
|
|
||||||
#elif Q_OS_WIN
|
#elif Q_OS_WIN
|
||||||
translationPath = app.applicationDirPath() + "/translations";
|
translationPath = app.applicationDirPath() + "/translations";
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue