Merge pull request #1669 from zitann2020/i18n/ja-comp-settings

i18n: two labels that already had a catalog row were formatted in English
This commit is contained in:
BFlat
2026-10-30 00:06:09 +07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ pub fn show(
let (ow, oh) = (d.width, d.height);
let r = ui.add(crate::widgets::drag_value(egui::DragValue::new(&mut d.width).range(4..=30000).suffix(" px")));
auto.add("dialog.comp.width", r.rect, "Width");
let lbl = format!("Lock Aspect Ratio to {}", aspect_label(ow as f64, oh as f64));
let lbl = tr_args("Lock Aspect Ratio to {}", &[&(aspect_label(ow as f64, oh as f64))]);
let r = ui.checkbox(&mut d.lock_aspect, lbl);
auto.add("dialog.comp.lockAspect", r.rect, "Lock Aspect Ratio");
if d.lock_aspect && ow != d.width && ow > 0 {
+2 -2
View File
@@ -803,9 +803,9 @@ pub fn recovery(app: &mut EffectcraftApp, ctx: &egui::Context, t: &Tokens) {
if m < 1 {
"less than a minute ago".to_string()
} else if m < 120 {
format!("{m} minutes ago")
tr_args("{} minutes ago", &[&m])
} else {
format!("{} hours ago", m / 60)
tr_args("{} hours ago", &[&(m / 60)])
}
});
ui.label(tr_args("Latest auto-save: {}", &[&a]));