From bb1eaa5b56448a250b0339fed68055d65f9ea079 Mon Sep 17 00:00:00 2001 From: elastic rock Date: Sat, 4 Feb 2023 23:09:30 +0100 Subject: [PATCH] Android system per-app language preferences --- build.gradle | 2 ++ src/main/AndroidManifest.xml | 3 +- src/main/res/xml/locales_config.xml | 47 +++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 src/main/res/xml/locales_config.xml diff --git a/build.gradle b/build.gradle index 3976e0225..2daedc6ed 100644 --- a/build.gradle +++ b/build.gradle @@ -69,6 +69,8 @@ android { testInstrumentationRunner "de.dennisguse.opentracks.TestRunner" testInstrumentationRunnerArguments clearPackageData: 'true' + + resConfigs "ar", "bg", "ca", "cs", "da", "de", "el", "en", "es", "et", "eu", "fa", "fi", "fr", "ga", "gl", "hi", "hr", "hu", "in", "it", "iw", "ja", "ko", "lt", "lv", "mo", "ms", "nb", "nl", "pl", "pt", "ro", "ru", "sk", "sl", "sr", "sv", "th", "tl", "tr", "uk", "vi", "zh" } signingConfigs { nightly { diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 2f96e1d51..8e7891f0b 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -68,7 +68,8 @@ limitations under the License. android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" - android:theme="@style/ThemeCustom"> + android:theme="@style/ThemeCustom" + android:localeConfig="@xml/locales_config"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +