diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-08-02 15:44:51 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-08-02 15:44:51 +0200 |
commit | 1cff70da909b86878f2acab56b9fd708989dc6cf (patch) | |
tree | 3df045d7b6b3052f3a308265a5c970f4ef962499 /src | |
parent | 3efca6ce7c0dc039b2bc9d8865e3d7fa4754e10b (diff) |
Use the ‘Place Name’ context for all places
Diffstat (limited to 'src')
-rw-r--r-- | src/countries.go | 50 | ||||
-rw-r--r-- | src/templates/banknotes-codes.html.tmpl | 88 | ||||
-rw-r--r-- | src/templates/coins-designs-de.html.tmpl | 10 |
3 files changed, 74 insertions, 74 deletions
diff --git a/src/countries.go b/src/countries.go index 8e69f50..657cac8 100644 --- a/src/countries.go +++ b/src/countries.go @@ -15,32 +15,32 @@ type country struct { func sortedCountries(p i18n.Printer) []country { xs := []country{ - {Code: "ad", Name: p.GetC("Andorra", "Country Name")}, - {Code: "at", Name: p.GetC("Austria", "Country Name")}, - {Code: "be", Name: p.GetC("Belgium", "Country Name")}, + {Code: "ad", Name: p.GetC("Andorra", "Place Name")}, + {Code: "at", Name: p.GetC("Austria", "Place Name")}, + {Code: "be", Name: p.GetC("Belgium", "Place Name")}, /* TODO(2026): Add Bulgaria */ - /* {Code: "bg", Name: p.GetC("Bulgaria", "Country Name")}, */ - {Code: "cy", Name: p.GetC("Cyprus", "Country Name")}, - {Code: "de", Name: p.GetC("Germany", "Country Name")}, - {Code: "ee", Name: p.GetC("Estonia", "Country Name")}, - {Code: "es", Name: p.GetC("Spain", "Country Name")}, - {Code: "fi", Name: p.GetC("Finland", "Country Name")}, - {Code: "fr", Name: p.GetC("France", "Country Name")}, - {Code: "gr", Name: p.GetC("Greece", "Country Name")}, - {Code: "hr", Name: p.GetC("Croatia", "Country Name")}, - {Code: "ie", Name: p.GetC("Ireland", "Country Name")}, - {Code: "it", Name: p.GetC("Italy", "Country Name")}, - {Code: "lt", Name: p.GetC("Lithuania", "Country Name")}, - {Code: "lu", Name: p.GetC("Luxembourg", "Country Name")}, - {Code: "lv", Name: p.GetC("Latvia", "Country Name")}, - {Code: "mc", Name: p.GetC("Monaco", "Country Name")}, - {Code: "mt", Name: p.GetC("Malta", "Country Name")}, - {Code: "nl", Name: p.GetC("Netherlands", "Country Name")}, - {Code: "pt", Name: p.GetC("Portugal", "Country Name")}, - {Code: "si", Name: p.GetC("Slovenia", "Country Name")}, - {Code: "sk", Name: p.GetC("Slovakia", "Country Name")}, - {Code: "sm", Name: p.GetC("San Marino", "Country Name")}, - {Code: "va", Name: p.GetC("Vatican City", "Country Name")}, + /* {Code: "bg", Name: p.GetC("Bulgaria", "Place Name")}, */ + {Code: "cy", Name: p.GetC("Cyprus", "Place Name")}, + {Code: "de", Name: p.GetC("Germany", "Place Name")}, + {Code: "ee", Name: p.GetC("Estonia", "Place Name")}, + {Code: "es", Name: p.GetC("Spain", "Place Name")}, + {Code: "fi", Name: p.GetC("Finland", "Place Name")}, + {Code: "fr", Name: p.GetC("France", "Place Name")}, + {Code: "gr", Name: p.GetC("Greece", "Place Name")}, + {Code: "hr", Name: p.GetC("Croatia", "Place Name")}, + {Code: "ie", Name: p.GetC("Ireland", "Place Name")}, + {Code: "it", Name: p.GetC("Italy", "Place Name")}, + {Code: "lt", Name: p.GetC("Lithuania", "Place Name")}, + {Code: "lu", Name: p.GetC("Luxembourg", "Place Name")}, + {Code: "lv", Name: p.GetC("Latvia", "Place Name")}, + {Code: "mc", Name: p.GetC("Monaco", "Place Name")}, + {Code: "mt", Name: p.GetC("Malta", "Place Name")}, + {Code: "nl", Name: p.GetC("Netherlands", "Place Name")}, + {Code: "pt", Name: p.GetC("Portugal", "Place Name")}, + {Code: "si", Name: p.GetC("Slovenia", "Place Name")}, + {Code: "sk", Name: p.GetC("Slovakia", "Place Name")}, + {Code: "sm", Name: p.GetC("San Marino", "Place Name")}, + {Code: "va", Name: p.GetC("Vatican City", "Place Name")}, } c := collate.New(language.MustParse(p.Bcp)) slices.SortFunc(xs, func(x, y country) int { diff --git a/src/templates/banknotes-codes.html.tmpl b/src/templates/banknotes-codes.html.tmpl index fcbad40..b86ca4e 100644 --- a/src/templates/banknotes-codes.html.tmpl +++ b/src/templates/banknotes-codes.html.tmpl @@ -62,67 +62,67 @@ <tbody> <tr> <td>D</td> - <td>{{ .GetC "Estonia" "Country Name" }}</td> + <td>{{ .GetC "Estonia" "Place Name" }}</td> </tr> <tr> <td>E</td> - <td>{{ .GetC "Slovakia" "Country Name" }}</td> + <td>{{ .GetC "Slovakia" "Place Name" }}</td> </tr> <tr> <td>F</td> - <td>{{ .GetC "Malta" "Country Name" }}</td> + <td>{{ .GetC "Malta" "Place Name" }}</td> </tr> <tr> <td>G</td> - <td>{{ .GetC "Cyprus" "Country Name" }}</td> + <td>{{ .GetC "Cyprus" "Place Name" }}</td> </tr> <tr> <td>H</td> - <td>{{ .GetC "Slovenia" "Country Name" }}</td> + <td>{{ .GetC "Slovenia" "Place Name" }}</td> </tr> <tr> <td>L</td> - <td>{{ .GetC "Finland" "Country Name" }}</td> + <td>{{ .GetC "Finland" "Place Name" }}</td> </tr> <tr> <td>M</td> - <td>{{ .GetC "Portugal" "Country Name" }}</td> + <td>{{ .GetC "Portugal" "Place Name" }}</td> </tr> <tr> <td>N</td> - <td>{{ .GetC "Austria" "Country Name" }}</td> + <td>{{ .GetC "Austria" "Place Name" }}</td> </tr> <tr> <td>P</td> - <td>{{ .GetC "Netherlands" "Country Name" }}</td> + <td>{{ .GetC "Netherlands" "Place Name" }}</td> </tr> <tr> <td>S</td> - <td>{{ .GetC "Italy" "Country Name" }}</td> + <td>{{ .GetC "Italy" "Place Name" }}</td> </tr> <tr> <td>T</td> - <td>{{ .GetC "Ireland" "Country Name" }}</td> + <td>{{ .GetC "Ireland" "Place Name" }}</td> </tr> <tr> <td>U</td> - <td>{{ .GetC "France" "Country Name" }}</td> + <td>{{ .GetC "France" "Place Name" }}</td> </tr> <tr> <td>V</td> - <td>{{ .GetC "Spain" "Country Name" }}</td> + <td>{{ .GetC "Spain" "Place Name" }}</td> </tr> <tr> <td>X</td> - <td>{{ .GetC "Germany" "Country Name" }}</td> + <td>{{ .GetC "Germany" "Place Name" }}</td> </tr> <tr> <td>Y</td> - <td>{{ .GetC "Greece" "Country Name" }}</td> + <td>{{ .GetC "Greece" "Place Name" }}</td> </tr> <tr> <td>Z</td> - <td>{{ .GetC "Belgium" "Country Name" }}</td> + <td>{{ .GetC "Belgium" "Place Name" }}</td> </tr> </tbody> </table> @@ -142,17 +142,17 @@ <tbody> <tr> <td>D</td> - <td>{{ .GetC "Finland" "Country Name" }}</td> + <td>{{ .GetC "Finland" "Place Name" }}</td> <td>SETEC</td> </tr> <tr> <td>E</td> - <td>{{ .GetC "France" "Country Name" }}</td> + <td>{{ .GetC "France" "Place Name" }}</td> <td>Oberthur</td> </tr> <tr> <td>F</td> - <td>{{ .GetC "Austria" "Country Name" }}</td> + <td>{{ .GetC "Austria" "Place Name" }}</td> <td> <span lang="de"> Österreichische Banknoten- und Sicherheitsdruck GmbH @@ -161,57 +161,57 @@ </tr> <tr> <td>G</td> - <td>{{ .GetC "Netherlands" "Country Name" }}</td> + <td>{{ .GetC "Netherlands" "Place Name" }}</td> <td><span lang="nl">Koninklijke Joh. Enschedé</span></td> </tr> <tr> <td>H</td> - <td>{{ .GetC "United Kingdom" "Country Name" }}</td> + <td>{{ .GetC "United Kingdom" "Place Name" }}</td> <td>De La Rue</td> </tr> <tr> <td>J</td> - <td>{{ .GetC "Italy" "Country Name" }}</td> + <td>{{ .GetC "Italy" "Place Name" }}</td> <td>{{ .Get "Bank of Italy" }}</td> </tr> <tr> <td>K</td> - <td>{{ .GetC "Ireland" "Country Name" }}</td> + <td>{{ .GetC "Ireland" "Place Name" }}</td> <td>{{ .Get "Central Bank of Ireland" }}</td> </tr> <tr> <td>L</td> - <td>{{ .GetC "France" "Country Name" }}</td> + <td>{{ .GetC "France" "Place Name" }}</td> <td>{{ .Get "Bank of France" }}</td> </tr> <tr> <td>M</td> - <td>{{ .GetC "Spain" "Country Name" }}</td> + <td>{{ .GetC "Spain" "Place Name" }}</td> <td>{{ .Get "Royal Mint of Spain" }}</td> </tr> <tr> <td>N</td> - <td>{{ .GetC "Greece" "Country Name" }}</td> + <td>{{ .GetC "Greece" "Place Name" }}</td> <td>{{ .Get "Bank of Greece" }}</td> </tr> <tr> <td>P</td> - <td>{{ .GetC "Germany" "Country Name" }}</td> + <td>{{ .GetC "Germany" "Place Name" }}</td> <td>Giesecke+Devrient GmbH</td> </tr> <tr> <td>R</td> - <td>{{ .GetC "Germany" "Country Name" }}</td> + <td>{{ .GetC "Germany" "Place Name" }}</td> <td><span lang="de">Bundesdruckerei GmbH</span></td> </tr> <tr> <td>T</td> - <td>{{ .GetC "Belgium" "Country Name" }}</td> + <td>{{ .GetC "Belgium" "Place Name" }}</td> <td>{{ .Get "National Bank of Belgium" }}</td> </tr> <tr> <td>U</td> - <td>{{ .GetC "Portugal" "Country Name" }}</td> + <td>{{ .GetC "Portugal" "Place Name" }}</td> <td>Valora S.A.</td> </tr> </tbody> @@ -231,22 +231,22 @@ </thead> <tr> <td>E</td> - <td>{{ .GetC "France" "Country Name" }}</td> + <td>{{ .GetC "France" "Place Name" }}</td> <td>Oberthur</td> </tr> <tr> <td>F</td> - <td>{{ .GetC "Bulgaria" "Country Name" }}</td> + <td>{{ .GetC "Bulgaria" "Place Name" }}</td> <td>Oberthur Fiduciaire AD</td> </tr> <tr> <td>M</td> - <td>{{ .GetC "Portugal" "Country Name" }}</td> + <td>{{ .GetC "Portugal" "Place Name" }}</td> <td>Valora S.A.</td> </tr> <tr> <td>N</td> - <td>{{ .GetC "Austria" "Country Name" }}</td> + <td>{{ .GetC "Austria" "Place Name" }}</td> <td> <span lang="de"> Österreichische Banknoten- und Sicherheitsdruck GmbH @@ -255,52 +255,52 @@ </tr> <tr> <td>P</td> - <td>{{ .GetC "Netherlands" "Country Name" }}</td> + <td>{{ .GetC "Netherlands" "Place Name" }}</td> <td><span lang="nl">Koninklijke Joh. Enschedé</span></td> </tr> <tr> <td>R</td> - <td>{{ .GetC "Germany" "Country Name" }}</td> + <td>{{ .GetC "Germany" "Place Name" }}</td> <td><span lang="de">Bundesdruckerei GmbH</span></td> </tr> <tr> <td>S</td> - <td>{{ .GetC "Italy" "Country Name" }}</td> + <td>{{ .GetC "Italy" "Place Name" }}</td> <td>{{ .Get "Bank of Italy" }}</td> </tr> <tr> <td>T</td> - <td>{{ .GetC "Ireland" "Country Name" }}</td> + <td>{{ .GetC "Ireland" "Place Name" }}</td> <td>{{ .Get "Central Bank of Ireland" }}</td> </tr> <tr> <td>U</td> - <td>{{ .GetC "France" "Country Name" }}</td> + <td>{{ .GetC "France" "Place Name" }}</td> <td>{{ .Get "Bank of France" }}</td> </tr> <tr> <td>V</td> - <td>{{ .GetC "Spain" "Country Name" }}</td> + <td>{{ .GetC "Spain" "Place Name" }}</td> <td>{{ .Get "Royal Mint of Spain" }}</td> </tr> <tr> <td>W</td> - <td>{{ .GetC "Germany" "Country Name" }}</td> + <td>{{ .GetC "Germany" "Place Name" }}</td> <td>Giesecke+Devrient GmbH {{ .Get "Leipzig" }}</td> </tr> <tr> <td>X</td> - <td>{{ .GetC "Germany" "Country Name" }}</td> + <td>{{ .GetC "Germany" "Place Name" }}</td> <td>Giesecke+Devrient GmbH {{ .Get "Munich" }}</td> </tr> <tr> <td>Y</td> - <td>{{ .GetC "Greece" "Country Name" }}</td> + <td>{{ .GetC "Greece" "Place Name" }}</td> <td>{{ .Get "Bank of Greece" }}</td> </tr> <tr> <td>Z</td> - <td>{{ .GetC "Belgium" "Country Name" }}</td> + <td>{{ .GetC "Belgium" "Place Name" }}</td> <td>{{ .Get "National Bank of Belgium" }}</td> </tr> </table> diff --git a/src/templates/coins-designs-de.html.tmpl b/src/templates/coins-designs-de.html.tmpl index ef4cd62..0a7b677 100644 --- a/src/templates/coins-designs-de.html.tmpl +++ b/src/templates/coins-designs-de.html.tmpl @@ -28,23 +28,23 @@ </thead> <tbody> <tr> - <td>{{ .Get "Berlin" }}</td> + <td>{{ .GetC "Berlin" "Place Name" }}</td> <td>A</td> </tr> <tr> - <td>{{ .Get "Munich" }}</td> + <td>{{ .GetC "Munich" "Place Name" }}</td> <td>D</td> </tr> <tr> - <td>{{ .Get "Stuttgart" }}</td> + <td>{{ .GetC "Stuttgart" "Place Name" }}</td> <td>F</td> </tr> <tr> - <td>{{ .Get "Karlsruhe" }}</td> + <td>{{ .GetC "Karlsruhe" "Place Name" }}</td> <td>G</td> </tr> <tr> - <td>{{ .Get "Hamburg" }}</td> + <td>{{ .GetC "Hamburg" "Place Name" }}</td> <td>J</td> </tr> </tbody> |