Fixed
Status Update
Comments
aa...@google.com <aa...@google.com>
di...@google.com <di...@google.com>
jl...@google.com <jl...@google.com> #2
We can remove the null
in the translation editor in Studio.
In newer Android versions the use this code to change the language:
AppCompatDelegate.setApplicationLocales(LocaleListCompat.forLanguageTags(locale))
jl...@google.com <jl...@google.com> #3
Fixed: null removed from the translation editor.
an...@google.com <an...@google.com> #4
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Meerkat | 2024.3.1 Canary 6
- Android Gradle Plugin 8.9.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
I added another language, Kissi, spoken in Guinea. This is not official supported by Android. (I want to add hundreds of languages that are not supported by Android in the future.) I created a local string resource file in this folder: kq-rGN
Android studio shows this language as null in the language editor.
Still I can change language in the app to Kissi and in Andoid 5.1.1 it finds the correct resource file, but in newer Android version it doesn't find the resource file. It might be because Android Studio says it is null?
STEPS TO REPRODUCE:
1. Create string resource in any language not official listed for Android
2. Make a language switcher in the app
3. Switch to that language
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
Screenshot of translation editor with the null - name title.
Screenshot of in app language switcher
Screenshot of result language in app after chosing Kissi language. Works in Android 5.1.1, not new os.
Screenshot of working Kissi language in Android 5.1.1 On newer version, it falls back to English.
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
Log file for running project where I change to Kissi language and the app show English as result.
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build: 2024.2.1 Patch 3
Version of Gradle Plugin: 8.7.3
Version of Gradle: 8.9
Version of Java: JetBrains Runtime 21.0.3
OS: Ubuntu 22.04.5 LTS