Skip to content

i18n: Spanish translates 1,802 of the status and error messages the untranslated report lists - #7316

Open
dotCooCoo wants to merge 11 commits into
storytold:mainfrom
dotCooCoo:fix/es-message-rows
Open

dotCooCoo wants to merge 11 commits into
storytold:mainfrom
dotCooCoo:fix/es-message-rows

Conversation

@dotCooCoo

@dotCooCoo dotCooCoo commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What and why

The Spanish catalog had no row for 1,842 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 Spanish interface.

  • crates/ui-egui/src/i18n/es.tsv gets an @msg row for 1,802 of the 1,842 messages, at the end of the file: the errors of commands and their parameter checks, scripts, file import and export, effects and plug-ins, including the addon.pathtools.trim errors, the warichuLines and warichuAlign checks and the Warichu Settings dialog's field errors. With main merged in, the catalog goes from 1,628 to 3,430 @msg rows and has 48 @msgplural rows. No existing row changes.
  • The 38 rows that open i18n: translate the composite font errors in the complete-message languages #7211, i18n: the "select a path" reason is translated in every complete-message language #7214 and i18n: the justification order error is translated in every complete catalog #7116 add are left out, so the catalogs stay consistent when they merge (bundled_catalogs_are_consistent rejects a second row for the same key). The 2 keys this branch shares with open Compound Shapes #817 stay until it merges.
  • Each row keeps the English key exactly, with every placeholder, doubled brace, backticked parameter name, command id, quoted value and bare true, false and null unchanged. Only the prose around them is Spanish.
  • The rows follow the conventions in the catalog's header (neutral Spanish, the informal "tú" in sentences, sentence case) and the feature names the catalog already uses, such as Mesa de trabajo, Trazado, Trazo, Relleno and Muestras. The translations are VectorCraft's own, written from the meaning of its English messages. They have not had a native review.
  • docs/target-app-parity.md has one line for it under "Evidence: what ships today".
  • The Spanish row of docs/localization-parity.md now gives the catalog's message counts: 3,430 @msg and 48 @msgplural rows, counted 2026-11-13.

This pull request changes only the Spanish @msg rows. The counts of menu strings (47), tl! strings (24), undo labels (11) and swatch names (45) that Spanish still lacks are unchanged, and no other language's catalog is edited. Messages stay in English in command replies and MCP data; the status bar translates a message when it draws it.

Two of the 1,842 messages have no Spanish row and still show in English: unknown parameter `{within}{key}`; {why} and {name} must be {lo}–{hi}{unit} (got {v}). Template::parse in crates/ui-egui/src/i18n/catalog.rs returns None for a message with two placeholders in a row, and the catalog then does not load the row, so a row for either would not be used. The report still lists both for Spanish.

How it was tested

New test in crates/ui-egui/src/i18n/tests.rs:

  • spanish_translates_engine_import_and_parameter_messages: Spanish shows eight rendered messages in Spanish with their values, names and command ids kept (a parameter range check, a JSON.parse error with its offset, an unknown mode with its choices, the password-protected Word document error, a 3D mapping error with its object number, a missing custom arrowhead, the warichuLines check and a trim error). With the trim row removed, it fails at that case with the English text.

The existing i18n tests read the new rows too. bundled_catalogs_are_consistent checks every row's placeholders against its English and rejects duplicate keys, 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. On the head e3ae1fb79, with main merged in:

Focused checks on Linux. It conflicts with open #7282 in crates/ui-egui/src/i18n/es.tsv. It conflicts with open #7051 in crates/ui-egui/src/i18n/es.tsv. It conflicts with open #7134 in docs/localization-parity.md. It conflicts with open #7206 in docs/localization-parity.md. It conflicts with open #7298 in docs/target-app-parity.md. It conflicts with open #6883 in docs/target-app-parity.md.

  • cargo test -p vectorcraft-ui-egui --lib i18n: 110 passed, 0 failed, 0 ignored, on the head e3ae1fb79.
  • 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.

cargo xtask ci passed in this pull request's CI run on e3ae1fb79f: https://github.com/storytold/vectorcraft/actions/runs/43531290077/job/132249491010

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.

…ntranslated report lists

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

- es.tsv gains 1,840 `@msg` rows: the errors of commands and their
  parameter checks, scripts, file import and export, effects and
  plug-ins. The translations are VectorCraft's own, written from the
  English meaning in the catalog's neutral Spanish and its existing
  feature names. Placeholders, backticked names, quoted values, bare
  true, false and null, and command ids stay as the English writes
  them.
- Two messages have no row and are still shown in English:
  "unknown parameter `{within}{key}`; {why}" and
  "{name} must be {lo}–{hi}{unit} (got {v})". Each has two
  placeholders in a row, and the catalog does not load a row for such
  a message. The untranslated report still lists both for Spanish.
- Menu strings, `tl!` literals, undo labels and swatch names are
  unchanged.
- A test checks that Spanish shows rendered messages from the script
  engine, the parameter checks, the importers, the 3D effects and the
  trim add-on in Spanish with their values kept.
- The Spanish row of docs/localization-parity.md gives the catalog's
  current message counts.

Docs: docs/target-app-parity.md, docs/localization-parity.md.
@coderabbitai

coderabbitai Bot commented Nov 13, 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 2 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 4830ea0 and 09a8d3d.

Files ignored due to path filters: 1

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

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

…torytold#7116 add

Open storytold#7211, storytold#7214 and storytold#7116 add Spanish rows for 38 of the messages this
branch translates. A second row for the same key fails
bundled_catalogs_are_consistent once both sides merge, so this branch
drops its 38 rows and leaves those messages to the other pull requests.
The Spanish lines in docs/localization-parity.md and
docs/target-app-parity.md give the new counts.
@dotCooCoo dotCooCoo changed the title i18n: Spanish translates 1,840 of the status and error messages the untranslated report lists i18n: Spanish translates 1,802 of the status and error messages the untranslated report lists Nov 14, 2026
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.

This branch has not been deployed

No deployments
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.

1 participant