Closed Bug 1609556 Opened 5 years ago Closed 5 years ago

Migrate toolbar-context-menu to Fluent

Categories

(Firefox :: General, task, P3)

task

Tracking

()

RESOLVED FIXED
Firefox 78
Tracking Status
firefox78 --- fixed

People

(Reporter: zbraniecki, Assigned: salniker)

References

Details

Attachments

(1 file)

Priority: -- → P3

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Internationalization
Product: Firefox → Core
Component: Internationalization → General
Product: Core → Firefox

Updated link: https://searchfox.org/mozilla-central/rev/54f965e51e4f77866bec42737978d40d4c1fdfc5/browser/base/content/browser.xhtml#402-473
The FTL file is at https://searchfox.org/mozilla-central/source/browser/locales/en-US/browser/toolbarContextMenu.ftl ; you can add to this one.

There's 14 strings:

&customizeMenu.manageExtension.accesskey;
&customizeMenu.manageExtension.label;
&customizeMenu.removeExtension.accesskey;
&customizeMenu.removeExtension.label;
&customizeMenu.reportExtension.accesskey;
&customizeMenu.reportExtension.label;
&customizeMenu.pinToOverflowMenu.accesskey;
&customizeMenu.pinToOverflowMenu.label;
&customizeMenu.autoHideDownloadsButton.accesskey;
&customizeMenu.autoHideDownloadsButton.label;
&customizeMenu.removeFromToolbar.accesskey;
&customizeMenu.removeFromToolbar.label;
&viewCustomizeToolbar.label;
&viewCustomizeToolbar.accesskey;

Some of which are used from other places as well, so you'll want to feed each of these through searchfox to see what other places they get used at.

There's a slight twist here: please put the fluent identifiers in the markup in data-lazy-l10n-id attributes (there's some there already). The code at https://searchfox.org/mozilla-central/rev/54f965e51e4f77866bec42737978d40d4c1fdfc5/browser/base/content/browser.js#6388-6396 is responsible for making this work.

You'll need to also convert other uses of the strings in this context menu in the similar menu at https://searchfox.org/mozilla-central/rev/54f965e51e4f77866bec42737978d40d4c1fdfc5/browser/components/customizableui/content/panelUI.inc.xhtml#31 . Those will want a similar data-lazy-l10n-id attribute, and then the code at https://searchfox.org/mozilla-central/rev/54f965e51e4f77866bec42737978d40d4c1fdfc5/browser/components/customizableui/CustomizeMode.jsm#2582-2592 will need a block adding similar to the browser.js code to make them work.

For testing, these items appear in the context menu of the browser toolbar, and the ones in panelUI.inc.xhtml appear in the context menu of the overflow button (to see that, right click a button on the toolbar and click "pin to Overflow Menu").

Assignee: nobody → salniker
Status: NEW → ASSIGNED
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/81a5e4af9a33 Migrate toolbar-context-menu to Fluent r=Gijs,fluent-reviewers
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: