Repository navigation
fix(i18n): show Hindi search match counts in argument order - #132176
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 7:47 PM ET / 23:47 UTC. ClawSweeper reviewWhat this changesThe PR replaces the Hindi search-count wording in the canonical native inventory and synchronized iOS/macOS localization catalogs with explicit match and total labels. Merge readinessThe resource edits are internally consistent, but the reported argument-order defect is not present: the existing Hindi value already expresses the first value “out of” the second. Keep this maintainer-owned PR open for a wording decision rather than treating it as an established bug fix. Priority: P3 Review scores
Verification
How this fits togetherThe macOS conversation search view passes the selected match position followed by the total number of matches to a localized format string. The native Hindi inventory supplies that resource to the generated iOS and macOS Apple catalogs. flowchart LR
A[Search result position] --> B[Conversation search view]
B --> C[Localized count format]
D[Hindi native inventory] --> E[Apple resource catalogs]
E --> C
C --> F[Hindi match counter]
Decision needed
Why: Source shows no formatter mismatch; choosing between two valid localized phrasings is a product and language-quality decision, not a mechanical bug repair. Before merge
Agent review detailsSecurityNone. PR surfaceOther 0. Total 0 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Either retain the existing idiomatic current-out-of-total phrase, or explicitly approve the labeled phrasing as a Hindi copy improvement and describe it that way rather than as an argument-order repair. Do we have a high-confidence way to reproduce the issue? No: source inspection shows the caller supplies current match then total, and current main’s Hindi phrase uses that same order. The reported reversal cannot be reproduced from the current implementation. Is this the best way to solve the issue? No as a bug fix: the current translation already matches the arguments. The replacement can still be accepted as a deliberate copy preference, but that requires a maintainer language/product choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4432c568ae33. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Label the current match before the total count, matching the existing Swift format arguments. Regenerate only the Hindi entries in the canonical Apple catalogs; keep all other translations and the source inventory unchanged.
d63ff97 to
3b9c075
Compare
|
Land-ready proof for exact head The correction names the current match and total explicitly in the canonical Hindi inventory and its iOS/macOS catalog projections. The shared Swift owner passes current index + 1 then total as Int64. Existing catalog builders preserve translated units, so all three values must change together. Exactly three JSON leaves change; every surrounding value is preserved. Resources +3/-3 (net 0), executable runtime/tests 0. Swapping shared arguments or adding a locale-specific formatter would change the wrong owner. Retained exact-head proof (completed before this final continuation): strict native/Android/Apple parity passed; all 29 existing i18n tests passed; canonical serializers/diffcheck and both macOS resource compiles passed. The identical Foundation probe (SHA256 Exact retained commands ( node --import ./scripts/tsx.mjs scripts/native-app-i18n.ts check
OPENCLAW_VITEST_MAX_WORKERS=4 node scripts/run-vitest.mjs test/scripts/native-app-i18n.test.ts test/scripts/apple-app-i18n.test.ts
node --import ./scripts/tsx.mjs "$PROOF/before-tree/scripts/apple-app-i18n.ts" compile-macos --output "$PROOF/before-resources"
node --import ./scripts/tsx.mjs scripts/apple-app-i18n.ts compile-macos --output "$PROOF/candidate-resources"
swift "$PROOF/hindi-format-probe.swift" "$PROOF/before-resources/hi.lproj/Localizable.strings"
swift "$PROOF/hindi-format-probe.swift" "$PROOF/candidate-resources/hi.lproj/Localizable.strings"
node --import ./scripts/tsx.mjs "$PROOF/format-resources.mts"
git diff --check 4f92bd5064f11c0271e703fbffd52390cadf2307...HEADPrior managed Codex P0 review is reused at its actual head Fresh read confirms CI 33281571399/a1 COMPLETED SUCCESS on exact H, including macos-swift 99177591227, native-i18n 99177591206, and required ci-gate 99180799139. No dispatch or CI rerun. The historical failed Swift run and two resolved prerequisites remain documented in the PR body. The latest ClawSweeper review is fresh on H with no mechanical findings. Every actionable item/rank-up move is accounted for: the sourced wording disposition keeps explicit labels, and exact-head macOS CI is green. No native-speaker signoff or successful full-page Cambridge fetch is claimed. No redundant re-review request. Native UI remains UNEXECUTED. A named profile still opens installation-wide PortGuardian/chat stores. The available stopped macOS VM has sharing enabled and exclusive clean baseline ownership is unestablished. Matching signing identity exists. The coordinating maintainer accepts this documented concrete-infeasibility exception for the bounded resource correction; it does not turn compiler output into UI proof or waive UI requirements generally. No app/VM/signing/operator-state action or screenshot/upload occurred. Native review artifacts now record the final decision and retained passing evidence; |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Addressing the wording premise in the latest review: I’m retaining the explicit match/total labels. The review reads
This resolves the wording decision without changing head |
|
Merged via squash.
|
…#132176) Label the current match before the total count, matching the existing Swift format arguments. Regenerate only the Hindi entries in the canonical Apple catalogs; keep all other translations and the source inventory unchanged.
What Problem This Solves
Hindi-speaking users searching a conversation see the current match and total described in the wrong reading order. The existing Swift caller supplies the current match first and the total second, while the old Hindi wording expects total followed by current.
Why This Change Was Made
Use explicit match/total labels:
मिलान %lld, कुल %lld. Preserve the existing argument order and both%lldplaceholders in the canonical Hindi inventory and synchronized iOS/macOS catalogs. The shared search modifier is macOS-only; both Apple catalogs intentionally include shared chat sources. No Swift, generator, dependency, configuration, schema, or locale-policy changes. AI-assisted.The existing single commit is now
3b9c0751824a60f59bd7f69434aee511cd425710, directly on the landed canonical locale prerequisite4f92bd5064f11c0271e703fbffd52390cadf2307. Recursive JSON comparison confirms exactly three changed leaves and no added/deleted keys. Every other landed value is retained. Product resources: +3/-3 (net 0); runtime: 0; tests: 0.User Impact
The first, second, and third matches among three read
मिलान 1, कुल 3,मिलान 2, कुल 3, andमिलान 3, कुल 3. The formatter still receives current index before total.Evidence
Retained local proof executed on
3b9c0751824a60f59bd7f69434aee511cd425710and verified at 2026-08-29 23:38:50 UTC, with sources frozen before checks/builds. These checks were not rerun during the final native landing continuation:native:i18n:checkpassed, including Android and Apple derived parity: 21 locale artifacts, 4,331 source entries, 1,658 Android app keys, 1,653 iOS keys, 1,363 macOS keys, 84 InfoPlist files, and zero Apple translation contradictions. The checker reports 5,489 nonblocking quality advisories; these were not suppressed or repaired here.4f92bd5064f11c0271e703fbffd52390cadf2307; the candidate uses the frozen new head. Among 43 compiled files per tree, onlyhi.lproj/Localizable.stringsdiffers.1 में से 3,2 में से 3,3 में से 3; candidate passed all three (exit 0), producing the expected explicitly labeled strings above. This is compiled-resource console proof, not native UI proof.git diff --checkpassed. Used Node 26.8.1; pnpm 12.0.0, tsx 4.23.12, Vitest 4.1.11, and oxfmt 0.60.0 match their package pins; no install, lockfile change, or dependency edit was needed. Canonical serializers own these generated files, which oxfmt excludes.Commands (
PROOFdenotes the task-local proof artifact directory;before-treecontains immutable compiler inputs, not another checkout):The prior managed Codex P0 review ran on
457cb8cb284323b178333c1e2f95e56caa177f48againstcc374dff6ba3cb553e08f2d2deb78176e7277fcf, completing at 2026-08-29 22:50:02 UTC with exit 0 and no findings. Its semantic three-value delta and relevant owner/caller/compiler/test blobs remain identical after this rebase. That review is reused with its original identity; no new-head review execution is claimed. Its scope does not waive hosted CI or native UI proof.Historical failures and resolved prerequisites
The original head
d63ff974f0e576d3c7acaabf9ff1ffdcdd30949bhad a passing strict resource check and 29 passing tests, but CI 33218036081, attempt 1 failed macos-swift job 99006166917 in “dedupes gateway echo of local user message” atChatViewModelTests.swift:6547. Incomplete bootstrap synchronization could allow assertions before history application; the log does not establish the precise scheduling interleaving.The canonical shared-chat fixture repair, #131466, landed as
dd4528b6393e7d00063067a080ca7241b48ce475and is an ancestor of this base. It usesloadAndWaitBootstrapin the affected test and eight related fixtures. Its relevant fixture blob is retained unchanged. The earlier coordination comment is historical; this PR does not duplicate or take over that repair.The first refresh at
457cb8cb284323b178333c1e2f95e56caa177f48passed 29 tests and the three-case Foundation red/green probe, but publication correctly stopped because strict validation found the same inherited 23 missing and three stale IDs in all 21 locales on both base and candidate. That failure was not waived.The canonical locale refresh #132875 landed at
4f92bd5064f11c0271e703fbffd52390cadf2307on 2026-08-29 at 23:27:49 UTC. Its CI 33280162081, attempt 1 succeeded for sourcefa3e1571302da22774418d15aa80ccbb60f7aee2. All 46 changed landed files match that source; all 21 locales now contain the 23 missing IDs and omit the three stale IDs. This second, prerequisite-driven rebase uses that exact landed merge, with no further main chase or locale generation. Strict parity now passes on the Hindi candidate itself.Remaining proof gap
Native before/after UI proof remains unexecuted and owned by the coordinating maintainer. A real named-profile app still opens installation-wide PortGuardian and chat databases, so it does not isolate operator state. The available stopped macOS VM still has clipboard, cloud, app, and SmartMount sharing enabled; exclusive ownership and a clean baseline have not been established. No app build/sign/launch, VM start/configuration, screenshot, or upload was performed for this refresh. This is an isolation gap, not a claim that a signing certificate is unavailable.
Final landing decision and current CI
CI 33281571399, attempt 1 completed SUCCESS for exact head
3b9c0751824a60f59bd7f69434aee511cd425710. Fresh verification confirms macos-swift 99177591227, native-i18n 99177591206, and required openclaw/ci-gate 99180799139 all succeeded. No CI dispatch or test rerun was needed. Observer command retries in the completed watcher are not test reruns.The current exact-head ClawSweeper review, completed 2026-08-29 23:47:14 UTC, has no mechanical findings. Its wording decision is resolved in the sourced maintainer disposition: retain the explicit labels because the unchanged call supplies current then total, while the cited Hindi partitive example puts the total first. This is source/dictionary-supported reasoning, not native-speaker signoff; the direct Cambridge page fetch returned 403. Its macOS CI rank-up is now satisfied. No redundant re-review is requested for this unchanged source.
The coordinating maintainer explicitly accepts the repository's documented concrete-UI-infeasibility exception for this three-value resource correction. Native UI remains UNEXECUTED for the isolation reasons above. Matching signing identity exists. No running-app layout/interaction proof or screenshots are claimed; the Foundation probe is not UI evidence, and this decision is not a blanket UI waiver.
The final source inspection reconfirms exactly three leaves, both format tokens intact, resources +3/-3 (net 0), runtime/tests 0. Current main retains the old values; owner/caller/compiler/test context remains unchanged. An unrelated main update only extends Git-owner CI routing to workflow-sanity, leaving native-i18n selection intact. The existing native review artifacts were refreshed and validated through
scripts/pr review-validate-artifacts 132176, with the retained passing tests and their original execution identities explicitly recorded. NormalOPENCLAW_TESTBOX=1 scripts/pr prepare-run 132176andscripts/pr merge-run 132176remain responsible for final admission and the actual landing receipt.