Skip to content

#886 Localisation: one wording on both platforms, count grammar - #960

Closed
ivanfenenko wants to merge 2 commits into
feature/886-l10n-componentsfrom
feature/886-l10n-wording
Closed

ivanfenenko wants to merge 2 commits into
feature/886-l10n-componentsfrom
feature/886-l10n-wording

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Stage 2 follow-up for #886 (Localisation): every shared key now says the same thing on Android and iOS, both apps use one key where they used two for the same text, and count strings use correct singular forms. Part of an unmerged stack (base feature/886-l10n-settings, #957). Not compiled yet; verification happens once for the whole stack.

Only existing keys, their values and their call sites change. No new keys.

One wording per key

Every row can be overridden by changing one value per platform.

Key Android before iOS before Chosen wording
feedback.send Send Send report Send report
feedback.sending Sending Sending report Sending report
home.fork_result.message “X” is ready. Forked as “X”. “X” is ready. (the title already says "Session forked")
home.fork_result.stay Stay here Stay Stay here
session_chat.fork_result.message_ready / message_forked_as “X” is ready. Forked as “X”. “X” is ready. (message_ready on both)
session_chat.fork_result.stay_here / stay Stay here Stay Stay here (stay_here on both)
settings.app_lock.subtitle_available Require your fingerprint, face or device PIN when the app returns from the background Require Face ID, Touch ID or your passcode when the app returns from the background Require your face, fingerprint or device passcode when the app returns from the background
settings.app_lock.subtitle_unavailable Set a screen lock on this device to use App Lock Set a device passcode to use App Lock Set a device passcode to use App Lock
file_viewer.loading / file_viewer.opening Opening file Loading file Loading file (matches the app's other "Loading …" states)
file_viewer.loading_image / file_viewer.opening_image Opening image Loading image Loading image
files.more_options / file_viewer.options File options (viewer) More options More options (files.more_options on both, as on every other overflow button)
files.error.check_server_connection / check_connection Check the connection to the server and try again. Check the connection and try again. Check the connection to the server and try again.
session_chat.activity.collapsed.* (collapsed activity pill, spoken label) Request failed, 3 activities. Hide activity / Review permission request. Show activity Hide 3 activities / Show 2 activities. Review permission request (one item: the item's own label and tap action) Request failed. Hide 3 activities / Review permission request. Show 1 activity
feedback.hide_parts.image_hidden / image_label (screenshot spoken label) Screenshot. Tap an area to cover it. Screenshot, N areas hidden Screenshot, N areas hidden (the instruction is already on screen)
feedback.log_preview.empty_message / empty No log lines in this window. Nothing was logged in the last N minutes. Nothing was logged in the last N minutes.
terminal.error.fallback The terminal didn't open. (none) Deleted: Android never passed an empty message, so the fallback never showed.

The collapsed activity pill opens or closes the stack on both platforms, so the spoken label is now the primary item's state followed by "Show/Hide N activities". iOS used to read the primary's own tap action (for example "Open") when only one item was collapsed, which is not what a tap does there.

Count grammar

  • one forms fixed on both platforms: "1 match", "1 file", "1 line" (tool result sheet), "1 redacted line in the kept window", "Last 1 minute", "Last 1 minute · gzipped on upload…", "Nothing was logged in the last 1 minute.", "Screenshot, 1 area hidden".
  • Turned into plurals (count is the only argument):
    • session_chat.activity.collapsed.show_count / hide_count: "Show/Hide 1 activity". show_count no longer carries the label; it is joined with the existing session_chat.activity.status_action pattern, so no catalog plural has two arguments.
    • add_project.truncation_hint ("Showing the first N folders…") and worktree.name_long ("Use at most N characters"). English never shows 1 here, but translations need the plural forms.

Keys deleted (unused on both platforms)

session_chat.fork_result.message_forked_as, session_chat.fork_result.stay, file_viewer.options, file_viewer.opening, file_viewer.opening_image, files.error.check_connection, terminal.error.fallback, session_chat.activity.collapsed.show_activity, …hide_activity, …count_show_activity, …count_hide_activity, feedback.hide_parts.image_label, feedback.log_preview.empty.

Checks

  • node scripts/check-string-keys.mjs: pass (708 shared keys).
  • xmllint --noout on strings.xml and python3 -m json.tool on the catalog: pass. The catalog is written in Xcode's format (a load/dump round trip of the unchanged file was byte-identical).
  • xcrun swiftc -parse on every changed Swift file: pass.
  • A throwaway script confirmed that no shared key has different English on the two platforms (apart from \n escaping), and that every Android R.string / R.plurals reference matches an existing resource of that type.
  • Not built and no tests run (no Gradle, xcodebuild, simulator or emulator).
  • Tests updated:
    • Android SessionChatPillSlotsTest: new collapsed pill labels.
    • Android SettingsTextTest: new singular cases for "Last 1 minute" and "1 redacted line".
    • iOS SessionChatPillSlotsTests: new collapsed pill labels plus a one-item case.
    • iOS SettingsTextTests: "Last 1 minute".
    • Existing English assertions for the truncation hint and worktree name limit are unchanged and still hold.

Evidence

Verified once for the whole stack. Changes are wording and accessibility labels.

Issue

#886

Risks / Follow-ups

  • Not compiled. Spots to watch at integration:
    • Android UiText.plural for worktree_name_long and add_project_truncation_hint (were UiText.resource; the R.string → R.plurals move breaks any reference I missed).
    • Android FeedbackSheet hide-parts label and empty log preview now call pluralStringResource.
    • iOS collapsedAccessibilityLabel now calls the private status(_:) and composes through session_chat.activity.status_action.
    • iOS catalog plurals for show_count, hide_count, truncation_hint and name_long (were plain strings).
  • App Lock wording is the choice most worth a second look: one string now covers Face ID / Touch ID and Android face / fingerprint / PIN.
  • Still one-platform on purpose, because the screens differ rather than the wording:
    • Feedback attachment chips: Android puts "Screenshot · N hidden" in the file name, while iOS shows "Screenshot" plus a detail line ("N hidden", "Tap to hide parts", "Tap to preview"). Aligning them is a layout change.
    • Android-only error fallbacks for a missing error message (home.session_error.generic, worktree.unknown_error, add_project.error.add_failed, home.error.load_projects, session_chat.fork_dialog.error_failed): iOS always has localizedDescription.
    • iOS-only accessibility text (refreshing states, message action hints, Activity sheet) and Android-only clipboard or Share-sheet labels.
  • Design-system text left alone: iOS OpenCodeFloatingPill still builds "N activities" / "Activity" in code.
  • gitleaks is not installed locally; the Secret Scan workflow covers it.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@ivanfenenko
ivanfenenko force-pushed the feature/886-l10n-wording branch from 0845966 to b0ea189 Compare November 2, 2026 23:16
@ivanfenenko
ivanfenenko changed the base branch from feature/886-l10n-settings to feature/886-l10n-components November 2, 2026 23:16
@ivanfenenko ivanfenenko mentioned this pull request Nov 3, 2026
14 tasks done
@ivanfenenko
ivanfenenko marked this pull request as ready for review November 3, 2026 15:59
@ivanfenenko ivanfenenko mentioned this pull request Nov 3, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.086 · 1 pass(es) stopped early

@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Superseded by #975, which combines the whole #886 localisation stack into one pull request against main. Review and merge happen there.

@ivanfenenko ivanfenenko closed this Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant