commit a32ade1b85b714999aa0586641430743f7c1fd00
parent c4e82fad7103f41508c0edd919a49108a67ddc37
Author: Erik Nordin <enordin@mozilla.com>
Date: Thu, 18 Dec 2025 15:42:05 +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:
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 =