Repository navigation
i18n: Brazilian Portuguese translates 1,812 of the status and error messages the untranslated report lists - #7341
Merged
Conversation
…essages the untranslated report lists pt-br is in COMPLETE_MESSAGES, but the untranslated report listed 1,851 status and error messages with no pt-br row, so with the interface in Brazilian Portuguese those messages showed in English. - pt-br.tsv gains 1,812 `@msg` rows. The translations are VectorCraft's own, written from the English meaning with the catalog's terms. Placeholders, backticked names, command ids, parameter names, double-quoted values and bare true, false and null stay as the English writes them. - The 39 messages that open storytold#7211, storytold#7214, storytold#7116 and storytold#7330 add pt-br rows for are left out. bundled_catalogs_are_consistent rejects a second row for the same key. - The Portuguese row of docs/localization-parity.md gives the catalog's counts: 9,260 rows, 3,445 of them `@msg` and 48 `@msgplural`.
Contributor
|
Warning Review limit reachedYou'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. View limit details
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. |
3 of 4 tasks
Member
|
Merged, thanks @dotCooCoo! It passed its CI checks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Brazilian Portuguese is in
COMPLETE_MESSAGES(crates/ui-egui/src/i18n/tests.rs), but onmainat0b29b2b1f6, 1,851 status and error messages that the untranslated report scans had no pt-br row, counting the ones it lists under "every language". With the interface in Brazilian Portuguese, those messages showed in English.crates/ui-egui/src/i18n/pt-br.tsvgains 1,812@msgrows. Existing rows are unchanged.true,falseandnullare kept exactly as the English writes them.bundled_catalogs_are_consistentrejects a second row for the same key).docs/localization-parity.mdnow gives the catalog's counts: 9,260 rows, 3,445 of them@msgand 48@msgplural. The "How it is measured" sentence no longer names the commit the old Portuguese count was taken on.Three of the 1,812 rows are in the file and are counted by the report, but do not yet put their message into Portuguese:
Template::parseincrates/ui-egui/src/i18n/catalog.rsreturnsNonefor a message with two placeholders in a row, so the catalog does not load the rows forunknown parameter `{within}{key}`; {why}and{name} must be {lo}–{hi}{unit} (got {v}).{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_consistentand the other i18n tests check every new row for TSV parsing, duplicate keys, placeholder agreement, kept parameter names, backticked values and command ids. One of them found a duplicate in a first draft:not an RTF file: it doesn't start with {\rtfalready has a pt-br row, written with the catalog's\\escape, and the second row was removed.Untranslated report (
cargo test -p vectorcraft-ui-egui --lib i18n -- --nocapture):mainat0b29b2b1f6: 1,851 pt-br messages missing (1,405 under "pt-br" and 446 under "every language"); 43,084 missing rows in all.d358baf9cc: 39 pt-br messages missing (3 under "pt-br" and 36 under "every language"), all of them the rows left out for 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, i18n: the justification order error is translated in every complete catalog #7116 and Blob Brush: path.blob rejects invalid fidelity, angle and roundness #7330; 41,272 missing rows in all.Focused checks on Linux. The branch is one commit on
mainat0b29b2b1f6and merges cleanly with it. It conflicts with open #7307 indocs/localization-parity.md.cargo fmt --all -- --checkcargo clippy -p vectorcraft-ui-egui --all-targets -- -D warningscargo check --workspace --testscargo test -p vectorcraft-ui-egui --lib i18n: 110 passed, 0 failed, on the headd358baf9cc.cargo xtask brands,layers(30 crates) andassets(337 files).cargo xtask ciruns in this pull request's CI.Checklist
cargo xtask cipasses (fmt, clippy, tests, assets, brands, layers, wasm).unwrap(),expect(),panic!,unreachable!,todo!orunimplemented!outside tests, and no unchecked indexing on data from files, parameters ormessages. Errors are returned as
Resultand shown to the user(why and how).
ASSETS.md.