tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 71227cdf20ede210b0a14731e2b52c335f063d8f
parent 25796bd80fdff7e08118cd41f3653923066ee2f4
Author: Erik Nordin <enordin@mozilla.com>
Date:   Thu, 18 Dec 2025 01:17:25 +0000

Bug 2002127 - Part 06: Implement "More Translation Settings" SubPage r=fluent-reviewers,bolsson,hjones

This commit wires up the "More Translation Settings" subpage in the
about:settings UI, compatible with the settings redesign initiative.

The content of the subpage will be implemented in later commits.

Differential Revision: https://phabricator.services.mozilla.com/D274223

Diffstat:
Mbrowser/components/preferences/main.js | 8+++++++-
Mbrowser/components/preferences/preferences.js | 6++++++
Mbrowser/locales/en-US/browser/preferences/preferences.ftl | 3+++
3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/browser/components/preferences/main.js b/browser/components/preferences/main.js @@ -657,7 +657,7 @@ Preferences.addSetting({ id: "translationsManageButton", onUserClick(e) { e.preventDefault(); - gMainPane.showTranslationsSettings(); + gotoPref("paneTranslations"); }, }); @@ -3700,6 +3700,12 @@ SettingGroupManager.registerGroups({ }, ], }, + moreTranslationSettings: { + inProgress: true, + items: [ + // Will be populated in the following commits. + ], + }, }); /** diff --git a/browser/components/preferences/preferences.js b/browser/components/preferences/preferences.js @@ -295,6 +295,12 @@ const CONFIG_PANES = Object.freeze({ l10nId: "autofill-addresses-manage-addresses-title", groupIds: ["manageAddresses"], }, + translations: { + parent: "general", + l10nId: "settings-translations-subpage-header", + groupIds: ["moreTranslationSettings"], + iconSrc: "chrome://browser/skin/translations.svg", + }, }); var gLastCategory = { category: undefined, subcategory: undefined }; diff --git a/browser/locales/en-US/browser/preferences/preferences.ftl b/browser/locales/en-US/browser/preferences/preferences.ftl @@ -433,6 +433,9 @@ settings-translations-more-settings-button = .label = More translation settings .description = Set preferences for languages, websites, and offline translation. +settings-translations-subpage-header = + .heading = More translation settings + # Variables: # $localeName (string) - Localized name of the locale to be used. use-system-locale =