Skip to content
Snippets Groups Projects
Commit caed3ae7 authored by henry's avatar henry Committed by richard
Browse files

fixup! Add TorStrings module for localization

Bug 42206: Migrate ruleset strings to Fluent.
parent 7b790cf6
Branches
No related tags found
1 merge request!986Migrate ruleset strings to Fluent
......@@ -429,54 +429,6 @@ const Loader = {
learnMoreURLNotification: `https://tb-manual.torproject.org/${getLocale()}/onion-services/`,
};
} /* OnionLocation */,
/*
Rulesets
*/
rulesets() {
const strings = {
// Initial warning
warningTitle: "Proceed with Caution",
warningDescription:
"Adding or modifying rulesets can cause attackers to hijack your browser. Proceed only if you know what you are doing.",
warningEnable: "Warn me when I attempt to access these preferences",
warningButton: "Accept the Risk and Continue",
// Ruleset list
rulesets: "Rulesets",
noRulesets: "No rulesets found",
noRulesetsDescr:
"When you save a ruleset in Tor Browser, it will show up here.",
lastUpdated: "Last updated %S",
neverUpdated: "Never updated, or last update failed",
enabled: "Enabled",
disabled: "Disabled",
// Ruleset details
edit: "Edit",
name: "Name",
jwk: "JWK",
pathPrefix: "Path Prefix",
scope: "Scope",
enable: "Enable this ruleset",
checkUpdates: "Check for Updates",
// Add ruleset
jwkPlaceholder:
"The key used to sign this ruleset in the JWK (JSON Web Key) format",
jwkInvalid: "The JWK could not be parsed, or it is not a valid key",
pathPrefixPlaceholder:
"URL prefix that contains the files needed by the ruleset",
pathPrefixInvalid: "The path prefix is not a valid HTTP(S) URL",
scopePlaceholder: "Regular expression for the scope of the rules",
scopeInvalid: "The scope could not be parsed as a regular expression",
save: "Save",
cancel: "Cancel",
};
const tsb = new TorPropertyStringBundle(
["chrome://torbutton/locale/rulesets.properties"],
"rulesets."
);
return tsb.getStrings(strings);
} /* Rulesets */,
};
export const TorStrings = {
......@@ -507,11 +459,4 @@ export const TorStrings = {
}
return this._onionLocation;
},
get rulesets() {
if (!this._rulesets) {
this._rulesets = Loader.rulesets();
}
return this._rulesets;
},
};
# Copyright (c) 2022, The Tor Project, Inc.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# about:rulesets strings.
rulesets.warningTitle=Proceed with Caution
rulesets.warningDescription=Adding or modifying rulesets can cause attackers to hijack your browser. Proceed only if you know what you are doing.
rulesets.warningEnable=Warn me when I attempt to access these preferences
rulesets.warningButton=Accept the Risk and Continue
# Ruleset list
rulesets.rulesets=Rulesets
rulesets.noRulesets=No rulesets found
rulesets.noRulesetsDescr=When you save a ruleset in Tor Browser, it will show up here.
# LOCALIZATION NOTE: %S will be replaced by the update date (automatically formatted by Firefox's l10n component)
rulesets.lastUpdated=Last updated %S
rulesets.neverUpdated=Never updated, or last update failed
rulesets.enabled=Enabled
rulesets.disabled=Disabled
# Ruleset details/edit ruleset
rulesets.edit=Edit
rulesets.name=Name
rulesets.jwk=JWK
rulesets.pathPrefix=Path Prefix
rulesets.scope=Scope
rulesets.enable=Enable this ruleset
rulesets.checkUpdates=Check for Updates
rulesets.jwkPlaceholder=The key used to sign this ruleset in the JWK (JSON Web Key) format
rulesets.jwkInvalid=The JWK could not be parsed, or it is not a valid key
rulesets.pathPrefixPlaceholder=URL prefix that contains the files needed by the ruleset
rulesets.pathPrefixInvalid=The path prefix is not a valid HTTP(S) URL
rulesets.scopePlaceholder=Regular expression for the scope of the rules
rulesets.scopeInvalid=The scope could not be parsed as a regular expression
rulesets.save=Save
rulesets.cancel=Cancel
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment