[tbb-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.7.0esr-13.5-1] Bug 42376: Pass the locale list when constructing l10n in datetimebox

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Tue Feb 13 14:16:59 UTC 2024



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


Commits:
69328375 by Pier Angelo Vendrame at 2024-02-13T15:16:43+01:00
Bug 42376: Pass the locale list when constructing l10n in datetimebox

The datetime input is inconsistent with other inputs when using spoof
English: its placeholder is not translated, unlike the default values
and texts of all the other inputs.

- - - - -


1 changed file:

- toolkit/content/widgets/datetimebox.js


Changes:

=====================================
toolkit/content/widgets/datetimebox.js
=====================================
@@ -22,7 +22,9 @@ this.DateTimeBoxWidget = class {
     // createEditFieldAndAppend() call.
     this.l10n = new this.window.DOMLocalization(
       ["toolkit/global/datetimebox.ftl"],
-      /* aSync = */ true
+      /* aSync = */ true,
+      undefined,
+      this.window.getWebExposedLocales()
     );
   }
 



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

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/69328375f847f4e3998f5b855b80bfb9973bd82d
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/20240213/0c733b3d/attachment.htm>


More information about the tbb-commits mailing list