How we built Googly Player's 17-language picker so it works everywhere in the app
Endonyms, right-to-left layout, one locale call for the whole process, and the bundle setting that quietly turns a multilingual app English: the decisions behind Googly Player's language support.
Adding an in-app language picker to an Android app looks like a small job: a list of locales, a call to switch, a recreate. The failures arrive later, and they arrive quietly. A user picks Hindi and every screen stays in English, with no crash and nothing in the logs. An Arabic user sees a count stuck on the wrong side of its label. The screens switch language while the notification and the dialogs stay in whatever the phone was set to.
None of these shows up as an error, so none of them shows up in testing unless someone goes looking. If your app serves people in more than one language and lets them choose a language independently of their phone settings, these are the bugs you ship by default.
Googly Player, our media app for videos, music and photos, has a picker covering 17 languages, two of them right-to-left. This is what it does, and the specific engineering decisions that stop it failing in those quiet ways.
Key takeaways
- The language choice is independent of the system language and is applied process-wide through AppCompatDelegate.setApplicationLocales, so services, notifications and dialogs follow it, not just activities.
- On Android 13 and later the choice is handed to the platform and also appears under Settings › Apps › Googly Player › Language.
- Language splits are disabled in the App Bundle; with them on, Play delivers only system-language resources and the picker silently renders English.
- Counts go through format strings and plurals through plural resources, because concatenation breaks word order in Arabic and Urdu, and Arabic needs six plural forms and Russian four.
Seventeen languages, each listed under its own name
The picker covers English, Hindi (हिन्दी), Spanish (Español), Arabic (العربية), French (Français), Bengali (বাংলা), Portuguese (Português), Russian (Русский), Urdu (اردو), Indonesian (Bahasa Indonesia), German (Deutsch), Japanese (日本語), Turkish (Türkçe), Vietnamese (Tiếng Việt), Korean (한국어), Italian (Italiano) and Gujarati (ગુજરાતી).
Every entry leads with its endonym, the language's name for itself, written in its own script. The English name sits underneath as a secondary label. Someone scrolling for their own language scans for the word they would write themselves, so a Gujarati speaker finds ગુજરાતી rather than having to recognise the English word for it. The English line is still there for anyone who needs it.
The list is searchable, and a Suggested section is built from the device locale, so the likely choice is near the top before anyone types. Choosing here is entirely independent of the system language: a phone can stay in English while Googly Player runs in Bengali, or the other way round.
Right-to-left, down to the picker itself
Arabic and Urdu get full right-to-left support across the app. Layouts mirror, text runs in the right direction, and controls sit where a right-to-left reader expects them rather than where an English layout happened to put them.
That support reaches into the picker too. The list mixes scripts that run in opposite directions, and the Arabic and Urdu names are correctly anchored instead of being pushed to the same edge as their Latin-script neighbours. It is a detail that only becomes visible when someone who reads right to left opens the list, which is exactly the person the list exists for. Getting it wrong in the one screen where a user is choosing their language is a poor first impression of everything that follows.
One call that reaches services, notifications and dialogs
The selected language is applied process-wide through AppCompatDelegate.setApplicationLocales. That distinction matters because an app is more than its activities. A switch that only reaches activities leaves services, notifications and dialogs in whatever language the system happened to be using, and the user sees a half-translated app.
For a media player this is not an edge case. Googly Player plays in the background through a foreground service with the media-playback type, and on Android 13 and later it posts a media notification, which is often the part of the app on screen while music plays. Applying the locale to the whole process means that notification uses the language the user picked, and so do the dialogs.
On Android 13 and later, the platform holds the setting
From Android 13, Android has its own notion of a per-app language, and Googly Player hands the choice to the platform instead of keeping it privately. The selection then also appears under Settings › Apps › Googly Player › Language, next to every other app that supports the feature.
The practical effect is that there is one setting, reachable from two places. Someone who manages app languages from the system settings finds Googly Player there and can change it without opening the app; someone who changes it inside the app sees the same value reflected in Settings. Neither path can drift out of step with the other, because both read and write the same platform-held preference.
The App Bundle setting that silently turns everything English
This is the failure with no symptoms at all. When an app ships as an Android App Bundle, Play splits resources by language and, by default, delivers only the ones matching the device's system language. An in-app picker that offers Hindi on a phone set to English then has no Hindi strings installed. Android falls back to the default resources, everything renders in English, and there is no crash and nothing in the logs to say why.
We disable language splits in the bundle deliberately, so every translation ships in the base APK. Whatever someone picks, the strings are on the device. It costs a little install size and buys a picker that does what it says on every device Play delivers to, not only on the one a developer installed from their own machine.
Numbers go into format strings, never concatenation
Every count in the app is formatted rather than concatenated: the string resource is “Total Videos: %d”, not “Total Videos: ” with a number glued onto the end in code. Concatenation hard-codes English word order. In Arabic and Urdu that puts the number on the wrong side of its label, because the code decided the position before the translator ever saw the sentence.
A format string hands the whole sentence, placeholder included, to the translation. Each language puts the number where its own grammar and direction want it, and the code only supplies the value.
Plurals that a format string cannot express
Format strings fix word order, but not grammar. A single “%d videos” assumes a language has two forms, one and many. Arabic has six grammatical forms for a number and Russian has four, so no single format string can be correct across them. Googly Player uses proper plural resources, where each language supplies as many forms as its grammar needs and Android selects the right one for the number at runtime.
Together with formatted counts, this is what makes numbers read naturally in every one of the 17 languages, rather than correctly in English and approximately everywhere else.
What Googly Player runs on and what it asks for
The language work sits inside a broader app built on Material Design 3, with a neutral dark theme as its own design system and a single search field that scans videos, music and photos together, reached from the More tab. These are the platform specifics worth knowing before you install or evaluate it:
- Per-app language in system Settings: Android 13 and later.
- Material You dynamic colour from your wallpaper: Android 12 and later.
- Edge-to-edge layout with correct insets on Android 15 and later.
- Media access on Android 13+: READ_MEDIA_AUDIO, READ_MEDIA_IMAGES and READ_MEDIA_VIDEO; on Android 14+ READ_MEDIA_VISUAL_USER_SELECTED so a partial grant persists and the app can say “You've shared only some items” and offer “Allow all”.
- Older devices: READ_EXTERNAL_STORAGE, capped at API 32.
- Background playback: FOREGROUND_SERVICE, FOREGROUND_SERVICE_MEDIA_PLAYBACK and WAKE_LOCK, plus POST_NOTIFICATIONS for the media notification on Android 13+ and MODIFY_AUDIO_SETTINGS so the equalizer and booster effects work.
Every permission prompt is written in plain language and says “Nothing is uploaded — everything stays on this device.” If access to a section is denied, that section explains what to allow and offers a route into Settings when access is hard-blocked. The language picker needs no permission of its own, and because every translation ships in the base APK, nothing extra downloads when you switch.
Questions
Does Googly Player follow my phone's system language?
Only if you want it to. The in-app picker is independent of the system language, and its Suggested section uses your device locale to put the likely choice first.
Will the playback notification use the language I picked?
Yes. The language is applied process-wide through AppCompatDelegate.setApplicationLocales, which covers services, notifications and dialogs as well as the app's screens.
Why does an in-app language picker show English after installing from Play?
Usually because language splits are on in the App Bundle, so Play delivers only the system-language resources. Googly Player disables language splits so every translation ships in the base APK.
Can I change Googly Player's language from Android Settings?
On Android 13 and later, yes: it appears under Settings › Apps › Googly Player › Language, and it is the same setting as the in-app picker.
- #Android localization
- #Android plural resources
- #Googly Player
- #RTL Arabic Urdu
- #in-app language picker
- #setApplicationLocales



Comments