Skip to content

Move one screen's text into strings.xml #48

Description

@jsconu

The UI text is written inline in Compose. strings.xml holds about seven entries per app — basically the app name — so the apps can't be translated at all. That's a real barrier for a project meant for families anywhere.

What to do

Take one screen — kid/src/main/java/org/openscreentime/kid/ui/PairingScreen.kt is a good candidate, small and self-contained — and move its user-visible text into kid/src/main/res/values/strings.xml, using stringResource(R.string.…). Use names that describe the meaning (pairing_enter_code_hint), not the text itself.

Deliberately one screen

If this lands cleanly it becomes the pattern for the rest, and the follow-ups can be split among several people. Please don't do all of them in one pull request — it would be unreviewable and would conflict with everything.

Done when

The screen looks identical, no user-visible string is left inline in that file, and the names would make sense to a translator who can't see the app.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions