Author: Jordi Mallach Description: define DATA_ROOT_DIR and use it to look for locale files If DATA_DIR was modified at build time, locale files won't be picked up, as they are installed into the localedir, not the full datadir (which is correct). Instead, modify the lookup path. Forwarded: yes Index: dolphin-emu/CMakeLists.txt =================================================================== --- dolphin-emu.orig/CMakeLists.txt +++ dolphin-emu/CMakeLists.txt @@ -178,7 +178,9 @@ set_property(GLOBAL PROPERTY USE_FOLDERS # Set up paths set(datadir ${CMAKE_INSTALL_FULL_DATADIR}/dolphin-emu CACHE PATH "datadir") +set(datarootdir ${CMAKE_INSTALL_FULL_DATAROOTDIR} CACHE PATH "datarootdir") add_definitions(-DDATA_DIR="${datadir}/") +add_definitions(-DDATA_ROOT_DIR="${datarootdir}/") if(CMAKE_SYSROOT) # If we should use a sysroot, tell pkg-config to search for packages in there, not on the host Index: dolphin-emu/Source/Core/DolphinQt/Translation.cpp =================================================================== --- dolphin-emu.orig/Source/Core/DolphinQt/Translation.cpp +++ dolphin-emu/Source/Core/DolphinQt/Translation.cpp @@ -284,7 +284,7 @@ static bool TryInstallTranslator(const Q #elif defined LINUX_LOCAL_DEV fmt::format("{}/../Source/Core/DolphinQt/{}/dolphin-emu.mo", File::GetExeDirectory(), lang) #else - fmt::format("{}/../locale/{}/LC_MESSAGES/dolphin-emu.mo", DATA_DIR, lang) + fmt::format("{}/locale/{}/LC_MESSAGES/dolphin-emu.mo", DATA_ROOT_DIR, lang) #endif ;