Indonesian Language and Legacy Language Codes
#245
Open
opened 3 years ago by y20k
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Picking up the recent discussion regarding new language commit (
7e83bb5590
) ...There is a problem with the workflow between Weblate and Android Studio when it comes to languages that have two language code - such as the Indonesian language ("id" and "in"). See also:
https://developer.android.com/reference/java/util/Locale#legacy-language-codes
The solution discussed in the above mentioned commit works: Prior to a built of the app the most recent version of the translation (
strings.xml
) gets copied over to the legacy language folder - in this case tovalues-in
.The problem now is that Weblate warns me that the app has "several translation files mapped to single language" (see screenshot).
I am now somewhat unsure what to do next.
@zmni @comradekingu - I moved the discussion over to this Issue here, to better keep track of it.
For Indonesian language, I think it is safe to omit
id
from the source entirely as AOSP apps also only usein
in their sources [1][2][3]. Or maybe you can try use a symlink like f-droid did (I'm not developer, I don't know how this symlink thing actually work, just pass on info on how other devs handle this issue.).