diff --git a/src/lib/common/I18N.cpp b/src/lib/common/I18N.cpp index 051059ced..f90512c61 100644 --- a/src/lib/common/I18N.cpp +++ b/src/lib/common/I18N.cpp @@ -27,6 +27,7 @@ I18N::I18N(QObject *parent) : QObject{parent} const QList appTrDirs{ {QStringLiteral("%1/%2").arg(QCoreApplication::applicationDirPath(), QStringLiteral("translations"))}, {QStringLiteral("%1/../translations").arg(QCoreApplication::applicationDirPath())}, + {QStringLiteral("%1/../Resources/translations").arg(QCoreApplication::applicationDirPath())}, {QStringLiteral("%1/../share/%2/translations").arg(QCoreApplication::applicationDirPath(), kAppId)}, {QStringLiteral("%1/.local/share/%2/translations").arg(QDir::homePath(), kAppId)}, {QStringLiteral("/usr/local/share/%1/translations").arg(kAppId)}, @@ -47,6 +48,7 @@ I18N::I18N(QObject *parent) : QObject{parent} const QList qtTrDirs{ {QStringLiteral("%1/%2").arg(QCoreApplication::applicationDirPath(), QStringLiteral("translations"))}, + {QStringLiteral("%1/../Resources/translations").arg(QCoreApplication::applicationDirPath())}, {QStringLiteral("%1/../qt-depends/translations").arg(QCoreApplication::applicationDirPath())}, {QStringLiteral("%1/../share/qt/translations").arg(QCoreApplication::applicationDirPath())}, {QStringLiteral("%1/.local/share/%2/translations").arg(QDir::homePath(), QStringLiteral("qt"))}, diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 14fc316df..22ed51c22 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -32,7 +32,7 @@ if (NOT BUILD_OSX_BUNDLE) install(FILES ${TRS} DESTINATION ${CMAKE_INSTALL_I18N_DIR}) else() #when making the bundle copy our translation into the bundle - set(BUNDLE_TR_DIR $/MacOS/translations) + set(BUNDLE_TR_DIR $/Resources/translations) # find the qt translation files needed to copy into the bundle get_target_property(lupdate_executable Qt6::lupdate IMPORTED_LOCATION)