Indonesian Language and Legacy Language Codes #245

Open
opened 3 years ago by y20k · 2 comments
y20k commented 3 years ago (Migrated from github.com)

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 to values-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.

Screenshot from 2020-02-10 15-30-00

Picking up the recent discussion regarding new language commit (https://github.com/y20k/transistor/commit/7e83bb559049742ff84083716515bdeef13c8634) ... 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](https://github.com/y20k/transistor/commit/9082de0327fc4c614f7959156d42fff8cbe74980) 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 to `values-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. ![Screenshot from 2020-02-10 15-30-00](https://user-images.githubusercontent.com/9103935/74159500-2f9f8480-4c1c-11ea-98b5-8598be65cd01.png)
y20k commented 3 years ago (Migrated from github.com)

@zmni @comradekingu - I moved the discussion over to this Issue here, to better keep track of it.

@zmni @comradekingu - I moved the [discussion](https://github.com/y20k/transistor/commit/7e83bb559049742ff84083716515bdeef13c8634) over to this **Issue** here, to better keep track of it.
zmni commented 3 years ago (Migrated from github.com)

For Indonesian language, I think it is safe to omit id from the source entirely as AOSP apps also only use in 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.).

For Indonesian language, I think it is safe to omit `id` from the source entirely as AOSP apps also only use `in` in their sources [[1]][[2]][[3]]. Or maybe you can try use a symlink [like f-droid did][3] (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.). [1]: https://android.googlesource.com/platform/packages/apps/Calendar/+/refs/heads/master/res/ [2]: https://android.googlesource.com/platform/packages/apps/Email/+/refs/heads/master/res/ [3]: https://android.googlesource.com/platform/packages/apps/Launcher3/+/refs/heads/master/res/ [4]: https://gitlab.com/fdroid/fdroidclient/issues/139#note_2152183
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: y20k/transistor#245
Loading…
There is no content yet.