FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge origin/main into #1389 (Italian beside Korean: 12 languages)
Brandon Thomas48cae3e5a3a5
diff --cc ATTRIBUTION.mdindex 53bd79398,1483c9106..2b69cb025--- a/ATTRIBUTION.md+++ b/ATTRIBUTION.md@@@ -9,8 -9,8 +9,9 @@@ iconography, images or other Adobe asse| Asset | Author | Source | Licence ||---|---|---|---|+| `crates/ui-egui/src/i18n/it.tsv` | FilmCraft contributors | Original work: clean-room Italian interface translations | MIT OR Apache-2.0 || `crates/ui-egui/src/i18n/id.tsv` | FilmCraft contributors | Original work: clean-room Indonesian interface translations | MIT OR Apache-2.0 |+ | `crates/ui-egui/src/i18n/ko.tsv` | FilmCraft contributors | Original work: clean-room Korean interface translations | MIT OR Apache-2.0 || `crates/ui-egui/src/i18n/fr.tsv` | FilmCraft contributors | Original work: clean-room French interface translations | MIT OR Apache-2.0 || `crates/ui-egui/src/i18n/pt-br.tsv` | FilmCraft contributors | Original work: clean-room Brazilian Portuguese interface translations | MIT OR Apache-2.0 || `crates/ui-egui/src/i18n/ru.tsv` | FilmCraft contributors | Original work: clean-room Russian interface translations | MIT OR Apache-2.0 |diff --cc ROADMAP.mdindex ef36adecc,9966cea5e..b82e48f02--- a/ROADMAP.md+++ b/ROADMAP.md@@@ -84,10 -84,9 +84,10 @@@ Premiere ships 10 interface languages.| French | partial (whole interface; native review welcome) | ~100% || Portuguese (Brazil) | partial (whole interface; native review welcome) | ~100% || Indonesian | partial (whole interface; native review welcome) | ~100% |+| Italian | partial (whole interface; native review welcome) | ~100% |+ | Korean | partial (whole interface; needs an installed Hangul font; native review welcome) | ~100% || Japanese | partial (whole interface) | 99.7% || German | menus only (native-reviewed) | 10.6% |- | Korean | none | 0% || Vietnamese | none | 0% |Also shipped: Ukrainian (menus only, 10%). Detail: [docs/localization-parity.md](docs/localization-parity.md).diff --cc apps/filmcraft/src/native_menu.rsindex f8d1d7e72,4f8d0228f..f08fe0b8d--- a/apps/filmcraft/src/native_menu.rs+++ b/apps/filmcraft/src/native_menu.rs@@@ -131,8 -131,8 +131,10 @@@ pub fn install(app: &FilmcraftApp, ctxfilmcraft_ui_egui::i18n::Language::Fr} else if checked("app.language.indonesian") {filmcraft_ui_egui::i18n::Language::Id+ } else if checked("app.language.italian") {+ filmcraft_ui_egui::i18n::Language::It+ } else if checked("app.language.korean") {+ filmcraft_ui_egui::i18n::Language::Ko} else {filmcraft_ui_egui::i18n::Language::En};diff --cc crates/engine/src/settings.rsindex 93a3668e8,55abc85e2..79ecd6051--- a/crates/engine/src/settings.rs+++ b/crates/engine/src/settings.rs@@@ -1007,7 -1007,7 +1007,8 @@@ static CATEGORIES: &[Category] = &("ru", "Русский"),("fr", "Français"),("id", "Bahasa Indonesia"),+ ("it", "Italiano"),+ ("ko", "한국어"),]),true,),diff --cc crates/ui-egui/README.mdindex afa8d582f,bb8200164..38ead697c--- a/crates/ui-egui/README.md+++ b/crates/ui-egui/README.md@@@ -18,7 -18,7 +18,7 @@@ the committed span and undo. Set `FILMC## LocalisationEdit > Language offers English, Japanese, Spanish, Brazilian Portuguese, Ukrainian, Simplified- Chinese, German, Russian, French, Indonesian and Italian (both cover the whole interface). The language is stored in the engine's `general.interfaceLanguage` preference,-Chinese, German, Russian, French, Indonesian and Korean (which cover the whole interface). The language is stored in the engine's `general.interfaceLanguage` preference,++Chinese, German, Russian, French, Indonesian, Korean and Italian (which cover the whole interface). The language is stored in the engine's `general.interfaceLanguage` preference,restored on startup, and also available in Settings > General.Its default, System Language (`system`), follows the operating system: the first of the user'spreferred languages that the interface has (the host supplies them throughdiff --cc crates/ui-egui/src/i18n/mod.rsindex a52a232d7,19a725560..30bdcd5c6--- a/crates/ui-egui/src/i18n/mod.rs+++ b/crates/ui-egui/src/i18n/mod.rs@@@ -46,7 -46,8 +46,9 @@@ pub enum LanguageRu,Fr,Id,+ It,+ /// Korean; Hangul needs an installed system font ([`korean_font_available`]).+ Ko,}static JAPANESE: OnceLock<Catalog> = OnceLock::new();@@@ -57,11 -58,11 +59,12 @@@ static CHINESE: OnceLock<Catalog> = Oncstatic GERMAN: OnceLock<Catalog> = OnceLock::new();static RUSSIAN: OnceLock<Catalog> = OnceLock::new();static FRENCH: OnceLock<Catalog> = OnceLock::new();+ static KOREAN: OnceLock<Catalog> = OnceLock::new();static INDONESIAN: OnceLock<Catalog> = OnceLock::new();+static ITALIAN: OnceLock<Catalog> = OnceLock::new();impl Language {- pub const ALL: [Self; 11] = [Self::En, Self::Ja, Self::Es, Self::PtBr, Self::Uk, Self::ZhCn, Self::De, Self::Ru, Self::Fr, Self::Id, Self::It];- pub const ALL: [Self; 11] = [Self::En, Self::Ja, Self::Es, Self::PtBr, Self::Uk, Self::ZhCn, Self::De, Self::Ru, Self::Fr, Self::Id, Self::Ko];++ pub const ALL: [Self; 12] = [Self::En, Self::Ja, Self::Es, Self::PtBr, Self::Uk, Self::ZhCn, Self::De, Self::Ru, Self::Fr, Self::Id, Self::Ko, Self::It];pub fn name(self) -> &'static str {match self {@@@ -75,7 -76,7 +78,8 @@@Self::Ru => "Русский",Self::Fr => "Français",Self::Id => "Bahasa Indonesia",+ Self::It => "Italiano",+ Self::Ko => "한국어",}}@@@ -91,7 -92,7 +95,8 @@@"ru" => Some(Self::Ru),"fr" => Some(Self::Fr),"id" => Some(Self::Id),+ "it" => Some(Self::It),+ "ko" => Some(Self::Ko),_ => None,}}@@@ -106,7 -106,7 +111,7 @@@/// only for Simplified locales (`zh`, `zh-CN`, `zh-SG`, `zh-Hans…`); Traditional ones (`zh-TW`,/// `zh-HK`, `zh-MO`, `zh-Hant…`) are skipped.pub fn from_locales(tags: &[String]) -> Self {-- const PRIMARY: [(&str, Language); 11] = [++ const PRIMARY: [(&str, Language); 12] = [("en", Language::En),("ja", Language::Ja),("es", Language::Es),@@@ -117,7 -117,7 +122,8 @@@("fr", Language::Fr),("id", Language::Id),("in", Language::Id),+ ("it", Language::It),+ ("ko", Language::Ko),];tags.iter().find_map(|tag| {@@@ -148,7 -148,7 +154,8 @@@Self::Ru => "ru",Self::Fr => "fr",Self::Id => "id",+ Self::It => "it",+ Self::Ko => "ko",}}@@@ -165,7 -165,7 +172,8 @@@Self::Ru => Some(RUSSIAN.get_or_init(|| Catalog::parse(include_str!("ru.tsv")))),Self::Fr => Some(FRENCH.get_or_init(|| Catalog::parse(include_str!("fr.tsv")))),Self::Id => Some(INDONESIAN.get_or_init(|| Catalog::parse(include_str!("id.tsv")))),+ Self::It => Some(ITALIAN.get_or_init(|| Catalog::parse(include_str!("it.tsv")))),+ Self::Ko => Some(KOREAN.get_or_init(|| Catalog::parse(include_str!("ko.tsv")))),}}@@@ -337,7 -344,7 +352,8 @@@ mod tests("ru", include_str!("ru.tsv")),("fr", include_str!("fr.tsv")),("id", include_str!("id.tsv")),+ ("it", include_str!("it.tsv")),+ ("ko", include_str!("ko.tsv")),] {let (entries, errors) = catalog::parse_entries(text);assert!(errors.is_empty(), "{code}: {errors:?}");diff --cc crates/ui-egui/src/menus.rsindex c883a3036,a685f4bd9..48b4b82c6--- a/crates/ui-egui/src/menus.rs+++ b/crates/ui-egui/src/menus.rs@@@ -36,7 -36,7 +36,8 @@@ pub const UI_COMMANDS: &[UiCommand] = &uic!("app.language.russian", "Русский", ["Edit", "Language"], None),uic!("app.language.french", "Français", ["Edit", "Language"], None),uic!("app.language.indonesian", "Bahasa Indonesia", ["Edit", "Language"], None),+ uic!("app.language.italian", "Italiano", ["Edit", "Language"], None),+ uic!("app.language.korean", "한국어", ["Edit", "Language"], None),uic!("source.playback.toggle", "Source Play/Stop", [], None),uic!("source.playback.play", "Play Source", [], None),uic!("source.playback.stop", "Stop Source", [], None),@@@ -196,7 -196,7 +197,8 @@@ pub fn invoke(app: &mut FilmcraftApp, c| "app.language.russian"| "app.language.french"| "app.language.indonesian"+ | "app.language.italian"+ | "app.language.korean") {// Japanese needs the craft-fonts (built with CRAFT_FONTS_DIR) or a font installed on the systemif id == "app.language.japanese" && !crate::i18n::install_japanese_font(ctx) {@@@ -216,7 -220,7 +222,8 @@@"app.language.russian" => crate::i18n::Language::Ru,"app.language.french" => crate::i18n::Language::Fr,"app.language.indonesian" => crate::i18n::Language::Id,+ "app.language.italian" => crate::i18n::Language::It,+ "app.language.korean" => crate::i18n::Language::Ko,_ => crate::i18n::Language::En,};// The preference is updated in memory before it is written, so a failed write (read-only@@@ -688,7 -692,7 +695,8 @@@ pub fn menu_items(app: &FilmcraftApp) -"app.language.russian" => it.checked = Some(app.ui.language == crate::i18n::Language::Ru),"app.language.french" => it.checked = Some(app.ui.language == crate::i18n::Language::Fr),"app.language.indonesian" => it.checked = Some(app.ui.language == crate::i18n::Language::Id),+ "app.language.italian" => it.checked = Some(app.ui.language == crate::i18n::Language::It),+ "app.language.korean" => it.checked = Some(app.ui.language == crate::i18n::Language::Ko),_ => {}}if it.id.starts_with("view.") {diff --cc docs/localization-parity.mdindex 368f0323e,4cfba1345..462f11033--- a/docs/localization-parity.md+++ b/docs/localization-parity.md@@@ -51,12 -51,11 +51,12 @@@ whole interface, one PR) at ~4–8 h pe| Indonesian | id | 3,541 (same entries as Spanish, plus the macOS Settings item); must cover the core menus, no entry without a Spanish one | as Spanish | Latin (bundled fonts); System Language also maps the legacy `in` code | not recorded; welcome | partial (#867) | review || Japanese | ja | 3,487 (99.7%) | as zh-cn; system-font kanji may pick the Chinese fallback (#547) | CJK fonts, vertical title text | not recorded | partial | 4–8 h + review || German | de | 371 (10.6%) | menus only | Latin | yes (#630) | menus only | 5–9 h + review |- | Korean | ko | 0 (0%) | — | needs Hangul fonts in craft-fonts and IME testing | — | none (requested #508) | 10–20 h + review |+ | Korean | ko | 3,573 (same entries as Spanish, plus the macOS Settings item) | as Spanish | installed system Hangul font (Malgun Gothic, Apple SD Gothic Neo, Noto Sans CJK KR…); refused without one | not recorded; welcome | partial (#508) | review; Hangul in craft-fonts for the web || Vietnamese | vi | 0 (0%) | — | Latin with stacked diacritics (font coverage to check) | — | none | 6–12 h + review |+| *Other shipped:* Italian | it | 3,573 (same entries as Spanish, plus the macOS Settings item); must cover the core menus, no entry without a Spanish one | as Spanish | Latin (bundled fonts) | not recorded; welcome | partial | review || *Other shipped:* Ukrainian | uk | 351 (10.0%) | menus only | Cyrillic (bundled) | not recorded | menus only | 5–9 h |-Premiere also ships Italian and Russian, which we don't (6–10 h each).+Premiere also ships Italian, which we now cover like Spanish, and Russian (6–10 h).**Localization dimension:** 6 of the 12 key languages near-complete (English, Spanish, Japanese,Simplified Chinese, French, Portuguese (Brazil)), 1 menus-only, 5 none; against Premiere's 10 languages