diff options
| author | 2023-06-13 19:59:25 +0200 | |
|---|---|---|
| committer | 2023-06-13 20:26:45 +0200 | |
| commit | 00fe302e60f36d19d92f320f20fe1391d01f690f (patch) | |
| tree | a19fa0f1905f53b0bf6076f0d11788f976e70ad7 /src | |
| parent | codespell: Exclude android resources directory (diff) | |
| download | yuzu-00fe302e60f36d19d92f320f20fe1391d01f690f.tar.gz yuzu-00fe302e60f36d19d92f320f20fe1391d01f690f.tar.xz yuzu-00fe302e60f36d19d92f320f20fe1391d01f690f.zip | |
android: Declare languages in locales_config.xml
This is required to make per-app language swithcing possible on Android 13.
Diffstat (limited to 'src')
| -rw-r--r-- | src/android/app/src/main/AndroidManifest.xml | 1 | ||||
| -rw-r--r-- | src/android/app/src/main/res/xml/locales_config.xml | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml index 1e92098ec..55f62b4b9 100644 --- a/src/android/app/src/main/AndroidManifest.xml +++ b/src/android/app/src/main/AndroidManifest.xml | |||
| @@ -24,6 +24,7 @@ SPDX-License-Identifier: GPL-3.0-or-later | |||
| 24 | android:hasFragileUserData="true" | 24 | android:hasFragileUserData="true" |
| 25 | android:supportsRtl="true" | 25 | android:supportsRtl="true" |
| 26 | android:isGame="true" | 26 | android:isGame="true" |
| 27 | android:localeConfig="@xml/locales_config" | ||
| 27 | android:banner="@drawable/tv_banner" | 28 | android:banner="@drawable/tv_banner" |
| 28 | android:extractNativeLibs="true" | 29 | android:extractNativeLibs="true" |
| 29 | android:fullBackupContent="@xml/data_extraction_rules" | 30 | android:fullBackupContent="@xml/data_extraction_rules" |
diff --git a/src/android/app/src/main/res/xml/locales_config.xml b/src/android/app/src/main/res/xml/locales_config.xml new file mode 100644 index 000000000..51b88d9dc --- /dev/null +++ b/src/android/app/src/main/res/xml/locales_config.xml | |||
| @@ -0,0 +1,17 @@ | |||
| 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> | ||