Closed Bug 1609557 Opened 5 years ago Closed 5 years ago

Migrate placesContextMenu.inc.xhtml to Fluent

Categories

(Firefox :: General, task, P3)

task

Tracking

()

VERIFIED FIXED
Firefox 77
Tracking Status
firefox77 --- verified

People

(Reporter: zbraniecki, Assigned: shomalij)

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
Assignee: nobody → shomalij
Blocks: 1608163

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!

Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a32a1f5c2676 Migrate placesContextMenu.inc.xhtml to Fluent. r=fluent-reviewers,flod,Gijs
Backout by malexandru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6331429d8560 Backed out changeset a32a1f5c2676 for causing bc failures.
Attachment #9136640 - Attachment description: Bug 1609557 - Migrate placesContextMenu.inc.xhtml to Fluent. r?mconley,gijs → Bug 1609557 - Migrate placesContextMenu.inc.xhtml to Fluent. r=fluent-reviewers,flod,Gijs
Attachment #9136640 - Attachment description: Bug 1609557 - Migrate placesContextMenu.inc.xhtml to Fluent. r=fluent-reviewers,flod,Gijs → Bug 1609557 - Migrate placesContextMenu.inc.xhtml to Fluent. r=flod,Gijs
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6b4d325bd6f7 Migrate placesContextMenu.inc.xhtml to Fluent. r=fluent-reviewers,flod,Gijs
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77
Flags: needinfo?(shomalij)

Verified fixed as part of PI 551; tested with Nightly 77 across platforms (Windows 10, macOS 10.15 and Ubuntu 18.04).

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: