Skip to content

i18n: Dutch translates 1,813 of the status and error messages the untranslated report lists - #7362

Merged
bflatastic merged 6 commits into
storytold:mainfrom
dotCooCoo:fix/nl-message-rows
Nov 14, 2026
Merged

bflatastic merged 6 commits into
storytold:mainfrom
dotCooCoo:fix/nl-message-rows

Conversation

@dotCooCoo

Copy link
Copy Markdown
Contributor

What and why

Dutch (nl) is in COMPLETE_MESSAGES (crates/ui-egui/src/i18n/tests.rs), but on main at 71cef8ac8d, i18n::tests::untranslated_report listed 1,854 status and error messages with no Dutch row: 448 under "every language" and 1,406 for Dutch alone. With the interface in Dutch, those messages showed in English. Czech is #7355 and Japanese is #7314.

  • crates/ui-egui/src/i18n/nl.tsv gains 1,813 @msg rows, in one block under a comment: the errors of commands and their parameter checks, scripts, file import and export, printing and plug-ins. Existing rows are unchanged.
  • The translations are VectorCraft's own, written from the meaning of the English messages. A native speaker has not reviewed them. They use the catalog's existing Dutch terms, such as tekengebied, laag, staal, pad and contour, and its „…” quotes around names. Placeholders, doubled braces, backticked names, command ids, double-quoted values and bare true, false and null are kept exactly as the English writes them.
  • The 38 messages that open i18n: translate the composite font errors in the complete-message languages #7211 (36), i18n: the justification order error is translated in every complete catalog #7116 (1) and Blob Brush: path.blob rejects invalid fidelity, angle and roundness #7330 (1) also translate in nl.tsv are left out, so the catalog stays consistent when they merge (bundled_catalogs_are_consistent rejects a second row for the same key). No other new row repeats a key in main's nl.tsv or a row that another open pull request adds to it.
  • Three messages are left to a later row: unknown parameter `{within}{key}`; {why}, unknown parameter `{within}settings.{format}`; {why} and {name} must be {lo}–{hi}{unit} (got {v}). Template::parse in crates/ui-egui/src/i18n/catalog.rs cannot match a row with two placeholders in a row, and open i18n: messages with values side by side can be translated #7353 rewrites these messages so that a catalog row can match them.
  • The Dutch row of docs/localization-parity.md now gives the catalog's counts: 3,447 @msg and 48 @msgplural rows. docs/target-app-parity.md has one line for the change under "Evidence: what ships today, by area".

Menu strings (50), tl! literals (35) and undo labels (11) that only Dutch lacks are unchanged. No other catalog changes.

One of the 1,813 rows is in the file and is counted by the report, but does not yet put its message into Dutch: 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 new test: the change adds catalog rows only. bundled_catalogs_are_consistent and the other i18n tests check every new row for TSV parsing, duplicate keys, placeholder agreement, double-quoted values, bare literals, backticked names and command ids.

Untranslated report (cargo test -p vectorcraft-ui-egui --lib i18n -- --nocapture), on main at 71cef8ac8d:

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, and with open #7352 and #7354 in docs/target-app-parity.md.

  • cargo fmt --all -- --check
  • cargo clippy -p vectorcraft-ui-egui --all-targets -- -D warnings
  • cargo check --workspace --tests
  • cargo test -p vectorcraft-ui-egui --lib i18n: 111 passed, 0 failed.
  • 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.

The Dutch catalog lacked a row for 1,813 of the status and error
messages that the untranslated report finds in the sources, so the
status bar showed those messages in English.

- nl.tsv gains 1,813 `@msg` rows: the errors of commands and their
  parameter checks, scripts, file import and export, printing and
  plug-ins. The translations are VectorCraft's own, written from the
  English meaning with the catalog's conventions and its existing
  feature names. Placeholders, parameter names, command ids and
  literal values stay as the English writes them.
- The untranslated report lists 41 Dutch messages after the change:
  the composite font errors, the justification spacing error and the
  `connect` end error, which open storytold#7211, storytold#7116 and storytold#7330 translate,
  and three unknown-parameter and range errors that open storytold#7353
  rewrites so that a catalog row can match them. Menu strings, `tl!`
  literals and undo labels are unchanged.
- The row for `{k} has control characters{_1}` does not match the
  message for a multi-line File Info field, where the last
  placeholder is empty.
- docs/localization-parity.md's Dutch row and a line in
  docs/target-app-parity.md give the new counts.
@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 24 minutes.

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 124e3cc and fdb58f4.

Files ignored due to path filters: 1

  • crates/ui-egui/src/i18n/nl.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

Copy link
Copy Markdown
Member

Approved, but it conflicts with main after this batch of merges (doc status lines and catalog rows). Could you merge current main? It will go in once the new head is green.

@dotCooCoo

Copy link
Copy Markdown
Contributor Author

@bflatastic Merged main in (1d8c38e).

Ten nl rows translated the field names inside [subpath, anchor], [x, y, width, height] and [width, height], which a command reads only in English. They now keep the English names, as the other catalogs do.
@dotCooCoo

Copy link
Copy Markdown
Contributor Author

@bflatastic Merged current main again (5eb428f) and the Dutch rows now keep the bracketed field names in English (55595f0).

@bflatastic
bflatastic merged commit bbb5a38 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 14, 2026
Adds a Dutch @msg row for each message in the untranslated report's
"messages, all 23 languages checked" list that neither main nor an open
pull request translates: 3D and Revolve errors, image export, color
profiles, swatch exchange files and color books, script regular
expressions, the `index` whole-number check, and DXF and DWG files.
Placeholders, backticked names, parameter names and command ids stay as
the English writes them.

The shared list drops from 168 to 53 messages; the other 53 have Dutch
rows in open pull requests #7211, #7378, #7434 and #7362.
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