Repository navigation
fix(i18n): use one zh punctuation, address and quote style - #50432
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@nwparker Thank you for pushing the quote decision to this branch yourself: “ ” everywhere, command and JSON literals and the iOS strings left alone, and the CLI tip fragments left to #50431. That is the right call, and it made this PR much simpler. I merged the latest Whenever you have a moment, could you merge this one as well? Together with #50430 it finishes the Simplified Chinese pass: the missing strings are filled in, the misread ones are corrected, and the punctuation, 你 and quotes follow one style. That is a real milestone for the Chinese UI. Thank you again for your time and help! |
699ea74 to
5987e55
Compare
Simplified Chinese mixed sentence-final 。 with bare endings, 您 with 你, and ASCII quotes with “ ”. Apply the catalog's dominant style across the desktop and phone zh catalogs: drop the sentence-final 。, use 你, convert remaining ASCII quotes to “ ”, and join the short Voice settings sentences with ,. The zh values in the locale override scripts follow the same style so a catalog sync keeps it. Wording is unchanged; zh-Hant is untouched. Refs stablyai#32207 Co-authored-by: Neil <[email protected]>
5987e55 to
47a5d0b
Compare
Per-key merge of both zh catalogs: the strings the missing-strings PR added sit next to this branch's restyled lines, and neither set overlaps the other.
|
@nwparker Thank you for merging #50430. Once it landed, this PR conflicted in the two zh catalogs, so I merged the latest Whenever you have a moment, could you merge this one too? It is the last piece of the zh pass: with it the punctuation, 你 and “ ” quotes follow one style across the desktop and phone catalogs. I know you are busy, so there is no rush. Thank you again for all your help! |
Per-key merge of the phone zh catalog: main removed 244 phone strings and added 138 English ones next to this branch's restyled lines. 7 of this branch's restyled values belonged to keys main deleted and go with them; the other 311 are unchanged.
ELI5
Simplified Chinese in Orca used two styles at once. Some lines ended with 。 and some didn't. Some said 您 and some said 你. Some quotes were plain " and some were “ ”. This PR picks the style most of the catalog already uses and applies it everywhere. No wording changes, only punctuation and the form of address.
What Changed
Before, one screen could show 速度快。仅支持英语,英语最准确。 right next to 速度快,仅支持英语. After, the zh catalogs follow one style.
"quotes become “ ”config/scripts/locale-catalog/*-overrides.mjsuse the same styleHow it works: it only edits values in
src/renderer/src/i18n/locales/zh.jsonandmobile/src/i18n/locales/zh.json. The same zh values are also changed in the override scripts, so runningsync:localization-catalogkeeps the new style and doesn't put the old one back.Exceptions
settings.notificationDisplayTest.{unsupportedHost,noToken,registrationPending}.main.zh-Hantis untouched, since Traditional Chinese has its own style.Examples
Why
Linked Issue
Refs #32207 (localization; this is one part of it, the zh style pass). Follows #43011 and #50431.
Visual Proof
Simplified Chinese, rendered through component fixtures (headless Chrome, zh-CN, light, 2x). Left is
main, right is this change.The quote conversions have no screenshots because no component fixture reaches them. The Examples table above shows the catalog values instead.
Testing
Squashed onto current
main(f7eb7be). The changed lines match the reviewed patch exactly, and the same 5 files are touched.Passed:
verify:localization-catalogs,verify:localization-catalog,verify:localization-protected-copy,verify:mobile-localization(zh desktop 24652/25091 translated, zh mobile 6657/6957, no key or placeholder errors).Static gates on the changed
.mjsfiles: anti-slop oxlint, code-quality oxlint, ast-grep, and the changed-code quality gate all pass.oxfmt --checkpasses on all 5 files.The zh values were reviewed by a native-speaker localizer pass. Checked on macOS (fixture renders) and with the mobile localization verifier. No platform-specific code is involved.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
No new tests: only catalog values change, and the localization verifiers already check keys, placeholders and coverage.
Performance
None, because only catalog strings change. Nothing new runs at startup, on a timer, or on disk/IPC. Catalog sizes go down slightly: desktop zh.json 1,586,086 → 1,584,204 bytes, mobile zh.json 391,719 → 390,894 bytes.
Risk
Level: Low
Agent skill upstream boundary
Notes
Original fix by @x-Ai in #50432. Authorship is kept on the squashed commit.