Refactor `TranslationsDropdown` into a top level `Dropdown` composable
Categories
(Firefox for Android :: Design System and Theming, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | verified |
People
(Reporter: npoon, Assigned: npoon)
References
(Blocks 3 open bugs)
Details
(Whiteboard: [fxdroid][group4])
Attachments
(2 files, 1 obsolete file)
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Comment 7•1 year ago
•
|
||
Hey QA,
Once part 2 merges into mozilla-central, can we check that translations is still working as desired?
In particular, here is the STR:
- Go to https://en.wikipedia.org/wiki/Canada.
- Click the 3 dot menu
- Click on Tools (if menu redesign is enabled)
- Click on Translate page...
- Click on both the Translate from and Translate to dropdowns
i. Check that the padding for the dropdown items is correct. This should be the same regardless of whether items are selected or not. Additionally, check that the touch area fills the entire row when there is no items selected and when there is an item selected.
ii. Check that the positioning of the dropdown is correct in both landscape and vertical orientations.
iii. Check that the currently checked item is correct (matches what is shown before you click on the dropdown)
iv. Check that if the placeholder is currently being shown, no item is selected in the dropdown items
v. Check that at most 1 dropdown item is selected
vi. Opening to the selected option and ensuring this was working correctly in TalkBack and that TalkBack works properly in general.
vii. Check that spamming on the dropdown will not cause flickering and that opening the dropdown will start the animation in 1 place and then open in the same place. - Select any Translate from and Translate to language (preferably 2 that you would understand)
- Click Translate
i. Check that the page is being translated as expected - Click the Translate icon in the toolbar
i. Check that this dropdown is working as desired (check the same things as 5)
ii. Check that clicking Show original shows the original
iii. Check that clicking on a different language in the dropdown and then clicking Translate will translate correctly to the next language. - Repeat steps 1-8 with your fenix language set to a different supported translations language and ensure that the dropdown languages (in step 5) are displaying in the different language.
| Assignee | ||
Updated•1 year ago
|
Comment 8•1 year ago
|
||
| bugherder | ||
Comment 9•1 year ago
•
|
||
Verified on the Fenix Nightly 132.0a1 from 9/25 with the following devices:
- Google Pixel 6 (Android 15),
- Samsung Galaxy Tab S9 Ultra (Android 14), and
- Realme GT Master Edition (Android 13).
The following were verified from the three-dot's "Translate page" option, and from the translation icon:
- the padding for the dropdown languages is correct - it is the same regardless of whether languages are selected or not;
- that the touch area fills the entire row when a language is selected or not;
- the positioning of the dropdown is correct in both landscape and portrait;
- the currently checked language is correct (matches what is shown before you tap on the dropdown);
- if the placeholder is currently being displayed, no language is selected in the dropdown languages;
- verified that at most 1 dropdown language is selected;
- verified that opening the selected option and ensuring this was working correctly with TalkBack, and that TalkBack works properly in general;
- spamming on the dropdown will not cause flickering and that opening the dropdown will start the animation in 1 place and then open in the same place;
- the user can select any "Translate from" and "Translate to" language from the dropdown lists;
- verified that when the "Translate" is tapped on, the page is being translated as expected;
- tapping the "Show original", reloads the original page;
- selecting a different language in the dropdown and then tapping "Translate" will translate correctly to the next language;
- repeated all the above scenarios with Fenix language set to a different supported translations language, and ensure that the dropdown languages are displaying in the different language.
Nicholas, I have one question:
- in "Translate from" I have the following languages available: Bosnian, Bulgarian, Catalan, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hungarian, Icelandic, Indonesian, Italian, Latvian, Lithuanian, Maltese, Norwegian Bokmal, Norwegian Nynorsk, Persian, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Swedish, Turkish, Ukranian, Vietnamese, and
- in "Translate to" I only have the following: Bulgarian, Catalan, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Hungarian, Italian, Latvian, Lithuanian, Persian, Polish, Portuguese, Russian, Slovak, Slovenian, Swedish, Turkish, Ukranian.
Is there a reason why the listst are different (I bolded the missing languages)?
| Assignee | ||
Comment 10•1 year ago
|
||
Thanks for verifying the STR!
To answer your question, every translate from to translate to language is a model so I suppose that we don't have models for all languages to all languages yet.
I also asked Olivia on why this may be the case, since she worked on Translations and knows more about this than I do. Here was her reply:
Some languages are still in development and uni-directional. Some of it is we have a better corpus going in one direction than another. Also, I thought this interesting, users who use one direction of a pair don't necessarily use the other (because they know the language). I scanned what she mentioned against the list and it seems to match.
Description
•