i18n: the recovery dialog's relative times ask the catalog

"N minutes ago" and "N hours ago" have rows in all seven catalogs; a Japanese
interface read `保存日時:… {m} minutes ago`.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@deepseek.com>
This commit is contained in:
zitann2020
2026-10-17 00:18:04 +09:00
co-authored by DeepSeek V4.1 Flash
parent 48ad0d1c56
commit 0b3d4631f2
+2 -2
View File
@@ -779,9 +779,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]));