Pier Angelo Vendrame pushed to branch tor-browser-102.9.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits:
-
9b87c73a
by Pier Angelo Vendrame at 2023-03-29T16:56:32+02:00
-
071ef206
by Pier Angelo Vendrame at 2023-03-29T16:56:49+02:00
-
35133d69
by Pier Angelo Vendrame at 2023-03-29T16:56:49+02:00
-
663cd8e2
by Pier Angelo Vendrame at 2023-03-29T16:56:50+02:00
3 changed files:
- browser/locales/en-US/browser/languageNotification.ftl
- toolkit/mozapps/extensions/content/aboutaddons.html
- toolkit/mozapps/extensions/content/aboutaddons.js
Changes:
... | ... | @@ -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 |
... | ... | @@ -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"
|
... | ... | @@ -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 => {
|