mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-05-08 21:12:26 +00:00
883e99d120
Manually generate the locales_config.xml file, which is currently needed when using resourceConfigurations
1.2 KiB
1.2 KiB
To provide a consistent user experience, languages with missing translations are excluded from the app build. Usually this means languages with 5% or more untranslated strings. Such languages may still be present in the resources folder, however they won't be usable by the users.
The languages currently included into the app need to be specified in 2 places:
resourceConfigurationsinapp/build.gradle: specifies the folder names of the actual translations to includeapp/src/main/res/xml/locales_config.xml: specifies the locales which are displayed in the Android own language selector
Note: the locale name in locales_config.xml can differ from the language specified in resourceConfigurations, see
https://developer.android.com/guide/topics/resources/app-languages#sample-config for some examples
Adding a new language
Here is a summary of the steps needed to add a new language:
- The language translation first needs to be completed on Weblate
- The language related commits are cherry-picked to
master, and possibly squashed build.gradleandlocales_config.xmlis updated as explained about