diff options
Diffstat (limited to 'server/src/routes/ui/node.rs')
-rw-r--r-- | server/src/routes/ui/node.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index e6f0605..ce4a620 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -411,11 +411,12 @@ fn format_duration_mode(mut d: f64, long_units: bool, lang: Language) -> String if h > 0. { if long_units { let long = tr(lang, if h != 1. { long_pl } else { long }); + let and = format!(" {} ", tr(lang, "time.and_join")); // TODO breaks if seconds is zero write!( s, "{}{h} {long}{}", - if k != 1. { "" } else { " and " }, + if k != 1. { "" } else { &and }, if k > 60. { ", " } else { "" }, ) .unwrap(); |