kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Upload Android UI strings to Crowdin and retire the borrow-from-Kolibri mechanism

Open rtibbles opened this issue 4 months ago • 3 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

The Android installer localizes its UI by matching English text against Kolibri's translations at build time (scripts/create_strings.py); android-unique strings match nothing and silently ship in English. Instead, upload Android's own UI strings to Crowdin and translate them the normal way, retiring the borrow mechanism.

Complexity: Medium Target branch: develop

Context

  • platforms/android/scripts/create_strings.py runs at build time (GenerateKolibriStringsTask in app/build.gradle): for each supported language it looks up the Kolibri translation of each English source phrase and writes values-<code>/strings.xml.
  • Strings with no verbatim match in Kolibri are dropped → English at runtime.
  • Android UI strings live in app/src/main/res/values/strings.xml (app_name/task_worker_process are translatable="false").
  • Localized values-*/ dirs are currently generated and gitignored.
  • Android uses the Android XML resource format, which Crowdin supports via a different scheme than the CSV/PO used for python_packages and desktop-app.

The Change

Wire values/strings.xml into the root crowdin.yml using Crowdin's Android-resource scheme, with downloaded translations landing in values-<code>/strings.xml.

Acceptance Criteria

  • [ ] All translatable Android UI strings (values/strings.xml minus translatable="false") upload to Crowdin.
  • [ ] Downloaded translations land in values-<code>/strings.xml, correctly encoded for Android XML.
  • [ ] The create_strings.py borrow-from-Kolibri path is removed.
  • [ ] No Android UI string ships English-only where a translation exists.

AI usage

Claude Code traced create_strings.py and identified the android-unique strings dropped to English. I set the direction and edited the issue.

rtibbles avatar Jul 23 '26 21:07 rtibbles

Watching for resolution on behalf of learningequality/kolibri#15075.

rtibblesbot avatar Jul 23 '26 23:07 rtibblesbot

Plan: Localize the Android installer UI by uploading its own strings to Crowdin and downloading translations into values-<code>/strings.xml, retiring the build-time "borrow from Kolibri's translations" mechanism.

  • [ ] Android locale-code mapping generator
  • [ ] Wire Android strings into crowdin.yml
  • [ ] Remove the borrow-from-Kolibri mechanism

@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly

How was this generated?
  • Implemented code following the pre-approved plan using test-driven development (red-green-refactor)
  • Ran the project's full test suite and linter before committing
  • For UI changes: captured live screenshots to verify rendering
  • For backend changes: verified with example API/CLI output

rtibblesbot avatar Jul 23 '26 23:07 rtibblesbot

The bot has been waiting for a response for 2 hour(s). It will resume automatically when someone replies.

rtibblesbot avatar Jul 24 '26 03:07 rtibblesbot