diff --git a/pcsx2-qt/Translations.cpp b/pcsx2-qt/Translations.cpp index d8f1ca691e..ece339496d 100644 --- a/pcsx2-qt/Translations.cpp +++ b/pcsx2-qt/Translations.cpp @@ -118,8 +118,10 @@ void QtHost::InstallTranslator(QWidget* dialog_parent) s_current_collator = QCollator(s_current_locale); // Install the base qt translation first. -#ifdef __APPLE__ +#if defined(__APPLE__) const QString base_dir = QStringLiteral("%1/../Resources/translations").arg(qApp->applicationDirPath()); +#elif defined(PCSX2_APP_DATADIR) + const QString base_dir = QStringLiteral("%1/%2/translations").arg(qApp->applicationDirPath()).arg(PCSX2_APP_DATADIR); #else const QString base_dir = QStringLiteral("%1/translations").arg(qApp->applicationDirPath()); #endif diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt index be628e2be7..0a229bd80e 100644 --- a/pcsx2/CMakeLists.txt +++ b/pcsx2/CMakeLists.txt @@ -1289,6 +1289,7 @@ function(setup_main_executable target) if (PACKAGE_MODE) install(TARGETS pcsx2-qt DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) install(DIRECTORY ${CMAKE_SOURCE_DIR}/bin/resources DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/PCSX2) + install(DIRECTORY ${CMAKE_BINARY_DIR}/bin/translations DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/PCSX2) else() install(TARGETS pcsx2-qt DESTINATION ${CMAKE_SOURCE_DIR}/bin) endif()