apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

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

Open whym opened this issue 8 years ago • 2 comments

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.

whym avatar Apr 17 '17 12:04 whym

Agreed, that would be great for localization.

misaochan avatar Apr 17 '17 13:04 misaochan

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.

nicolas-raoul avatar Feb 07 '19 03:02 nicolas-raoul