From c7cea803670eae12c0d95afa8fb5b4dd180aac75 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Thu, 3 Nov 2022 13:25:55 -0700 Subject: [PATCH] Enable per-app language support. https://redmine.stoutner.com/issues/910 --- app/build.gradle | 3 +- app/src/main/AndroidManifest.xml | 1 + app/src/main/res/xml/file_provider_paths.xml | 4 +-- app/src/main/res/xml/locales_config.xml | 31 ++++++++++++++++++++ 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/xml/locales_config.xml diff --git a/app/build.gradle b/app/build.gradle index e36ed768..ae0f7fa9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,6 +30,7 @@ android { targetSdk 33 versionCode 60 versionName "3.11" + resConfigs "en", "de", "es", "fr", "it", "pt-rBR", "ru", "tr" } buildTypes { @@ -80,7 +81,7 @@ dependencies { implementation 'androidx.webkit:webkit:1.5.0' // Include the Kotlin standard library. This should be the same version number listed in project build.gradle. - implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10' + implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20' // Include the Google material library. implementation 'com.google.android.material:material:1.7.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 8d99e276..4cfa09bd 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -58,6 +58,7 @@ android:theme="@style/PrivacyBrowser" android:networkSecurityConfig="@xml/network_security_config" android:enableOnBackInvokedCallback="true" + android:localeConfig="@xml/locales_config" tools:ignore="DataExtractionRules,UnusedAttribute" > diff --git a/app/src/main/res/xml/file_provider_paths.xml b/app/src/main/res/xml/file_provider_paths.xml index d3af1279..ffbe1760 100644 --- a/app/src/main/res/xml/file_provider_paths.xml +++ b/app/src/main/res/xml/file_provider_paths.xml @@ -1,7 +1,7 @@ + + + + + + + + + + + + -- 2.45.2