Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Tor Browser
Commits
0b905b59
Commit
0b905b59
authored
May 8, 2024
by
henry
Committed by
Pier Angelo Vendrame
Jun 11, 2024
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Bug 41369: Improve Firefox language settings for multi-lingual packages
Bug 42573: Avoid async l10n.formatValue.
parent
26ff6da2
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1043
Bug 42616: Rebased alpha onto Firefox 128.0b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
browser/base/content/languageNotification.js
+5
-5
5 additions, 5 deletions
browser/base/content/languageNotification.js
with
5 additions
and
5 deletions
browser/base/content/languageNotification.js
+
5
−
5
View file @
0b905b59
...
...
@@ -2,7 +2,7 @@
// Show a prompt to suggest to the user that they can change the UI language.
// Show it only the first time, and then do not show it anymore
window
.
addEventListener
(
"
load
"
,
async
()
=>
{
window
.
addEventListener
(
"
load
"
,
()
=>
{
const
PREF_NAME
=
"
intl.language_notification.shown
"
;
if
(
Services
.
prefs
.
getBoolPref
(
PREF_NAME
,
false
))
{
...
...
@@ -35,12 +35,12 @@ window.addEventListener("load", async () => {
Services
.
locale
.
requestedLocales
,
Services
.
locale
.
availableLocales
).
length
;
const
label
=
await
document
.
l10n
.
formatValue
(
matchingSystem
const
label
=
{
"
l10n-id
"
:
matchingSystem
?
"
language-notification-label-system
"
:
"
language-notification-label
"
,
{
language
}
)
;
"
l10n-args
"
:
{
language
}
,
}
;
const
buttons
=
[
{
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment