diff --git a/ROADMAP.md b/ROADMAP.md index 7dbebfbb..ad234ca3 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -82,7 +82,7 @@ The evidence column includes the November 16 scores for comparison. | UI/UX fidelity | ~75% | 20 | TBD | Layer targeting, the workspace, Bake Mode and export dialogs changed. Live task, layout, shortcut and accessibility checks remain. November 16 estimate ~65% | | File formats / interchange | ~70% | 10 | TBD | Shared import/export codecs, rebuilt UV persistence and linked `.mcmat` v3 have landed. Project/output contracts, `.spp` and destination-tool coverage remain open. November 16 estimate ~60% | | Hardware (GPU, pen, displays) | ~50% | 8 | TBD | One Windows GPU exercised; pen tilt, pressure across platforms and display coverage remain incomplete. November 16 estimate ~50% | -| Localization | ~35% | 4 | TBD | Ten picker languages in source; optional shared catalogs/fonts and native-language review need current measurement. November 16 estimate ~35% | +| Localization | ~35% | 4 | TBD | Eleven picker languages in source; optional shared catalogs/fonts and native-language review need current measurement. November 16 estimate ~35% | | Performance | ~45% | 10 | TBD | Main added dirty-region uploads, cheaper undo snapshots and faster glTF lookups. Establish response-time and memory budgets with representative large projects. November 16 estimate ~40% | | Stability | ~60% | 10 | TBD | The live baseline covered small save/reopen and undo/redo. Rebuilt UV layouts gained persistence checks. Recovery, large projects and long sessions remain open. November 16 estimate ~55% | | Platforms | ~70% | 3 | TBD | Desktop and web build paths exist. Nightly packaging and supervised signing workflows landed for Windows, Linux and macOS. Install, update and hardware checks remain. November 16 estimate ~65% | @@ -151,7 +151,7 @@ signed release installation remain outside the November 25 test evidence. ## Languages -The [picker](crates/ui-egui/src/i18n.rs) contains ten languages. Shared catalogs are optional at +The [picker](crates/ui-egui/src/i18n.rs) contains eleven languages. Shared catalogs are optional at build time; missing entries fall back to English, and builds without catalogs offer English only. The older [coverage table](docs/localization-parity.md) predates catalog migration, so its “100%” rows are not a current measurement. The November 16 live audit ran an English build without external catalogs. diff --git a/crates/ui-egui/src/fonts.rs b/crates/ui-egui/src/fonts.rs index 95080619..2bf2dba0 100644 --- a/crates/ui-egui/src/fonts.rs +++ b/crates/ui-egui/src/fonts.rs @@ -278,9 +278,11 @@ mod tests { assert_eq!(Script::of_language("ko"), Some(Script::Korean)); assert_eq!(Script::of_language("ar"), Some(Script::Arabic)); assert_eq!(Script::of_language("de"), None); + assert_eq!(Script::of_language("ru"), None); for l in &crate::i18n::LANGUAGES { - // Past the Latin blocks and their diacritics. - let other_script = l.name.chars().any(|c| c > '\u{036F}'); + // Past the Latin blocks and their diacritics. Cyrillic needs no fallback: the UI fonts + // themselves carry it (egui's Ubuntu and craft-fonts' Inter). + let other_script = l.name.chars().any(|c| c > '\u{036F}' && !('\u{0400}'..='\u{04FF}').contains(&c)); assert_eq!(other_script, Script::of_language(l.code).is_some(), "{}", l.code); } } diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index 7fa3a8cc..95c8cb01 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -37,7 +37,7 @@ pub struct Language { pub english: &'static str, } -const COUNT: usize = 10; +const COUNT: usize = 11; pub static LANGUAGES: [Language; COUNT] = [ Language { code: "en", name: "English", english: "English" }, @@ -46,6 +46,7 @@ pub static LANGUAGES: [Language; COUNT] = [ Language { code: "es", name: "Español", english: "Spanish" }, Language { code: "pt-BR", name: "Português (Brasil)", english: "Portuguese (Brazil)" }, Language { code: "it", name: "Italiano", english: "Italian" }, + Language { code: "ru", name: "Русский", english: "Russian" }, Language { code: "ja", name: "日本語", english: "Japanese" }, Language { code: "zh-Hans", name: "简体中文", english: "Chinese (Simplified)" }, Language { code: "ko", name: "한국어", english: "Korean" }, @@ -437,9 +438,18 @@ mod tests", assert_eq!(trf("Saved {path}", &[("path", &"a.tcraft")]), "Saved a.tcraft"); assert_eq!(trf("{a} of {b} {c}", &[("a", &1), ("b", &2)]), "1 of 2 {c}"); assert_eq!(trf("{unclosed", &[]), "{unclosed"); - for (locale, code) in - [("de-AT", "de"), ("pt_PT.UTF-8", "pt-BR"), ("zh-Hant-TW", "zh-Hans"), ("ja", "ja"), ("ko_KR", "ko"), ("ar-EG", "ar"), ("nl-NL", "en"), ("", "en")] - { + for (locale, code) in [ + ("de-AT", "de"), + ("pt_PT.UTF-8", "pt-BR"), + ("zh-Hant-TW", "zh-Hans"), + ("ja", "ja"), + ("ko_KR", "ko"), + ("ar-EG", "ar"), + ("ru-SK", "ru"), + ("ru_RU.UTF-8", "ru"), + ("nl-NL", "en"), + ("", "en"), + ] { assert_eq!(language_for_locale(locale), code, "{locale}"); } set_language("de"); diff --git a/docs/features.md b/docs/features.md index 69b08992..ae466fd5 100644 --- a/docs/features.md +++ b/docs/features.md @@ -304,8 +304,10 @@ Everything TextureCraft does today, by area. What's still missing is in [`ROADMA channel to a text file with each entry's recorded UTC time, severity and source. The desktop app asks for a destination, and the browser downloads the file. - A **History** panel: click any step to go back to it, or forward again to an undone one. -- **10 languages:** English, French, German, Spanish, Portuguese, Italian, Japanese, Chinese, - Korean and Arabic, switchable live. +- **11 languages:** English, French, German, Spanish, Portuguese, Italian, Russian, Japanese, + Chinese, Korean and Arabic, switchable live. A build without the shared craft-i18n catalogs + offers English only, and Japanese, Chinese, Korean and Arabic can be picked only where a font + for their script is available (craft-fonts or the system's); otherwise they show greyed out. - **In the browser:** the same app compiled to WebAssembly, on WebGPU or WebGL2, with touch navigation and project open, save and download. diff --git a/docs/localization-parity.md b/docs/localization-parity.md index fb6a8a49..3625d0cd 100644 --- a/docs/localization-parity.md +++ b/docs/localization-parity.md @@ -29,6 +29,7 @@ generator, filter and brush alpha names (**KEYS** strings, counted by the | Arabic | `ar` | KEYS (100%) | yes | Arabic glyphs: craft-fonts (Noto Sans Arabic) or system fonts on desktop; egui shapes the text and orders it right to left (panels keep the left-to-right layout) | yes | full | 0 h | | French | `fr` | KEYS (100%) | yes | Latin | no | full | 1 h (review) | | Portuguese (Brazil) | `pt-BR` | KEYS (100%) | yes | Latin | no | full | 1 h (review) | +| Russian | `ru` | KEYS (~99%) | yes | Cyrillic: egui's built-in fonts | yes | full with the craft-i18n `ru/texturecraft.tsv` catalog | 0 h | | Indonesian | `id` | 0 | no | Latin | no | none | 3 h | | Japanese | `ja` | KEYS (100%) | yes | CJK glyphs: craft-fonts (BIZ UDPGothic) or system fonts on desktop | no | full | 2 h (review) | | German | `de` | KEYS (100%) | yes | Latin | no | full | 1 h (review) |