Skip to content

Apply the user's second preferred language to place labels (for API level 24 or higher) #516

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

Open
whym opened this issue Apr 17, 2017 · 2 comments

Comments

@whym
Copy link
Collaborator

whym commented Apr 17, 2017

Currently the names of nearby places are shown in random languages when the particular item has no label in the language of the user's first preference. If the user speaks another language, we should try to find labels in it. It appears that Android 7 has LocaleList.getDefault to enable this.

For example, when Wikidata doesn't have a label in Japanese (my first language) I would like to see it in English (my second language) which tends to have a wider coverage.

Ideally this should extend to third, fourth, etc, but supporting two would already be a great improvement.

@misaochan
Copy link
Member

Agreed, that would be great for localization.

@nicolas-raoul
Copy link
Member

This would be a great addition indeed.

Another place where additional preferred languages could be used is the details panel of any item in the Nearby activity:
adb-screenshot
Because my phone is in English and this item has no English Wikipedia article, the Wikipedia icon is greyed out. That's sad because I could read the Japanese article that exists, and have Japanese enabled in my Android languages settings.

This could also be used when displaying a media's caption and description.

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

No branches or pull requests

3 participants