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

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Wed Dec 13 11:29:35 UTC 2023



Pier Angelo Vendrame pushed to branch tor-browser-115.5.0esr-13.5-1 at The Tor Project / Applications / Tor Browser


Commits:
45ac92cc by Pier Angelo Vendrame at 2023-12-13T12:29:04+01: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
=====================================
@@ -1456,7 +1456,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/tor-browser/-/commit/45ac92cc80c438e91786685a8c3cf2e0e3f5c3e2

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/45ac92cc80c438e91786685a8c3cf2e0e3f5c3e2
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/20231213/595d1d65/attachment.htm>


More information about the tbb-commits mailing list