Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Merge remote-tracking branch 'origin/main' into land-1018b

Brandon Thomas185412cdf9e1
diff --cc crates/ui-egui/src/i18n.rs
index 5e27a6366,f1f574ce4..73e6e83db
--- a/crates/ui-egui/src/i18n.rs
+++ b/crates/ui-egui/src/i18n.rs
@@@ -37,7 -37,7 +38,8 @@@ pub const LANGUAGES: &[(&str, &str)] =
("cs", "Čeština"),
("pl", "Polski"),
("ka", "ქართული"),
+ ("hu", "Magyar"),
+ ("sv", "Svenska"),
];
/// The interface languages in the order the Preferences picker lists them: English first (the
@@@ -92,7 -94,10 +96,11 @@@ fn lookup<'a>(lang: &str, s: &'a str) -
static CZECH: OnceLock<HashMap<&str, &str>> = OnceLock::new();
static FRENCH: OnceLock<HashMap<&str, &str>> = OnceLock::new();
static GEORGIAN: OnceLock<HashMap<&str, &str>> = OnceLock::new();
+ static HUNGARIAN: OnceLock<HashMap<&str, &str>> = OnceLock::new();
+ if lang == "hu" {
+ return HUNGARIAN.get_or_init(|| hu::TABLE.iter().copied().collect()).get(s).copied().unwrap_or(s);
+ }
+ static SWEDISH: OnceLock<HashMap<&str, &str>> = OnceLock::new();
if lang == "ar" {
return ARABIC.get_or_init(|| ar::TABLE.iter().copied().collect()).get(s).copied().unwrap_or(s);
}
diff --cc crates/ui-egui/src/menus/ui_commands.rs
index 5d927fba7,e46eea4cb..f24d1d548
--- a/crates/ui-egui/src/menus/ui_commands.rs
+++ b/crates/ui-egui/src/menus/ui_commands.rs
@@@ -71,7 -71,7 +71,7 @@@ pub const UI_COMMANDS: &[(&str, &str, O
"app.language",
"Interface Language",
None,
- "{lang?: \"\"|de|fr|es|ja|zh|ar|pt-br|it|uk|ru|cs|pl|ka|sv} — menus and panel names (the macOS menu bar follows at once); without lang, opens Preferences, where it is the first setting",
- "{lang?: \"\"|de|fr|es|ja|zh|ar|pt-br|it|uk|ru|cs|pl|ka|hu} — menus and panel names (the macOS menu bar follows at once); without lang, opens Preferences, where it is the first setting",
++ "{lang?: \"\"|de|fr|es|ja|zh|ar|pt-br|it|uk|ru|cs|pl|ka|hu|sv} — menus and panel names (the macOS menu bar follows at once); without lang, opens Preferences, where it is the first setting",
),
(
"app.flattener",
diff --cc docs/localization-parity.md
index 2ac3b8277,ca8f1ffe7..677c4291a
--- a/docs/localization-parity.md
+++ b/docs/localization-parity.md
@@@ -1,6 -1,6 +1,6 @@@
# Localization parity
- > **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-23 · **Change:** minor (missing translations are reported, never a failure; Swedish interface; catalog counts remain the 2026-10-10 measurement) · **Target:** Adobe InDesign 2026 (21.6)
-> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-11-01 · **Change:** minor (Hungarian interface catalog, bundled-font coverage and flyout regression checks) · **Target:** Adobe InDesign 2026 (21.6)
++> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-11-01 · **Change:** minor (Hungarian interface catalog, bundled-font coverage and flyout regression checks; Swedish interface) · **Target:** Adobe InDesign 2026 (21.6)
Per-language status of the DesignCraft interface and of document typesetting in each script.
Script-specific typesetting detail: [cjk.md](cjk.md), [cjk-typography.md](cjk-typography.md),
@@@ -11,7 -11,7 +11,7 @@@
## How it was measured
Interface strings live in `crates/ui-egui/src/i18n/table.rs` (a shared table with German, French,
- Spanish, Japanese and Simplified Chinese columns) and `crates/ui-egui/src/i18n/{ar,cs,it,ja,ka,pt_br,uk,sv}.rs`.
-Spanish, Japanese and Simplified Chinese columns) and `crates/ui-egui/src/i18n/{ar,cs,de,fr,hu,it,ja,ka,pl,pt_br,ru,uk}.rs`.
++Spanish, Japanese and Simplified Chinese columns) and `crates/ui-egui/src/i18n/{ar,cs,de,fr,hu,it,ja,ka,pl,pt_br,ru,sv,uk}.rs`.
Untranslated strings fall back to English. A script (2026-10-10) built the set of English
interface strings as the union of every catalog's keys, every engine command label and every
literal passed to `tr`/`t` in the UI crate: **1,724 strings**. A further ~145 capitalized literals
@@@ -93,8 -116,8 +117,9 @@@ German variants have no automatic hyphe
| Date | Change | Summary |
|---|---|---|
+ | 2026-11-01 | minor | Initial Hungarian interface: 1,906 entries, four context captions, native review, bundled-font glyph coverage and wide/narrow flyout regressions |
| 2026-10-11 | minor | Localized Japanese print, import and table controls; checked Japanese and English renders |
+| 2026-10-15 | minor | Swedish (`sv`) interface added |
| 2026-10-14 | minor | Georgian (`ka`) interface added |
| 2026-10-10 | major | Created: catalogs measured (1,724 strings), the twelve key languages plus Italian and Ukrainian |
| 2026-10-11 | minor | Czech (cs) added: 1,722 strings, plural categories handled |