From a6c496da8c7ab44d2b0849d9cd3b036208a8db1c Mon Sep 17 00:00:00 2001 From: PF4Public Date: Mon, 28 Oct 2024 21:35:57 +0100 Subject: [PATCH] Enable extra locales not normally shipped with Chromium on desktop (#3072) --- .../enable-extra-locales.patch | 112 ++++++++++++++++++ patches/series | 1 + 2 files changed, 113 insertions(+) create mode 100644 patches/extra/ungoogled-chromium/enable-extra-locales.patch diff --git a/patches/extra/ungoogled-chromium/enable-extra-locales.patch b/patches/extra/ungoogled-chromium/enable-extra-locales.patch new file mode 100644 index 000000000..5f1b5a958 --- /dev/null +++ b/patches/extra/ungoogled-chromium/enable-extra-locales.patch @@ -0,0 +1,112 @@ +# Enable extra locales not normally shipped with Chromium on desktop + +--- a/build/config/locales.gni ++++ b/build/config/locales.gni +@@ -166,12 +166,6 @@ + + # Setup |platform_pak_locales| for each platform. + platform_pak_locales = all_chrome_locales +-if (is_android) { +- platform_pak_locales -= _non_android_locales +- extended_locales -= _non_android_locales +-} else { +- platform_pak_locales -= extended_locales +-} + + # The base list for all platforms except Android excludes the extended locales. + # Add or subtract platform specific locales below. +--- a/chrome/app/resources/locale_settings_linux.grd ++++ b/chrome/app/resources/locale_settings_linux.grd +@@ -4,11 +4,11 @@ + + + +- + + + + ++ + + + +@@ -31,7 +31,6 @@ + + + +- + + + +--- a/chrome/app/resources/locale_settings_mac.grd ++++ b/chrome/app/resources/locale_settings_mac.grd +@@ -4,6 +4,33 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +--- a/chrome/app/resources/locale_settings_win.grd ++++ b/chrome/app/resources/locale_settings_win.grd +@@ -4,6 +4,33 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/patches/series b/patches/series index 7c02f069d..821fe3da7 100644 --- a/patches/series +++ b/patches/series @@ -105,3 +105,4 @@ extra/ungoogled-chromium/disable-capture-all-screens.patch extra/ungoogled-chromium/add-flag-to-reduce-system-info.patch extra/ungoogled-chromium/add-flag-to-remove-client-hints.patch extra/ungoogled-chromium/disable-downloads-page-referrer-url.patch +extra/ungoogled-chromium/enable-extra-locales.patch