Open forrestguice opened 6 years ago
...in the meantime, I think the existing option to manually override the locale provides an effective stopgap.
Please don't remove it! It's the only way to display the application in Esperanto!
Don't worry, no plans to remove the existing feature, or even touch the way most of the translations are handled. ..really just saying the existing override feature already provides a solid workaround, so not really feeling rushed to "fix" language resolution using bcp47.
The idea would be to move some files from one directory structure into another. I think Spanish is the only language where this really needs to be done.
...might be related. Tested on a Samsung Galaxy 7 running Android 7.0.
The app fails to override the locale to Spanish. It is working correctly for the other locales. It is also working correctly when I test it on my api19, and api15 devices. The log shows es_ES incorrectly resolving to "" (while other locales resolve correctly).
First couple paragraphs of https://developer.android.com/guide/topics/resources/multilingual-support.html describes the problem. Consider a device w/ system locale
es_US
ores_MX
(while the app only provides translationes_ES
). When trying to resolve the language firstes_ES
is tried, thenes
, and then it finally falls back to defaulten_US
(failing to resolve to spanish).A quick fix would be to move the
es_ES
translations intoes
, but this is less than ideal - supposees_UY
is added later - in this case which version belongs in the fallbackes
(Castilian vs Latin American Spanish), and which should use the full qualifier (arbitrary choice). Or should thees_ES
resources just be copied intoes
(ugly duplication).Android 24+ purports to fix this situation w/ improved resolution using BCP 47 language tags.