~/talk

Tricky Backwards-Compatible Localization

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android]
links:none on file
slides:none on file

Android 13’s per-language preferences backported to Android 12 via AppCompat 1.6 gets implemented by reading an XML language list, storing static sRequestedLanguages, creating a new Configuration and recreating activities through AppCompat’s static weak-ref delegate set; widgets stayed Spanish because they’re backend-driven and needed a fresh fetch. Surprising product stats: 280M installs, 20 languages, 50M monthly, Jamaica ~7% users. A language-code bug (Indonesian id vs in) required both backend and client fixes. A custom resource wrapper (PerTrackerResources) solves app-context and WebView crashes and the approach works.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 3:43Why localization matters
  3. 4:46Agenda and feature overview
  4. 5:07Android language resolution
  5. 8:51Integration steps explained
  6. 10:44Indonesian language code issue
  7. 14:28Android locale code conversion
  8. 17:42Implementing language config
  9. 19:30Testing on Android 13
  10. 20:22Testing on Android 11
  11. 21:26Investigating widget issue
  12. 23:20How app compat rewrites resources
  13. 25:31Updating configuration manually
  14. 28:47Applying new language list
  15. 30:54Recreating activities safely
  16. 32:22Text resolver approach benefits
  17. 34:13Quick fix attempt with app resources
  18. 36:00Final hack for web view
  19. 37:04Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.