Skip to content

i18n: Traditional Chinese has a row for 1,813 of the messages the untranslated report lists - #7352

Merged
bflatastic merged 2 commits into
storytold:mainfrom
dotCooCoo:fix/zh-hant-message-rows
Nov 14, 2026
Merged

bflatastic merged 2 commits into
storytold:mainfrom
dotCooCoo:fix/zh-hant-message-rows

Conversation

@dotCooCoo

Copy link
Copy Markdown
Contributor

What and why

The Traditional Chinese catalog had no row for 1,852 of the status and error messages that i18n::tests::untranslated_report finds in the sources. A message without a row is shown in English, so the status bar showed those messages in English in a Traditional Chinese interface.

This pull request changes only the Traditional Chinese @msg rows. The counts of menu strings (50), tl! strings (25), undo labels (11) and swatch names (45) that Traditional Chinese still lacks are unchanged, and no other language's catalog is edited.

Three of the 1,813 rows are in the file and are counted by the report, but do not yet put their message into Traditional Chinese:

  • Template::parse in crates/ui-egui/src/i18n/catalog.rs returns None for a message with two placeholders in a row, so the catalog does not load the rows for unknown parameter `{within}{key}`; {why} and {name} must be {lo}–{hi}{unit} (got {v}).
  • The row for {k} has control characters{_1} does not match the message for a multi-line File Info field. Its last placeholder is empty there (crates/engine/src/cmd/fileinfo.rs), and the last placeholder of a row never matches empty text.

How it was tested

No test is added: the change is catalog data, and the existing i18n tests read it. bundled_catalogs_are_consistent checks every row's placeholders against its English and rejects duplicate keys; zh_hant_has_no_simplified_characters checks the rows for Simplified characters; and translations_keep_the_backticked_names_of_their_english, translated_messages_keep_the_double_quoted_values_of_their_english, translated_messages_keep_the_bare_literals_of_their_english, translated_messages_keep_the_keys_and_values_their_english_names and translated_messages_keep_the_command_ids_their_english_names check the names and values a row must keep.

untranslated_report prints the missing rows and does not fail on them, so its output is the evidence of the count:

Focused checks on Linux. The branch is one commit on main at 71cef8ac8d and merges cleanly with it. It conflicts with open #7315 in docs/localization-parity.md.

  • cargo test -p vectorcraft-ui-egui --lib i18n: 111 passed, 0 failed, 0 ignored.
  • cargo fmt --all -- --check
  • cargo clippy -p vectorcraft-ui-egui --all-targets -- -D warnings
  • cargo check --workspace --tests
  • cargo xtask brands, cargo xtask layers (30 crates) and cargo xtask assets (337 files)
  • cargo xtask ci runs in this pull request's CI.

Checklist

  • cargo xtask ci passes (fmt, clippy, tests, assets, brands, layers, wasm).
  • No panics in shipped code: no unwrap(), expect(), panic!, unreachable!, todo! or
    unimplemented! outside tests, and no unchecked indexing on data from files, parameters or
    messages. Errors are returned as Result and shown to the user
    (why and how).
  • Clean-room: nothing copied from Adobe products or GPL/AGPL code (AGENTS.md).
  • Every new asset has a row in ASSETS.md.

… report lists

The Traditional Chinese catalog had no row for 1,852 of the status and
error messages that i18n::tests::untranslated_report finds in the
sources, so the status bar showed them in English.

- zh-hant.tsv gets 1,813 @msg rows under one comment line at the end of
  the file, written in Taiwan usage with the catalog's existing terms.
  Each row keeps the English key, its placeholders, doubled braces,
  parameter names, command ids and quoted values unchanged.
- The 38 rows that open storytold#7211, storytold#7116 and storytold#7330 add, and the row storytold#7214
  added, are left out, so the catalogs stay consistent.
- docs/localization-parity.md and docs/target-app-parity.md give the new
  counts: 3,438 @msg and 48 @msgplural rows, 40 messages still listed.

The rows for `{name} must be {lo}–{hi}{unit} (got {v})` and
`unknown parameter `{within}{key}`; {why}` are counted by the report, but
Template::parse does not load a template with two placeholders in a row,
so those two messages still show in English. The row for
`{k} has control characters{_1}` does not match the message for a
multi-line File Info field, where its last placeholder is empty.
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 446bf59 and 485636a.

Files ignored due to path filters: 1

  • crates/ui-egui/src/i18n/zh-hant.tsv is excluded by !**/*.tsv
Files selected for processing: 2

  • docs/localization-parity.md
  • docs/target-app-parity.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@bflatastic
bflatastic merged commit 8cc8ab0 into storytold:main Nov 14, 2026
7 checks passed
@bflatastic

Copy link
Copy Markdown
Member

Merged, thanks @dotCooCoo! It passed its CI checks.

bflatastic pushed a commit that referenced this pull request Nov 15, 2026
…usals

No complete-message catalog had a row for "a linked JavaScript file is
outside the read roots" (an SVG or SVGZ export or save of a document
that links a script outside the read roots) or for "the art of a graph
design in a graph series is drawn again from the design: edit the
design to change it" (an appearance edit of only that art), so the
status bar showed both in English. "the library's file is outside the
read roots" (Copy to User Defined) and "{file} names more than one
linked JavaScript file" (svgInteractivity.removeFile) had no row in ca,
el, fi, hi, ka and vi.

- Add the two refusals to 20 complete-message catalogs and the two
  siblings to ca, el, fi, hi, ka and vi (52 rows), next to each
  catalog's read-root and graph-design link rows, using their terms.
  The nl, sv and tr rows and the other catalogs' sibling rows are in
  #7362, #7370, #7359, #7355, #7316, #7307, #7354, #7314, #7350, #7337
  and #7352.
- Add a test that checks each reason's row in every complete-message
  catalog that has one (translated, keeps `{file}`, and shown inside
  the invalid-parameters error of the command that returns it), and
  requires at least one catalog to have a row for each reason.
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.

2 participants