Closed Bug 1890404 Opened 2 months ago Closed 2 months ago

Handle Same Language Selected in Select Translations Panel

Categories

(Firefox :: Translations, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

Description

This bug tracks the progress of handling selecting the same from-language as the to-language in the Select Translations Panel.

The current implementation disallows this by ensuring that this state cannot occur.

However, the desired UX behavior is to simply pass through the source text as though it was translated.


Steps to implement

  • Remove the logic that prevents this state from occurring.
  • Pass through the source text as though it was translated from one language to the same language.

Tests to implement

  • Remove the tests that ensure this state cannot occur.
  • Add tests that check for the source text being passed through.

Adds the ability for the Translator abstraction to be
a PassthroughTranslator in the case where the source
language and the target language are the same and the
consumer wants the behavior of passing the source text
directly through as a same-language translation.

Refactors some of the SelectTranslationsPanel test
assertions to explicitly wait for the panel to fire
an event upon changing state.

Allows the SelectTranslationsPanel to have the same
from-language and to-language selected, in which case
the source text will be passed through unaltered as
the same-language translation.

Attachment #9395768 - Attachment description: WIP: Bug 1890404 - Add PassthroughTranslator Implementation → Bug 1890404 - Add PassthroughTranslator Implementation r=#translations-reviewers!
Attachment #9395769 - Attachment description: WIP: Bug 1890404 - Refactor Translations Test Assertions → Bug 1890404 - Refactor Translations Test Assertions r=#translations-reviewers!
Attachment #9395770 - Attachment description: WIP: Bug 1890404 - Allow SelectTranslationsPanel Same Language → Bug 1890404 - Allow SelectTranslationsPanel Same Language r=#translations-reviewers!
Pushed by enordin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8d9b70a5b2c7
Add PassthroughTranslator Implementation r=translations-reviewers,gregtatum
https://hg.mozilla.org/integration/autoland/rev/6ed14cad5fb0
Refactor Translations Test Assertions r=translations-reviewers,gregtatum
https://hg.mozilla.org/integration/autoland/rev/aad7caf1a025
Allow SelectTranslationsPanel Same Language r=translations-reviewers,gregtatum
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: