[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser] 02/05: fixup! Add TorStrings module for localization
This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch tor-browser-91.11.0esr-12.0-1
in repository tor-browser.
commit 6b7f4e9220c93d8546072ea14b912ccf1c38678b
Author: Pier Angelo Vendrame <pierov@xxxxxxxxxxxxxx>
AuthorDate: Mon Jul 11 15:49:12 2022 +0200
fixup! Add TorStrings module for localization
Bug 40925: Removed security level strings
---
browser/modules/TorStrings.jsm | 89 ------------------------------------------
1 file changed, 89 deletions(-)
diff --git a/browser/modules/TorStrings.jsm b/browser/modules/TorStrings.jsm
index 84e959a1dcb1f..4110e5af74f58 100644
--- a/browser/modules/TorStrings.jsm
+++ b/browser/modules/TorStrings.jsm
@@ -149,95 +149,6 @@ var TorStrings = {
return retval;
})() /* CryptoSafetyPrompt Strings */,
- /*
- Tor Browser Security Level Strings
- */
- securityLevel: (function() {
- let tsb = new TorDTDStringBundle(
- ["chrome://torbutton/locale/torbutton.dtd"],
- "torbutton.prefs.sec_"
- );
- let getString = function(key, fallback) {
- return tsb.getString(key, fallback);
- };
-
- // read localized strings from torbutton; but use hard-coded en-US strings as fallbacks in case of error
- let retval = {
- securityLevel: getString("caption", "Security Level"),
- customWarning: getString("custom_warning", "Custom"),
- overview: getString(
- "overview",
- "Disable certain web features that can be used to attack your security and anonymity."
- ),
- standard: {
- level: getString("standard_label", "Standard"),
- tooltip: getString("standard_tooltip", "Security Level : Standard"),
- summary: getString(
- "standard_description",
- "All Tor Browser and website features are enabled."
- ),
- },
- safer: {
- level: getString("safer_label", "Safer"),
- tooltip: getString("safer_tooltip", "Security Level : Safer"),
- summary: getString(
- "safer_description",
- "Disables website features that are often dangerous, causing some sites to lose functionality."
- ),
- description1: getString(
- "js_on_https_sites_only",
- "JavaScript is disabled on non-HTTPS sites."
- ),
- description2: getString(
- "limit_typography",
- "Some fonts and math symbols are disabled."
- ),
- description3: getString(
- "click_to_play_media",
- "Audio and video (HTML5 media), and WebGL are click-to-play."
- ),
- },
- safest: {
- level: getString("safest_label", "Safest"),
- tooltip: getString("safest_tooltip", "Security Level : Safest"),
- summary: getString(
- "safest_description",
- "Only allows website features required for static sites and basic services. These changes affect images, media, and scripts."
- ),
- description1: getString(
- "js_disabled",
- "JavaScript is disabled by default on all sites."
- ),
- description2: getString(
- "limit_graphics_and_typography",
- "Some fonts, icons, math symbols, and images are disabled."
- ),
- description3: getString(
- "click_to_play_media",
- "Audio and video (HTML5 media), and WebGL are click-to-play."
- ),
- },
- custom: {
- summary: getString(
- "custom_summary",
- "Your custom browser preferences have resulted in unusual security settings. For security and privacy reasons, we recommend you choose one of the default security levels."
- ),
- },
- learnMore: getString("learn_more_label", "Learn more"),
- learnMoreURL: 'about:manual#security-settings',
- restoreDefaults: getString("restore_defaults", "Restore Defaults"),
- advancedSecuritySettings: getString(
- "advanced_security_settings",
- "Advanced Security Settings\u2026"
- ),
- change: getString(
- "change",
- "Change\u2026"
- ),
- };
- return retval;
- })() /* Security Level Strings */,
-
/*
Tor about:preferences#connection Strings
*/
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits