[BUG] Per-app language setting not reflected to app descriptions
Possibly related to #416 and #978. (But opposite to #416.)
The per-app language setting is reflected to the app UI but not the app descriptions in the list of downloadable apps. Even if I set the app language to, say English, it still displays app data in the system language instead of English. This happens regardless of whether the language is set in the app settings or in the system settings' per-app language setting.
To Reproduce Steps to reproduce the behavior:
- Set system language to language A.
- Set app language to language B.
- Open the app.
- See language A.
Expected behavior
Per-app language should be prior to system language.
Smartphone (please complete the following information):
- Device: Samsung Galaxy M33 5G (SM-M336B)
- OS: Android 15
- Version 0.6.6
Additional information
- https://developer.android.com/guide/topics/resources/app-languages
I think it was because my app data cache wasn't updated since I changed the per-app language. Solved now, though I'm still experiencing #978.
Maybe the user should be suggested to perform a synchronization after changing the app language?
No. It is not solved. I need to reopen this issue.
There is a chance that the app doesn't have localized description for your language
Even if I set the app language to, say English, it still displays app data in the system language instead of English.
It would be surprising that so many apps, including the Fossify apps, wouldn't support English.
Okay I didn't check that part the issue. Will look into it
It could be a system bug. English could be special (or not). I remember that I was forced to add a values-en in my project because newer versions of the system don't fallback to English. Not sure if related.
I had been using Foxy Droid. It didn't have this issue. It is English-only. (But its UI is also English-only)
Now I got all English again (which is the correct behavior). Is it random or does it depend on the last synchronized repo?
Does this app use HTTP to communicate with the server? There is a header that can specify the preferred language(s).
@sls1005 On current version of Droid-ify we only sync one version of description, ie if english was selected only that will be synced and other languages are discarded. But in upcoming version we will be saving all languages available which will resolve this issue
We continuously reported that we see other languages randomly while we want to see all-English. The solution to save all versions of app descriptions of all languages will not solve this specific issue if it is in the code logic, and will increase the cache size by its current size times the number of available languages minus one.
Also there is #978. And the solution to #978 is to add a values-en or values-en-rUS folder and make it contain all actual English strings.
Sorry. It could solve the problem (at the cost of increasing the cache size by its current size times the number of available locales minus one) if it were only caused by un-updated cache as I supposed when I first closed this issue. But then I re-opened this issue because non-English strings reappeared in app descriptions (but not UI; UI is #978) after that. (Those strings are in my system's first preferred language, while English is my system's second preferred language, but I have set the per-app language of this app to English because I'm more used to English in technical context.) Not sure what I did wrong or if it is a system bug.
If un-updated cache is the only problem, I think the better solution is still to force a resynchronization after a locale change, as it doesn't increase the cache size.
Still correct. I'll close this issue again if nothing strange happens in the following weeks.
If anyone encounters the issue mentioned above, try clearing the app cache and resynchronizing all repos you are going to use.
My app UI is also in English (per-app language), but notifications are still affected by #978.