mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-30 13:08:07 -06:00
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:
co-authored by
DeepSeek V4.1 Flash
parent
48ad0d1c56
commit
0b3d4631f2
@@ -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]));
|
||||
|
||||
Reference in New Issue
Block a user