From e6aa239fc0ab15da036d10b5bd9c94dd4f0c4159 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 26 Sep 2024 21:05:09 +0200 Subject: Rename .Money to .M for consistency with .T and .N --- src/i18n.go | 2 +- src/templates/coins-mintages.html.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/i18n.go b/src/i18n.go index eaac4cf..2eb883c 100644 --- a/src/i18n.go +++ b/src/i18n.go @@ -222,7 +222,7 @@ func (p Printer) Date(d time.Time) string { } /* TODO: Try to use a decimal type here */ -func (p Printer) Money(val float64, round bool) string { +func (p Printer) M(val float64, round bool) string { var valstr string /* Hack to avoid gotext writing these two ‘translations’ into the diff --git a/src/templates/coins-mintages.html.tmpl b/src/templates/coins-mintages.html.tmpl index b410e6e..4ac29e8 100644 --- a/src/templates/coins-mintages.html.tmpl +++ b/src/templates/coins-mintages.html.tmpl @@ -73,7 +73,7 @@ {{ .T "Year" }} {{ with $p := .Printer }} {{ range denoms }} - {{ $p.Money . false }} + {{ $p.M . false }} {{ end }} {{ end }} -- cgit v1.2.3