summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-26 21:05:09 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-26 21:05:09 +0200
commite6aa239fc0ab15da036d10b5bd9c94dd4f0c4159 (patch)
treeb4cd0670d01e091625a3d9a6cf298050be45cfb9
parentb21a6c4a1e802b4fce2b76902f86805611ba8805 (diff)
Rename .Money to .M for consistency with .T and .N
-rw-r--r--src/i18n.go2
-rw-r--r--src/templates/coins-mintages.html.tmpl2
2 files changed, 2 insertions, 2 deletions
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 @@
<th>{{ .T "Year" }}</th>
{{ with $p := .Printer }}
{{ range denoms }}
- <th>{{ $p.Money . false }}</th>
+ <th>{{ $p.M . false }}</th>
{{ end }}
{{ end }}
</thead>