Repository navigation
i18n: add French and German interfaces - #366
Closed
pechnikov2026-star wants to merge 1 commit into
Closed
pechnikov2026-star wants to merge 1 commit into
pechnikov2026-star wants to merge 1 commit into
Conversation
Two new 266-entry catalogs (fr, de) covering every JAPANESE key, registered in the Language enum (ALL, names, codes, tag parsing) and the tr() dispatch. Locale-resolution test updated: fr-FR/de-DE now resolve; Italian, which has no catalog, stands in as the unsupported example.
Member
|
Thank you for the French translation! A few things before it can land:
Keeping just If you haven't already, come join us on the ArtCraft Discord: https://discord.gg/artcraft |
Member
|
Superseded by #413 (French only), which has been merged. Thank you! Join us on Discord: https://discord.gg/artcraft |
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.
Summary
Adds two complete interface catalogs for GridCraft: French (fr) and German (de) — 266 entries each covering every
JAPANESEkey (the coverage reference), generated in theru.rsmodule style.Changes
crates/ui-egui/src/i18n/{fr,de}.rs— newtranslate()modulescrates/ui-egui/src/i18n.rs—mod de/fr;,Language::{Fr,De}variants (ALL7 → 9, names, codes, tag parsing),tr()arms, and the uniqueness/coverage test extended to bothi18n.rstesttags_reduce_to_a_supported_languageusedde-DEas the example of a language without a catalog — nowfr-FR/de-DEresolve and Italian stands in as the unsupported exampleTranslation notes
Context|Labelkeys (Page Layout|Orientation,Sheet Options|View) carry plain labels as values, matching how the English fallback renders them\n-escape keys (e.g. the two-lineTop\nAlignbutton) verified to resolve identically to the Japanese referenceTesting
cargo test -p gridcraft-ui-egui --lib: 21 passed, 0 failed (coverage loop now asserts fr/de translate every JAPANESE key)