mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-30 04:57:54 -06:00
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:
@@ -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 {
|
||||
|
||||
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user