Migrate placesContextMenu.inc.xhtml to Fluent
Categories
(Firefox :: General, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox77 | --- | verified |
People
(Reporter: zbraniecki, Assigned: shomalij)
References
Details
Attachments
(1 file)
As part of bug 1579477 we want to migrate https://searchfox.org/mozilla-central/source/browser/components/places/content/placesContextMenu.inc.xhtml to Fluent.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Reporter | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Hey Julian,
There are a lot of strings and items in this context menu. Some of them only display in certain situations, depending on what the context menu is being opened on. It's some pretty sophisticated logic.
You can get most of the items to show if you return early from here: https://searchfox.org/mozilla-central/rev/6cd54550a27e2f6ca0755a25328f769e41e524f4/browser/components/places/content/controller.js#595, and then open up the Library (Cmd-Shift-B), and right-click on a bookmark item.
That should be enough to get you started. There are some tricker menu items manipulated down here: https://searchfox.org/mozilla-central/rev/6cd54550a27e2f6ca0755a25328f769e41e524f4/browser/components/places/content/controller.js#681-702
where they get their strings set depending on how many items are selected. Once you're done your first pass of translations, you can remove the early return at https://searchfox.org/mozilla-central/rev/6cd54550a27e2f6ca0755a25328f769e41e524f4/browser/components/places/content/controller.js#595, and then select a single bookmark, and then multiple bookmarks, to see those variations.
Finally, there's a "Properties" entry that appears to be removed in the Library: https://searchfox.org/mozilla-central/rev/6cd54550a27e2f6ca0755a25328f769e41e524f4/browser/components/places/content/places.js#233-235
If you comment those lines out, you can force it to appear.
Hopefully that's enough information to let you display each variation for the context menu items!
Assignee | ||
Comment 3•5 years ago
|
||
Comment 6•5 years ago
|
||
Backed out changeset a32a1f5c2676 (Bug 1609557) for causing bc failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/6331429d856033aaf757ebf2863ee36ae2b8a29d
Failure logs:
Updated•5 years ago
|
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 9•5 years ago
|
||
Verified fixed as part of PI 551; tested with Nightly 77 across platforms (Windows 10, macOS 10.15 and Ubuntu 18.04).
Description
•