aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-01-29 22:01:32 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-01-29 22:06:46 +0100
commiteeadb0ffa34a5756fc187f9e564bbe01e439afbe (patch)
tree3965d8b72a3b68fea1391d53143d2e4f0bc7b8aa
parentc61d7f22a55698265e9c0994c3c376e2ef55b94f (diff)
Welcome Bulgaria! Здравей България!HEADmaster
-rw-r--r--src/countries.go6
-rwxr-xr-xsrc/i18n/gen.py2
-rw-r--r--src/i18n/locales.gen.go23
-rw-r--r--src/templates/index.html.tmpl5
4 files changed, 17 insertions, 19 deletions
diff --git a/src/countries.go b/src/countries.go
index d168266..b0e3fea 100644
--- a/src/countries.go
+++ b/src/countries.go
@@ -17,8 +17,7 @@ var countryCodeToName = map[string]string{
"ad": "Andorra",
"at": "Austria",
"be": "Belgium",
- /* TODO(2026): Add Bulgaria */
- /* "bg": "Bulgaria", */
+ "bg": "Bulgaria",
"cy": "Cyprus",
"de": "Germany",
"ee": "Estonia",
@@ -47,8 +46,7 @@ func sortedCountries(p i18n.Printer) []country {
{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", "Place 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")},
diff --git a/src/i18n/gen.py b/src/i18n/gen.py
index 9271cc0..1bb2585 100755
--- a/src/i18n/gen.py
+++ b/src/i18n/gen.py
@@ -33,6 +33,7 @@ class Locale:
LOCALES = (
+ Locale(bcp="bg", eurozonep=True, enabledp=False),
Locale(bcp="ca", eurozonep=True, enabledp=False),
Locale(bcp="de", eurozonep=True, enabledp=False),
Locale(bcp="el", eurozonep=True, enabledp=False),
@@ -54,7 +55,6 @@ LOCALES = (
Locale(bcp="sl", eurozonep=True, enabledp=False),
Locale(bcp="sv", eurozonep=True, enabledp=True),
Locale(bcp="tr", eurozonep=True, enabledp=False),
- Locale(bcp="bg", eurozonep=False, enabledp=False),
Locale(bcp="ro", eurozonep=False, enabledp=False),
Locale(bcp="uk", eurozonep=False, enabledp=False),
)
diff --git a/src/i18n/locales.gen.go b/src/i18n/locales.gen.go
index 58d059e..3f6deec 100644
--- a/src/i18n/locales.gen.go
+++ b/src/i18n/locales.gen.go
@@ -15,6 +15,16 @@ type LocaleInfo struct {
var locales = [...]LocaleInfo{
{
+ Bcp: "bg",
+ Eurozonep: true,
+ Name: gotext.GetC("Български", "Language Name"),
+ GroupSeparator: ' ',
+ DecimalSeparator: ',',
+ PercentFormat: "123%",
+ DateFormat: "2.01.06 г.",
+ MonetaryFormats: [2]string{"123 €", "-123 €"},
+ },
+ {
Bcp: "ca",
Eurozonep: true,
Name: gotext.GetC("Català", "Language Name"),
@@ -102,7 +112,7 @@ var locales = [...]LocaleInfo{
GroupSeparator: ',',
DecimalSeparator: '.',
PercentFormat: "123%",
- DateFormat: "02/01/2006",
+ DateFormat: "2/1/06",
MonetaryFormats: [2]string{"€123", "-€123"},
},
{
@@ -203,7 +213,7 @@ var locales = [...]LocaleInfo{
GroupSeparator: '.',
DecimalSeparator: ',',
PercentFormat: "123 %",
- DateFormat: "2. 1. 06",
+ DateFormat: "2. 1. 2006",
MonetaryFormats: [2]string{"123 €", "-123 €"},
},
{
@@ -228,15 +238,6 @@ var locales = [...]LocaleInfo{
MonetaryFormats: [2]string{"€123", "-€123"},
},
{
- Bcp: "bg",
- Name: gotext.GetC("Български", "Language Name"),
- GroupSeparator: ' ',
- DecimalSeparator: ',',
- PercentFormat: "123%",
- DateFormat: "2.01.06 г.",
- MonetaryFormats: [2]string{"123 €", "-123 €"},
- },
- {
Bcp: "ro",
Name: gotext.GetC("Română", "Language Name"),
GroupSeparator: '.',
diff --git a/src/templates/index.html.tmpl b/src/templates/index.html.tmpl
index d560c64..3d98bb4 100644
--- a/src/templates/index.html.tmpl
+++ b/src/templates/index.html.tmpl
@@ -17,9 +17,8 @@
</hgroup>
</header>
<main class="container">
- <!-- TODO(2026): s/26/27/; Welcome Bulgaria! -->
<p>
- {{ .Get "Welcome to the Euro Cash Wiki! This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors." }}
+ {{ .Get "Welcome to the Euro Cash Wiki! This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 27 countries and over 350 million people. We also have dedicated sections of the site for collectors." }}
</p>
</main>
-{{ end }} \ No newline at end of file
+{{ end }}