diff options
| author | 2023-10-31 20:29:16 -0400 | |
|---|---|---|
| committer | 2023-10-31 22:07:44 -0400 | |
| commit | 97b4ca1d01fef5fb350125d103e6aff89cd92108 (patch) | |
| tree | f922d3ba9377370e539b77445f4914ac9c1ae4d3 /src | |
| parent | android: Update translations from transifex (diff) | |
| download | yuzu-97b4ca1d01fef5fb350125d103e6aff89cd92108.tar.gz yuzu-97b4ca1d01fef5fb350125d103e6aff89cd92108.tar.xz yuzu-97b4ca1d01fef5fb350125d103e6aff89cd92108.zip | |
android: Auto-generate locale config
Diffstat (limited to 'src')
| -rw-r--r-- | src/android/app/build.gradle.kts | 4 | ||||
| -rw-r--r-- | src/android/app/src/main/AndroidManifest.xml | 1 | ||||
| -rw-r--r-- | src/android/app/src/main/res/resources.properties | 1 | ||||
| -rw-r--r-- | src/android/app/src/main/res/xml/locales_config.xml | 17 |
4 files changed, 5 insertions, 18 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index ac43d84b7..021b070e0 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts | |||
| @@ -47,6 +47,10 @@ android { | |||
| 47 | jniLibs.useLegacyPackaging = true | 47 | jniLibs.useLegacyPackaging = true |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | androidResources { | ||
| 51 | generateLocaleConfig = true | ||
| 52 | } | ||
| 53 | |||
| 50 | defaultConfig { | 54 | defaultConfig { |
| 51 | // TODO If this is ever modified, change application_id in strings.xml | 55 | // TODO If this is ever modified, change application_id in strings.xml |
| 52 | applicationId = "org.yuzu.yuzu_emu" | 56 | applicationId = "org.yuzu.yuzu_emu" |
diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml index a67351727..f10131b24 100644 --- a/src/android/app/src/main/AndroidManifest.xml +++ b/src/android/app/src/main/AndroidManifest.xml | |||
| @@ -26,7 +26,6 @@ SPDX-License-Identifier: GPL-3.0-or-later | |||
| 26 | android:supportsRtl="true" | 26 | android:supportsRtl="true" |
| 27 | android:isGame="true" | 27 | android:isGame="true" |
| 28 | android:appCategory="game" | 28 | android:appCategory="game" |
| 29 | android:localeConfig="@xml/locales_config" | ||
| 30 | android:banner="@drawable/tv_banner" | 29 | android:banner="@drawable/tv_banner" |
| 31 | android:fullBackupContent="@xml/data_extraction_rules" | 30 | android:fullBackupContent="@xml/data_extraction_rules" |
| 32 | android:dataExtractionRules="@xml/data_extraction_rules_api_31" | 31 | android:dataExtractionRules="@xml/data_extraction_rules_api_31" |
diff --git a/src/android/app/src/main/res/resources.properties b/src/android/app/src/main/res/resources.properties new file mode 100644 index 000000000..467b3efec --- /dev/null +++ b/src/android/app/src/main/res/resources.properties | |||
| @@ -0,0 +1 @@ | |||
| unqualifiedResLocale=en-US | |||
diff --git a/src/android/app/src/main/res/xml/locales_config.xml b/src/android/app/src/main/res/xml/locales_config.xml deleted file mode 100644 index 51b88d9dc..000000000 --- a/src/android/app/src/main/res/xml/locales_config.xml +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <locale-config xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | <locale android:name="en" /> <!-- English (default) --> | ||
| 4 | <locale android:name="de" /> <!-- German --> | ||
| 5 | <locale android:name="es" /> <!-- Spanish --> | ||
| 6 | <locale android:name="fr" /> <!-- French --> | ||
| 7 | <locale android:name="it" /> <!-- Italian --> | ||
| 8 | <locale android:name="ja" /> <!-- Japanese --> | ||
| 9 | <locale android:name="nb" /> <!-- Norwegian Bokmal --> | ||
| 10 | <locale android:name="pl" /> <!-- Polish --> | ||
| 11 | <locale android:name="pt-rBR" /> <!-- Portuguese (Brazil) --> | ||
| 12 | <locale android:name="pt-RPT" /> <!-- Portuguese (Portugal) --> | ||
| 13 | <locale android:name="ru" /> <!-- Russian --> | ||
| 14 | <locale android:name="uk" /> <!-- Ukranian --> | ||
| 15 | <locale android:name="zh-rCN" /> <!-- Chinese (China) --> | ||
| 16 | <locale android:name="zh-rTW" /> <!-- Chinese (Taiwan) --> | ||
| 17 | </locale-config> | ||