From eeadb0ffa34a5756fc187f9e564bbe01e439afbe Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 29 Jan 2026 22:01:32 +0100 Subject: Welcome Bulgaria! Здравей България! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/countries.go | 6 ++---- src/i18n/gen.py | 2 +- src/i18n/locales.gen.go | 23 ++++++++++++----------- src/templates/index.html.tmpl | 5 ++--- 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 @@ -14,6 +14,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, @@ -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 €"}, }, { @@ -227,15 +237,6 @@ var locales = [...]LocaleInfo{ DateFormat: "2.01.2006", 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"), 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 @@
-

- {{ .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." }}

-{{ end }} \ No newline at end of file +{{ end }} -- cgit v1.2.3