Commits:
-
2ffae0ac
by Pier Angelo Vendrame at 2023-03-29T16:58:54+02:00
fixup! Bug 41695: Warn on window maximization without letterboxing in RFPHelper module
Bug 41698
-
59f56195
by Pier Angelo Vendrame at 2023-03-29T16:58:55+02:00
fixup! Bug 41369: Improve Firefox language settings for multi-lingual packages
Bug 41698: Reword the recommendation badges in about:addons
We need to add a new commit for all base browser strings
-
6f98fb4c
by Pier Angelo Vendrame at 2023-03-29T16:58:55+02:00
Base Browser strings
This commit adds all the strings needed by following Base Browser
patches.
-
a825810a
by Pier Angelo Vendrame at 2023-03-29T16:58:55+02:00
Bug 41698: Reword the recommendation badges in about:addons
Firefox strings use { -brand-product-name }.
As a result, it seems that the fork is recommending extensions, whereas
AMO curators are doing that.
So, we replace the strings with custom ones that clarify that Mozilla is
recommending them.
We assign the strings with JS because our translation backend does not
support Fluent attributes, yet, but once it does, we should switch to
them, instead.
Upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1825033
3 changed files:
Changes:
browser/locales/en-US/browser/languageNotification.ftl
... |
... |
@@ -2,6 +2,13 @@ |
2
|
2
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
3
|
3
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
4
|
4
|
|
|
5
|
+# These strings are used by the Base Browser part of the changeset, not only for
|
|
6
|
+# the language notification.
|
|
7
|
+# TODO: Rename this file to make this clearer
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+## Language notification
|
|
11
|
+
|
5
|
12
|
# $language is the language Tor Browser is displayed in (already translated)
|
6
|
13
|
language-notification-label-system = { -brand-short-name } has set your display language to { $language } based on your system’s language.
|
7
|
14
|
# This is shown when the system language is not supported, so we fall back to another language instead.
|
... |
... |
@@ -9,6 +16,15 @@ language-notification-label-system = { -brand-short-name } has set your display |
9
|
16
|
language-notification-label = { -brand-short-name } has set your display language to { $language }.
|
10
|
17
|
language-notification-button = Change Language…
|
11
|
18
|
|
|
19
|
+
|
|
20
|
+## Fullscreen/maximization notification shown when letterboxing is disabled
|
|
21
|
+
|
12
|
22
|
basebrowser-rfp-maximize-warning-message = Maximizing the browser window can allow websites to determine your monitor size, which can be used to track you. We recommend that you leave browser windows in their original default size.
|
13
|
23
|
basebrowser-rfp-restore-window-size-button-label = Restore
|
14
|
24
|
basebrowser-rfp-restore-window-size-button-ak = R
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+## Tooltip for the about:addons recommended badge
|
|
28
|
+
|
|
29
|
+basebrowser-addon-badge-recommended = Mozilla only recommends extensions that meet their standards for security and performance
|
|
30
|
+basebrowser-addon-badge-verified = Mozilla has reviewed this extension to meet their standards for security and performance |
toolkit/mozapps/extensions/content/aboutaddons.html
... |
... |
@@ -24,6 +24,8 @@ |
24
|
24
|
<link rel="localization" href="">"toolkit/about/aboutAddons.ftl">
|
25
|
25
|
<link rel="localization" href="">"toolkit/about/abuseReports.ftl">
|
26
|
26
|
|
|
27
|
+ <link rel="localization" href="">"browser/languageNotification.ftl"/>
|
|
28
|
+
|
27
|
29
|
<!-- Defer scripts so all the templates are loaded by the time they run. -->
|
28
|
30
|
<script defer src="">"chrome://mozapps/content/extensions/aboutaddonsCommon.js"></script>
|
29
|
31
|
<script defer src="">"chrome://mozapps/content/extensions/abuse-reports.js"></script>
|
... |
... |
@@ -153,7 +155,6 @@ |
153
|
155
|
is="support-link"
|
154
|
156
|
support-page="add-on-badges"
|
155
|
157
|
utmcontent="promoted-addon-badge"
|
156
|
|
- data-l10n-id="addon-badge-recommended2"
|
157
|
158
|
hidden>
|
158
|
159
|
</a>
|
159
|
160
|
<a class="addon-badge addon-badge-line"
|
... |
... |
@@ -167,7 +168,6 @@ |
167
|
168
|
is="support-link"
|
168
|
169
|
support-page="add-on-badges"
|
169
|
170
|
utmcontent="promoted-addon-badge"
|
170
|
|
- data-l10n-id="addon-badge-verified2"
|
171
|
171
|
hidden>
|
172
|
172
|
</a>
|
173
|
173
|
<a class="addon-badge addon-badge-private-browsing-allowed"
|
toolkit/mozapps/extensions/content/aboutaddons.js
... |
... |
@@ -4885,6 +4885,29 @@ async function initialize() { |
4885
|
4885
|
);
|
4886
|
4886
|
}
|
4887
|
4887
|
}
|
|
4888
|
+
|
|
4889
|
+ // At the moment we need to do this, because Weblate still does not support
|
|
4890
|
+ // attributes in Fluent.
|
|
4891
|
+ const [recommended, verified] = await document.l10n.formatValues([
|
|
4892
|
+ { id: "basebrowser-addon-badge-recommended" },
|
|
4893
|
+ { id: "basebrowser-addon-badge-verified" },
|
|
4894
|
+ ]);
|
|
4895
|
+
|
|
4896
|
+ importTemplate("card");
|
|
4897
|
+ _templates.card.content
|
|
4898
|
+ .querySelector(".addon-badge-recommended")
|
|
4899
|
+ .setAttribute("title", recommended);
|
|
4900
|
+ _templates.card.content
|
|
4901
|
+ .querySelector(".addon-badge-verified")
|
|
4902
|
+ .setAttribute("title", verified);
|
|
4903
|
+
|
|
4904
|
+ // We also update any template copy that has already been created.
|
|
4905
|
+ for (const badge of document.querySelectorAll(".addon-badge-recommended")) {
|
|
4906
|
+ badge.setAttribute("title", recommended);
|
|
4907
|
+ }
|
|
4908
|
+ for (const badge of document.querySelectorAll(".addon-badge-verified")) {
|
|
4909
|
+ badge.setAttribute("title", verified);
|
|
4910
|
+ }
|
4888
|
4911
|
}
|
4889
|
4912
|
|
4890
|
4913
|
window.promiseInitialized = new Promise(resolve => {
|
|