Skip to content

[GeckoView] Fix l10n of the download toolbar-button (PR 16340 follow-up) #16701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

Snuffleupagus
Copy link
Collaborator

Localization of this button broke in PR #16340, which I assume was completely accidental, since the download-button now tries to access a l10n-id that was removed some time ago (see PR #15617).
Note how loading even the development viewer, i.e. http://localhost:8888/web/viewer-geckoview.html#locale=en-US, currently logs l10n-warnings on the master branch.

Localization of this button broke in PR 16340, which I assume was completely accidental, since the download-button now tries to access a l10n-id that was removed some time ago (see PR 15617).
Note how loading even the development viewer, i.e. http://localhost:8888/web/viewer-geckoview.html#locale=en-US, currently logs l10n-warnings on the `master` branch.
Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.
I've no idea on how I did that...

@Snuffleupagus Snuffleupagus merged commit 717c766 into mozilla:master Jul 17, 2023
@Snuffleupagus Snuffleupagus deleted the gv-fix-toolbar-l10n branch July 17, 2023 11:16
@calixteman
Copy link
Contributor

This change induced a test failure with Fenix:
mozilla-mobile/firefox-android#2954 (comment)
After thinking about that, the "Download" string is what we must have ("must" because it has been decided by UI) and we must add a new localized string.
Sorry about having r+ed this PR.

@Snuffleupagus
Copy link
Collaborator Author

After thinking about that, the "Download" string is what we must have ("must" because it has been decided by UI) and we must add a new localized string.

Well, to me it does seem strange to use different strings for the same functionality in the regular vs. GeckoView versions of the viewer. Shouldn't we perhaps ask UI about addressing this inconsistency?

@calixteman
Copy link
Contributor

The main difference between Fenix and desktop is that the string is displayed in Fenix when it isn't in desktop.
That said I'll submit the question to the fenix UI team because when we've a filed form we're closer to "Save" than "Download".

@calixteman
Copy link
Contributor

After thinking about that, the "Download" string is what we must have ("must" because it has been decided by UI) and we must add a new localized string.

Well, to me it does seem strange to use different strings for the same functionality in the regular vs. GeckoView versions of the viewer. Shouldn't we perhaps ask UI about addressing this inconsistency?

I agree with you and I raised the question to the team, so wait and see.

@calixteman
Copy link
Contributor

I got an answer from the android UX/UI team and they decided to keep the string "Download" even if they agreed that technically it's more a saving than a downloading. That said it's something which could change in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants