Repository navigation
fix(i18n): translate Settings help as whole sentences instead of fragments - #28185
Conversation
Consolidates the Korean Settings corrections from the community audit (#27820) into one change. 514 catalog values are corrected: reversed meanings (session search privacy notice), literal machine glosses (Custom as 관습, gutter as 배수구, Open as 열려 있는), the terminal caret named after the Cursor app, and Latin terminal/agent/repo left inside Korean prose. Every value is pinned in the ko key overrides so a catalog repair cannot revert it. Co-authored-by: YEONGUK LEE <[email protected]>
Co-authored-by: YEONGUK LEE <[email protected]>
The four settings sentence rewrites left their old fragment keys in every catalog, kept alive only by tests asserting the new es/fr/ja/zh sentences equal the old fragments concatenated. Drop those tests and the 32 now-unreferenced keys from all catalogs and the Korean overrides. Co-authored-by: YEONGUK LEE <[email protected]>
…English Name the dictation modes with the same 토글/길게 누르기 labels as the mode buttons, drop the Git fast-forward clauses the English does not contain, and replace the leftover Latin "agent" in the setup-wait option. Co-authored-by: YEONGUK LEE <[email protected]>
… ja, and zh
The sentence rewrites were assembled from the old machine-translated
fragments, carrying over English plural "s" suffixes (ja/zh), broken
agreement and an inverted meaning (fr), ungrammatical clauses (es),
word-salad word order (ja/zh), and missing spaces before "when one exists".
Retranslate each from the English. Also name zh's Hold dictation mode 按住
instead of 抓住 ("grab") so the button matches its description.
Co-authored-by: YEONGUK LEE <[email protected]>
…to fix/settings-sentence-copy # Conflicts: # config/scripts/locale-ko-key-overrides.json # src/renderer/src/i18n/locales/ko.json
…-copy # Conflicts: # config/scripts/locale-ko-key-overrides.json # src/renderer/src/i18n/locales/ko.json
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to
|
|
@Jinwoo-H One line next to the toast this PR fixed is still English in every locale. Happy to send the PR if that is easier. |
main moved 144 commits, among them the maintainer's Korean pass (stablyai#28183) and the whole-sentence Settings help (stablyai#28185). The one conflict is locale-ko-key-overrides.json, where both sides appended entries at the end: main's 488 come first, then the 22 from this branch. No key is in both.
No call site reads the twelve noun-plus-ending keys any more, so they leave the six catalogs, as stablyai#28185 did for the keys it replaced. With them go the three Korean override entries for those keys and the one value ko-ui-semantic-mistranslations.test.ts pinned for the old sshImportSynced text; the sentence it guarded is now the sshImportSyncedSingular/Plural pair, covered by count-sentence-locales.test.ts. en-runtime-required.json is regenerated.
main moved 87 commits since the last refresh (a1f8e64 to 5e9489c), seven of them touching en.json. The Korean pass (stablyai#28183) and the whole-sentence Settings help (stablyai#28185) rewrote enough of the catalogs that all six conflicted, so the locale files and en-runtime-required.json are taken from main and the prune is recomputed against it: 1,477 keys in two passes (1,475, then the runCount plural pair stranded by the first), the same set as before. en.json goes from 15,845 entries to 14,368. en-runtime-required.json is regenerated at 544 of 14,368. technical-literal-catalog-values.test.ts also conflicted. It takes main's list minus the 24 entries whose keys are retired, 17 in all. The merge comes through the detector branch so the two stay in step.
…7974) * fix(i18n): select whole count sentences at twelve more call sites Twelve strings were a noun plus a plural ending passed as an interpolation value, so every non-English locale got a Latin "s" glued to its own noun whenever the count was not one. Each call site now chooses between two whole sentences with a single {{count}}, the same Singular/Plural pattern #27907 uses for three Settings strings. ja, ko and zh drop the stray ending. es and fr keep what they rendered for one and get grammatical plural sentences. The "commits ahead" tooltip in the compare summary takes the wording the catalogs already have for the identical sentence, because three translations treated the ending as an object. Legacy keys stay in the catalogs. Fixes #27973 * fix(i18n): name commits in Korean in the compare-summary tooltip The Korean pair for the "commits ahead" tooltip was copied from compareBaseCommitsAheadOne/Other, which keep the English "commit" and "commits". Both sentences now say 커밋 with the 개 counter, the form #27907 uses for its Korean count sentences, so the tooltip no longer carries an English plural. The locale test also requires ja, ko and zh to use one sentence for both counts. It fails on the previous Korean pair. * fix(i18n): take the Korean count sentences from the audit review Eleven of the twelve Korean pairs still put the number before the noun with no counter ("3 라벨"), the order left over from dropping the English plural ending. They now read noun, number, counter ("라벨 3개", "멤버 3명"), the wording abruption supplied in review of #27974. The "commits ahead" pair already had that form and is unchanged. Three sentences are also reworded to follow the English: a failed discard no longer says the files could not be deleted, the group toast says how many of the contained projects remained, and "restricted key" is spelled out as an API key with restricted access. The 22 values are recorded in locale-ko-key-overrides.json, next to the other reviewed Korean strings. * chore(i18n): credit the Korean count sentences to their reviewer The Korean wording applied in f6bbcaf was supplied by abruption as a patch in review of #27974 and went in byte for byte. That commit could not carry a co-author trailer, so this empty one does. Co-authored-by: YEONGUK LEE <[email protected]> * fix(i18n): drop the twelve keys the count sentences replaced No call site reads the twelve noun-plus-ending keys any more, so they leave the six catalogs, as #28185 did for the keys it replaced. With them go the three Korean override entries for those keys and the one value ko-ui-semantic-mistranslations.test.ts pinned for the old sshImportSynced text; the sentence it guarded is now the sshImportSyncedSingular/Plural pair, covered by count-sentence-locales.test.ts. en-runtime-required.json is regenerated. * fix(i18n): give remote drop uploads their own count keys; drop low-value tests - Remote terminal drop uploads used the runtime keys with a different fallback ('to remote…'); split them into uploadingFileToRemote{Singular,Plural} with translations in all catalogs. - Remove mock-translate tests and the catalog-pinning count-sentence test; verify:localization-* already enforces key and placeholder parity. - Trim the 'why whole sentences' comments. - Regenerate en-runtime-required.json. * fix(i18n): natural zh/ja count strings and es host-import wording --------- Co-authored-by: YEONGUK LEE <[email protected]> Co-authored-by: OrcaWin <[email protected]>
ELI5
Some Settings help texts are glued together from several translated pieces ("Synced 3 server" + "s"). Korean, Japanese and Chinese put words in a different order and have no plural "s", so the glued result reads wrong (for example サーバーs, 服务器s). This PR makes each of those texts one complete sentence that translators can write naturally.
What Changed
Stacked on #28183 (Korean Settings translations); both touch the Korean overrides file.
Why
Concatenated fragments cannot be translated correctly for languages with different word order or no plural suffix; one message per sentence is the repo's existing pattern. Done as our own PR (credited) rather than four review round-trips.
Linked Issue
Fixes #27900
Fixes #27906
Fixes #27908
Fixes #27912
Fixes #27820
Supersedes #27901 #27907 #27909 #27913.
Visual Proof
N/A: copy only; the components render the same elements with one message instead of several adjacent ones.
Testing
pnpm tc:web,pnpm run check:code-quality:changed,pnpm formatpass.pnpm test config/scripts/locale src/renderer/src/i18n config/scripts/verify-localization src/renderer/src/components/settings: 268 files, 1862 tests pass.verify-localization-catalog,verify:localization-catalogs,verify-localization-extraction, runtime-required English catalog check andaudit-localization-coverage --checkpass.rgfinds no reference to any deleted key.Notes
Platform, SSH, mobile and compatibility: renderer copy only. Older paired clients are unaffected (catalogs ship with each client).