Skip to content

Commit ca22928

Browse files
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
1 parent 89c2bd8 commit ca22928

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

strutil/quantity/quantity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func FormatDuration(dt float64) string {
195195

196196
if dt > math.MaxUint64 || uint64(dt) == 0 {
197197
// TODO: figure out exactly what overflow causes the ==0
198-
return "ages!"
198+
return i18n.G("ages!")
199199
}
200200

201201
return FormatAmount(uint64(dt), 4) + years

0 commit comments

Comments
 (0)