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
caed3ae7
Commit
caed3ae7
authored
Nov 2, 2023
by
henry
Committed by
richard
Apr 16, 2024
Browse files
Options
Downloads
Patches
Plain Diff
fixup! Add TorStrings module for localization
Bug 42206: Migrate ruleset strings to Fluent.
parent
7b790cf6
Branches
Branches containing commit
No related tags found
1 merge request
!986
Migrate ruleset strings to Fluent
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
toolkit/modules/TorStrings.sys.mjs
+0
-55
0 additions, 55 deletions
toolkit/modules/TorStrings.sys.mjs
toolkit/torbutton/chrome/locale/en-US/rulesets.properties
+0
-35
0 additions, 35 deletions
toolkit/torbutton/chrome/locale/en-US/rulesets.properties
with
0 additions
and
90 deletions
toolkit/modules/TorStrings.sys.mjs
+
0
−
55
View file @
caed3ae7
...
...
@@ -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
;
},
};
This diff is collapsed.
Click to expand it.
toolkit/torbutton/chrome/locale/en-US/rulesets.properties
deleted
100644 → 0
+
0
−
35
View file @
7b790cf6
# 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
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