[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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

Commits:

  • 1f9f11ca
    by Henry Wilkes at 2024-05-27T10:15:09+02:00
    fixup! Bug 41369: Improve Firefox language settings for multi-lingual packages
    
    Bug 42573: Avoid async l10n.formatValue.
    

1 changed file:

Changes:

  • browser/base/content/languageNotification.js
    ... ... @@ -2,7 +2,7 @@
    2 2
     
    
    3 3
     // Show a prompt to suggest to the user that they can change the UI language.
    
    4 4
     // Show it only the first time, and then do not show it anymore
    
    5
    -window.addEventListener("load", async () => {
    
    5
    +window.addEventListener("load", () => {
    
    6 6
       const PREF_NAME = "intl.language_notification.shown";
    
    7 7
     
    
    8 8
       if (Services.prefs.getBoolPref(PREF_NAME, false)) {
    
    ... ... @@ -35,12 +35,12 @@ window.addEventListener("load", async () => {
    35 35
         Services.locale.requestedLocales,
    
    36 36
         Services.locale.availableLocales
    
    37 37
       ).length;
    
    38
    -  const label = await document.l10n.formatValue(
    
    39
    -    matchingSystem
    
    38
    +  const label = {
    
    39
    +    "l10n-id": matchingSystem
    
    40 40
           ? "language-notification-label-system"
    
    41 41
           : "language-notification-label",
    
    42
    -    { language }
    
    43
    -  );
    
    42
    +    "l10n-args": { language },
    
    43
    +  };
    
    44 44
     
    
    45 45
       const buttons = [
    
    46 46
         {
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits