[tbb-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.9.1esr-13.0-1] fixup! Bug 41369: Improve Firefox language settings for multi-lingual packages

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Mon Apr 8 15:42:38 UTC 2024



Pier Angelo Vendrame pushed to branch mullvad-browser-115.9.1esr-13.0-1 at The Tor Project / Applications / Mullvad Browser


Commits:
e3dbf1b5 by Pier Angelo Vendrame at 2024-04-08T17:41:35+02:00
fixup! Bug 41369: Improve Firefox language settings for multi-lingual packages

Bug 42335: Do not localize the order of languages

- - - - -


1 changed file:

- browser/components/preferences/main.js


Changes:

=====================================
browser/components/preferences/main.js
=====================================
@@ -1463,7 +1463,9 @@ var gMainPane = {
         name,
       };
     });
-    locales.sort((a, b) => a.code.localeCompare(b.code));
+    // tor-browser#42335: Sort language codes independently from the locale,
+    // so do not use localeCompare.
+    locales.sort((a, b) => a.code > b.code);
 
     let fragment = document.createDocumentFragment();
     for (let { code, name } of locales) {



View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/e3dbf1b5469e56a5e08521275205e8024c432eaa

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/e3dbf1b5469e56a5e08521275205e8024c432eaa
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240408/8cac8f91/attachment.htm>


More information about the tbb-commits mailing list