Add context-menu item for Select Translations when selection is present
Categories
(Firefox :: Translations, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox123 | --- | fixed |
People
(Reporter: nordzilla, Assigned: nordzilla)
References
Details
Attachments
(4 files)
Description
This bug tracks the progress of creating the context-menu item that will open the Select Translations Panel when text is selected.
The menu item will only be available when there is a present text selection, and when we have determined that the translated text is supported by our available languages.
Steps to implement
- Add a menu item to the context-menu
- Add localized text for translating to the target language, following the same logic to determine the language as Full-Page Translations
- Ensure that the menu item is only available when the correct criteria are met (see description).
Tests to implement
- Test for the non-existence of the menu item when translations is unavailable.
- Test for the existence of the menu item when translations is available.
- Test that the localized text and target language are correct.
Assignee | ||
Updated•9 months ago
|
Assignee | ||
Comment 1•9 months ago
|
||
Refactors the way we assert visibility in teh Translations
test suite in order to make it easier to test the Select
Translations context menu item.
Assignee | ||
Comment 2•9 months ago
|
||
Renames the data member textSelected to selectedText.
I think textSelected sounds more like a boolean, rather
than a string, and I think selectedText is a better name.
Depends on D197222
Assignee | ||
Comment 3•9 months ago
|
||
Adds the Select Translations context menu item
to the right-click context menu with an initial
localized label value.
Depends on D197223
Assignee | ||
Comment 4•9 months ago
|
||
Ensures that the Select Translations context menu
item only appears when there is actively selected text
at the time the context menu is invoked.
Depends on D197224
Updated•9 months ago
|
Updated•9 months ago
|
Updated•9 months ago
|
Updated•9 months ago
|
Comment 6•9 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/45ade6253941
https://hg.mozilla.org/mozilla-central/rev/e817f31d2d1a
https://hg.mozilla.org/mozilla-central/rev/989da1a73e73
https://hg.mozilla.org/mozilla-central/rev/68921f44e88b
Description
•