summaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/qt-6/modules/qtwebengine/locales-path.patch
blob: e2bf74980878c2676b43058b672e30b4add48fac (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/src/core/api/CMakeLists.txt
+++ b/src/core/api/CMakeLists.txt
@@ -190,7 +190,8 @@ if(QT_FEATURE_framework)
 
 else()
     install(FILES ${localeFiles}
-        DESTINATION ${INSTALL_TRANSLATIONSDIR}/qtwebengine_locales
+        # Nixpkgs: INSTALL_TRANSLATIONSDIR points to Qt base translations store path
+        DESTINATION ${INSTALL_DATADIR}/qtwebengine_locales
         CONFIGURATIONS ${config}
     )
     install(FILES ${resourceFiles}
diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp
index c03c9a3b2..430fdfab2 100644
--- a/src/core/web_engine_library_info.cpp
+++ b/src/core/web_engine_library_info.cpp
@@ -203,7 +203,8 @@ QString localesPath()
             candidatePaths << getResourcesPath(frameworkBundle()) % QDir::separator()
                             % QLatin1String("qtwebengine_locales");
 #endif
-            candidatePaths << QLibraryInfo::path(QLibraryInfo::TranslationsPath) % QDir::separator()
+            // Nixpkgs: match the changes made in CMakeLists.txt
+            candidatePaths << QLibraryInfo::path(QLibraryInfo::DataPath) % QDir::separator()
                             % QLatin1String("qtwebengine_locales");
             candidatePaths << fallbackDir();
         }
-- 
2.42.0