EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
i18n(ja): the animator's items fall back to the panel catalog, and the words agree
zitann20207471c9735c8e
diff --git a/crates/ui-egui/src/i18n/ui.rs b/crates/ui-egui/src/i18n/ui.rsindex 8f17274a5..8dca3cc55 100644--- a/crates/ui-egui/src/i18n/ui.rs+++ b/crates/ui-egui/src/i18n/ui.rs@@ -204,7 +204,7 @@ const JAPANESE: &[(&str, &str)] = &[("Add a shape, fill, stroke or path operation", "シェイプ、塗り、線、またはパス操作を追加"),("Add to Composition", "コンポジションに追加"),("Add to Favorites", "お気に入りに追加"),- ("Add:", "追加:"),+ ("Add:", "追加:"),("Adjust Exposure (stops)", "露出を調整(段単位)"),("Adjust composition duration to the time span of the selected layers", "コンポジションのデュレーションを、選択したレイヤーの時間範囲に合わせる"),("Advanced", "詳細"),@@ -681,9 +681,9 @@ const JAPANESE: &[(&str, &str)] = &[("Adobe-style built-in", "Adobe標準の組み込み"),("Blue", "青"),("Current Settings", "現在の設定"),- ("Disable Per-character 3D", "文字ごとの3Dを無効化"),+ ("Disable Per-character 3D", "文字単位の 3D 化を使用しない"),("Draft", "ドラフト"),- ("Enable Per-character 3D", "文字ごとの3Dを有効化"),+ ("Enable Per-character 3D", "文字単位の 3D 化を使用"),("Fast Draft", "高速ドラフト"),("Fast Previews (Draft 3D, Faster Effects)", "高速プレビュー(ドラフト3D、より高速なエフェクト)"),("Green", "緑"),@@ -1082,12 +1082,12 @@ const JAPANESE: &[(&str, &str)] = &[("Fill Color: RGB", "塗りのカラー: RGB"),("Fill Color: Hue", "塗りのカラー: 色相"),("Fill Color: Saturation", "塗りのカラー: 彩度"),- ("Fill Color: Brightness", "塗りのカラー: 明度"),+ ("Fill Color: Brightness", "塗りのカラー: 明るさ"),("Fill Color: Opacity", "塗りのカラー: 不透明度"),("Stroke Color: RGB", "線のカラー: RGB"),("Stroke Color: Hue", "線のカラー: 色相"),("Stroke Color: Saturation", "線のカラー: 彩度"),- ("Stroke Color: Brightness", "線のカラー: 明度"),+ ("Stroke Color: Brightness", "線のカラー: 明るさ"),("Stroke Color: Opacity", "線のカラー: 不透明度"),("Stroke Width", "線幅"),("Front: Color", "前面: 色"),diff --git a/crates/ui-egui/src/panels/timeline.rs b/crates/ui-egui/src/panels/timeline.rsindex 1dce90871..246084cc1 100644--- a/crates/ui-egui/src/panels/timeline.rs+++ b/crates/ui-egui/src/panels/timeline.rs@@ -5254,9 +5254,11 @@ fn text_anim_popups(opts.push("-".into());acts.push((String::new(), json!(null)));for (k, l) in TEXT_ANIMATOR_KINDS {- // The engine names these; the menu catalog holds their Japanese, so the pop-up reads- // what Animation ▸ Animate Text reads. A separator is not a label.- opts.push(if *k == "-" { "-".into() } else { crate::i18n::label(app, "layer.addTextAnimator", l).to_string() });+ // The engine names these. `command_label` asks the menu for the row Animation ▸ Animate+ // Text uses and falls back to the panel catalog, which holds the split names the menu+ // does not list (`Fill Color: RGB` and the other colour rows), so no item is left in+ // English. A separator is not a label.+ opts.push(if *k == "-" { "-".into() } else { crate::i18n::command_label("layer.addTextAnimator", l).to_string() });acts.push(if *k == "-" { (String::new(), json!(null)) } else { ("layer.addTextAnimator".into(), json!({"layer": layer.id.0, "property": k})) });}// Variable Font Axes of the layer's font.@@ -5280,7 +5282,7 @@ fn text_anim_popups(opts.push("-".into());acts.push((String::new(), json!(null)));for (k, l) in TEXT_ANIMATOR_KINDS {- opts.push(if *k == "-" { "-".into() } else { tr_args("Property: {}", &[&crate::i18n::label(app, "layer.addTextAnimator", l)]) });+ opts.push(if *k == "-" { "-".into() } else { tr_args("Property: {}", &[&crate::i18n::command_label("layer.addTextAnimator", l)]) });acts.push(if *k == "-" {(String::new(), json!(null))} else {