Closed Bug 2026007 Opened 2 months ago Closed 1 month ago

Show language-agnostic SelectTranslations context menu item when the source and target languages are the same

Categories

(Firefox :: Translations, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
152 Branch
Tracking Status
firefox152 --- fixed

People

(Reporter: nordzilla, Assigned: pranjalisrvgkp, Mentored, NeedInfo)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

Description

Currently, in the Select Translations UX flow, when the source language and the target language are the same, the context menu still displays our language-specific message: "Translate Selection to { $language }"

This can be somewhat confusing to first-time users, who may not realize that they can change the target language once the panel opens.

They may be on an English page, and see the menu item say, "Translate Selection to English" and think, "why would I want to do that?" Then, they never engage with the Select Translations Panel.

Instead, we could display our language-agnostic message: "Translate Selection…"

Even though the panel may still open to an English-to-English passthrough Translation, the user won't be confused at the message in the context menu, and hopefully it is clear once the panel opens that they can choose a new target language.

Dasha, what do you think of this UX improvement? The Fluent strings already exist, so we wouldn't need any special approval on the copy.


tl;dr

If the context for the selected-text translation were to result in a same-language translation: "English to English," "Spanish to Spanish," etc., then it might be better to show the "Translate Selection…" text rather than "Translate Selection to { $language }" to prevent confusion and increase engagement.

Flags: needinfo?(dandriyenko)

I've discussed this with Dasha in Slack, and we would like to move forward with this improvement.

I also think that this would make for a Good First Bug for someone to try, so I am marking it as such and assigning myself as a mentor.

Mentor: enordin
Type: task → enhancement
Flags: needinfo?(dandriyenko)
Keywords: good-first-bug
Summary: Consider Showing Default SelectTranslations Menu Item When Source and Target Language Are The Same → Show Default SelectTranslations Menu Item When Source and Target Language Are The Same
Summary: Show Default SelectTranslations Menu Item When Source and Target Language Are The Same → Show default SelectTranslations menu item when the source and target languages are the same
Summary: Show default SelectTranslations menu item when the source and target languages are the same → Show language-agnostic SelectTranslations context menu item when the source and target languages are the same

I would like to work on this. Can I send a patch ?

Hi,

Yes, any new contributor is welcome to work on this.

OK, I am sending a patch for this

Assignee: nobody → pranjalisrvgkp
Attachment #9560301 - Attachment description: WIP: Bug 2026007 - Fix translate selection label when source and target languages match. → Bug 2026007 - Fix translate selection label when source and target languages match.
Status: NEW → ASSIGNED
Attachment #9560301 - Attachment description: Bug 2026007 - Fix translate selection label when source and target languages match. → Bug 2026007 - Use generic select-translations label when detected and target languages match
Pushed by enordin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4f8a45fd432e https://hg.mozilla.org/integration/autoland/rev/1e1f7c2eb06b Use generic select-translations label when detected and target languages match r=nordzilla,translations-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch

Hey Pranjali,

Congratulations on landing this bug.

Please feel free to join the conversation on Matrix in the #Firefox Translations.

Instructions on how to join Mozilla's Matrix server can be found here:


Note: I am requesting a "Need Info" to ensure that you are notified about this. Feel free to clear it. There is no action needed.

Flags: needinfo?(pranjalisrvgkp)

Hi Erik,

Thank you so much for the kind words and support. I really appreciate it.

I have already joined the Matrix room and look forward to being part of the conversation there.

Thanks again!

QA Whiteboard: [qa-triage-done-c153/b152]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: