From ca22928ae208d8ff3725a0f5f0f8e3f5d7118857 Mon Sep 17 00:00:00 2001 From: Basit Balogun Date: Sat, 25 Jul 2026 17:41:57 +0100 Subject: [PATCH] strutil/quantity: make "ages!" duration-overflow string translatable Every other unit suffix in FormatDuration is routed through i18n.G so translators can localize it, but the overflow fallback string was a bare Go literal, unlike everything else in the file. Fixes: LP#1986413 --- strutil/quantity/quantity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strutil/quantity/quantity.go b/strutil/quantity/quantity.go index 7b462f4668c..ff8eb5c1682 100644 --- a/strutil/quantity/quantity.go +++ b/strutil/quantity/quantity.go @@ -195,7 +195,7 @@ func FormatDuration(dt float64) string { if dt > math.MaxUint64 || uint64(dt) == 0 { // TODO: figure out exactly what overflow causes the ==0 - return "ages!" + return i18n.G("ages!") } return FormatAmount(uint64(dt), 4) + years