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

Depictions picker shows labels in OS language instead of app interface language

Open nicolas-raoul opened this issue 2 years ago • 7 comments

OS in Chinese App interface in French (in the Commons app's settings) Labels should be shown in French, but they are actually shown in Chinese:

Screenshot_20231016-184040.png

Same for license selection: Screenshot_20231016-184554.png

nicolas-raoul avatar Oct 16 '23 09:10 nicolas-raoul

Hi, can I take this issue? I find this interesting. Would you have more information to provide? I figure for some languages it doesn't even translate the popup window or it may only be partially translated.

u7452206 avatar Oct 17 '23 04:10 u7452206

@u7452206 It is yours :-)

I suggest testing with OS in Chinese and app in French. Solving for this will most probably fix the issue for all other languages.

for some languages it doesn't even translate the popup window or it may only be partially translated

That's because translations are not complete, which is not really a bug. :-)

The bug here is that even though there are French localizations for "London" and "Creative Commons", they are not shown when the app is set to French.

nicolas-raoul avatar Oct 17 '23 05:10 nicolas-raoul

I also found out there are inconsistencies. The Chinese names for London appears in both traditional and simplified. Screen Shot 2023-10-17 at 16 56 02

u7452206 avatar Oct 17 '23 05:10 u7452206

Could I please know which file do you use to edit language function ? Would love to know what you have tried to solve this issue and work from there.

u7452206 avatar Oct 17 '23 06:10 u7452206

The traditional/simplified inconsistency you found is due to Wikidata, we do not have to worry about it. :-)

I have not tried to solve it. Your task is to find the part of the source code which selects the language for the data filled into those screens.

The license one (step 4) is probably the easiest to find. The depictions one (step 2) is probably related to a parameter in a Wikidata query.

nicolas-raoul avatar Oct 17 '23 06:10 nicolas-raoul

@u7452206 Did you get a chance to check my comment on your pull request at https://github.com/commons-app/apps-android-commons/pull/5364#issuecomment-2022237940 ? Thanks a lot. :-)

nicolas-raoul avatar Aug 20 '24 07:08 nicolas-raoul

@u7452206 I unassign for now, but if you are you still working on this, please let us know. If no answer, someone else may be assigned to it. Thanks a lot. :-)

nicolas-raoul avatar Aug 26 '24 02:08 nicolas-raoul