Repository navigation
feat(i18n): add Italian (it) UI localization - #352
ktfnz4ynbs-arco wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
vangel76
left a comment
There was a problem hiding this comment.
I checked Italian language selection, the catalog keys and placeholders, and the published language matrix.
Source review only. I did not build the project, run tests, or check CI.
| pub static LANGUAGES: [Language; COUNT] = [ | ||
| Language { code: "en", name: "English", english: "English", table: &[] }, | ||
| Language { code: "ar", name: "العربية", english: "Arabic", table: ar::TABLE }, | ||
| Language { code: "it", name: "Italiano", english: "Italian", table: it::TABLE }, |
There was a problem hiding this comment.
P3. List Italian as supported in the localization matrix. This registration now offers Italiano in the picker and at startup, but docs/localization-parity.md still lists it as “Not started.” Give Italian its own supported row and update the overview so users and contributors see the current status.
There was a problem hiding this comment.
Done in 3354497: docs/localization-parity.md now gives Italian its own Complete row, and the overview and revision history say so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaterialCraft can now be used in Italian: Preferences ▸ General ▸ Language lists Italiano, and a first run on an Italian system starts in Italian.
What they saw: the only languages were English and Arabic; an Italian system got English.
What changed:
crates/ui-egui/src/i18n/it.rs(new): 800 rows. They cover every key the Arabic table translates (711) plus 89 strings the code passes totr/trf/n_that no table had yet (library favorites, expose-parameter dialog, wire menu, function graph warnings, web save, unsaved-changes dialog…). Written from the meaning of the English, informal "tu"; terms: grafo, nodo, pacchetto, output/input, anteprima, miniatura, mesh, cornice, puntina di navigazione.crates/ui-egui/src/i18n.rs:itregistered inLANGUAGES, solanguage_for_localepicks it forit-*locales; the duplicate-key and placeholder tests now run over every table, plus a test that Italian covers every Arabic key.os_languagereturnsenundercfg(test)or the newtest-supportfeature, which the crate's own integration tests enable through a self dev-dependency (Cargo.toml,Cargo.lock). Without this, the defaultPrefstake the system language, and on an Italian machine 61 UI tests that look for English labels ("Open...") failed once Italian existed. EffectCraft does the same for its tests (#3244 there).Tests:
locale_detectiongainsit-ITandit_CH.UTF-8, which fail without this change (they returneden).Verification:
cargo fmt --all --check: passed.cargo clippy -p materialcraft-ui-egui --all-targets -- -D warnings: passed.cargo xtask layers: passed.cargo test -p materialcraft-ui-egui --release --no-fail-fast: lib 317 passed, 3 failed;tests/it78 passed; the other test binaries passed. The 3 failures (graph::canvas_tests::clicking_a_node_shows_it_in_the_2d_view,graph::canvas_tests::ctrl_click_that_deselects_a_node_does_not_show_it,native_dialogs::tests::export_dialogs_keep_native_non_utf8_destinations) also fail on unmodifiedmainon this machine (macOS), so they are not caused by this change. Not run on Linux; CI will show.cargo xtask wasm, the engine panic sweep andevery_node_cooks(no engine or node code changed); not checked in the running app or browser.AI-assisted (Claude Code); not recorded as native-reviewed.
🤖 Generated with Claude Code
Summary by CodeRabbit