Skip to content

i18n(android): add zh-CN localization with Chinese strings.xml and st… - #96319

Closed
158246525 wants to merge 1 commit into
openclaw:mainfrom
158246525:i18n/android-zh-cn-ui
Closed

158246525 wants to merge 1 commit into
openclaw:mainfrom
158246525:i18n/android-zh-cn-ui

Conversation

@158246525

Copy link
Copy Markdown

…ringResource migration

  • Created values-zh-rCN/strings.xml with 220+ Chinese translations for all Android UI screens
  • Migrated ConnectTabScreen.kt from hardcoded English strings to stringResource() calls
  • Provides a complete i18n blueprint for the Android app
  • Follows Android resource directory conventions (values-zh-rCN)
  • Enables future translations by separating strings from code

This is the first step toward full zh-CN localization of the Android client, addressing the coverage gap noted in #88570 for the mobile app.

What Problem This Solves

Why This Change Was Made

User Impact

Evidence

…ringResource migration

- Created values-zh-rCN/strings.xml with 220+ Chinese translations for all Android UI screens
- Migrated ConnectTabScreen.kt from hardcoded English strings to stringResource() calls
- Provides a complete i18n blueprint for the Android app
- Follows Android resource directory conventions (values-zh-rCN)
- Enables future translations by separating strings from code

This is the first step toward full zh-CN localization of the Android client,
addressing the coverage gap noted in openclaw#88570 for the mobile app.
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android size: M triage: blank-template Candidate: PR template appears mostly untouched. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 24, 2026
@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Close this PR as superseded: the remaining zh-CN/localization work is already tracked by the open canonical localization issue, while this branch is not a safe landing candidate because it fails Android compilation and lacks real behavior proof.

Root-cause cluster
Relationship: superseded
Canonical: #88570
Summary: This PR is a partial Android zh-CN localization attempt for the broader localization coverage problem already tracked by the canonical open issue, and it is not a safe landing candidate because it fails Android compilation.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Canonical path: Close this branch and keep Android localization on the canonical maintainer-sponsored path that adds default English resources, locale-matrix coverage checks, and Android build or emulator proof.

So I’m closing this here because the remaining work is already tracked in the canonical issue.

Review details

Best possible solution:

Close this branch and keep Android localization on the canonical maintainer-sponsored path that adds default English resources, locale-matrix coverage checks, and Android build or emulator proof.

Do we have a high-confidence way to reproduce the issue?

Yes for the PR blocker: live CI failed :app:compilePlayDebugKotlin on the new R.string references, and source inspection shows the branch did not add those keys to default values/strings.xml. I did not run a local Android build in this read-only review.

Is this the best way to solve the issue?

No. A standalone zh-CN-only Connect tab migration is not the best solution; Android localization needs the maintainer-scoped i18n path with default resources, matrix checks, and device or emulator proof.

Security review:

Security review cleared: The diff only changes Android Kotlin UI string calls and XML resources; no dependencies, secrets, permissions, downloads, or supply-chain surfaces were added.

AGENTS.md: found and applied where relevant.

What I checked:

  • Repository policy read: Root AGENTS.md was read fully; its deep PR review, protected-label, product-direction, and evidence requirements apply to this Android user-visible PR. (AGENTS.md:1, d1b917120a47)
  • PR introduces unresolved Android resource references: At the PR head, ConnectTabScreen.kt starts using R.string.trust_this_gateway and many other new resource IDs from runtime Compose UI. (apps/android/app/src/main/java/ai/openclaw/app/ui/ConnectTabScreen.kt:105, 70065a0a9f86)
  • Default Android resources were not extended: The PR head still has only app_name in default values/strings.xml, so the new R.string.* IDs are not generated for the Android build. (apps/android/app/src/main/res/values/strings.xml:1, 70065a0a9f86)
  • CI compile failure: Live PR CI failed :app:compilePlayDebugKotlin with unresolved references including trust_this_gateway, gateway_connection, advanced_controls, and advanced_controls_desc in ConnectTabScreen.kt. (apps/android/app/src/main/java/ai/openclaw/app/ui/ConnectTabScreen.kt:105, 70065a0a9f86)
  • Canonical remaining work: The PR body cites the open broad zh-CN localization coverage issue, which remains open and is already labeled for maintainer/product review.
  • Prior i18n policy context: The earlier canonical i18n discussion says standalone translation PRs should be closed until maintainers are ready, and a MEMBER follow-up closed it during platform/docs architecture changes.

Likely related people:

  • obviyus: GitHub path history shows repeated Android gateway/connect commits, including the Connect tab redesign and many pairing/setup fixes around the strings this PR changes. (role: major Android Connect tab contributor; confidence: high; commits: beff0cf02c6c, 1f899f8442af, 6090afa0e5f0; files: apps/android/app/src/main/java/ai/openclaw/app/ui/ConnectTabScreen.kt)
  • joshavant: Recent GitHub path history shows paired Android gateway reliability fixes in the same Connect tab surface shortly before this PR. (role: recent Android gateway pairing contributor; confidence: medium; commits: 81f4fe6c113b, a2455fcc09ef; files: apps/android/app/src/main/java/ai/openclaw/app/ui/ConnectTabScreen.kt, apps/android/app/src/main/java/ai/openclaw/app/ui/OnboardingFlow.kt)
  • steipete: GitHub history shows the original Compose Android app and default resource file were introduced through this account’s commits. (role: original Android app/resource contributor; confidence: medium; commits: b2378c01ea7d, 9a7160786a7d; files: apps/android/app/src/main/res/values/strings.xml, apps/android/app/src/main/java/ai/openclaw/app/ui/ConnectTabScreen.kt)
  • vincentkoc: The active maintainer-authored Android native locale-matrix PR and supporting i18n scripts are authored here, making this the closest follow-up route for the localization direction. (role: active Android i18n stack contributor; confidence: medium; commits: b7c0b820275f, 15cae07699b8; files: scripts/android-app-i18n.ts, apps/android/app/src/main/res/values/strings.xml, apps/android/app/src/main/java/ai/openclaw/app/ui/ConnectTabScreen.kt)

Codex review notes: model internal, reasoning high; reviewed against d1b917120a47.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jun 24, 2026
@clawsweeper

clawsweeper Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

@clawsweeper clawsweeper Bot closed this Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: blank-template Candidate: PR template appears mostly untouched. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant