Catfriend1 / syncthing-android

Syncthing-Fork - A Syncthing Wrapper for Android.
Mozilla Public License 2.0
1.2k stars 40 forks source link

i18n: Indirect string-array declarations through arrays.xml #1051

Closed acolomb closed 9 months ago

acolomb commented 9 months ago

This fixes missing strings in Weblate translation, although they are supposedly in the strings.xml files. Ref. https://github.com/syncthing/syncthing-android/pull/2012

Introduce string-array elements matching those from the source strings.xml, but instead pointing to a @string reference. The latter is to be translated based on the assigned sub item's key.

Weblate does not handle string-arrays, but needs this indirection, see https://docs.weblate.org/en/latest/formats/android.html

All existing translations are pulled in by migrating the ... elements to elements instead. This was done using an XSLT stylesheet, so can be easily reproduced.

IMPORTANT, MERGING ORDER: