mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-20 23:07:26 -04:00
In android-24 and newer, the user can specify multiple languages in a priority list. Therefore, the locale chooser logic here does not need to work so hard to find a language match. For example, if the user wanted to see country-specific variants, they would add them to the preference list. With older versions of Android, the pref is only a single locale. So chances are that someone who specified de_AT would rather see de or de_DE than en_US. Same goes for es_AR, ar_EG, etc. This could annoy Chinese speakers, since someone who sets zh_TW could potentially see zh_CN, which are written pretty differently.