diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 09:55:36 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-24 09:55:36 +0200 |
| commit | a865374755480a4aef2a6156afccdf08a91422ea (patch) | |
| tree | 74caa0e64574e491a5620300c3b5544948d0a412 /internal/i18n | |
| parent | 1faf9f1b03d7d257307f6ea0500063e4be939d17 (diff) | |
| download | lectio-a865374755480a4aef2a6156afccdf08a91422ea.tar.gz lectio-a865374755480a4aef2a6156afccdf08a91422ea.zip | |
rename the pl scripture version to bt (Biblia Tysiąclecia); v0.4.0
The niedziela.pl scraped Polish paragraph text is the Biblia Tysiąclecia
translation; rename its version code from "pl" to "bt" and its i18n label
to "Biblia Tysiąclecia (niedziela.pl)" everywhere the scripture VERSION is
meant, across config, i18n, render, web, tui, cli and both binaries' help
text. Language-role "pl" (ui_language, traditional_lang, i18n.Get lang,
--lang validation) is untouched. Behavior is identical -- bt is still
dropped for offline/traditional and substituted with wuj.
Diffstat (limited to 'internal/i18n')
| -rw-r--r-- | internal/i18n/i18n.go | 6 | ||||
| -rw-r--r-- | internal/i18n/i18n_test.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/internal/i18n/i18n.go b/internal/i18n/i18n.go index 4d034a5..a108323 100644 --- a/internal/i18n/i18n.go +++ b/internal/i18n/i18n.go @@ -8,7 +8,7 @@ package i18n // UI is one language's complete set of chrome strings. type UI struct { // Version names each bible version for column headers / prose, keyed by - // version code (pl, wuj, vul, grb, drb). + // version code (bt, wuj, vul, grb, drb). Version map[string]string // PartLabel names each modern-lectionary section's heading label word, @@ -64,7 +64,7 @@ func Get(lang string) UI { var enUI = UI{ Version: map[string]string{ - "pl": "Polish (niedziela.pl)", + "bt": "Biblia Tysiąclecia (niedziela.pl)", "wuj": "Wujek (Polish)", "vul": "Vulgate (Latin)", "grb": "Greek", @@ -107,7 +107,7 @@ var enUI = UI{ var plUI = UI{ Version: map[string]string{ - "pl": "Polski (niedziela.pl)", + "bt": "Biblia Tysiąclecia (niedziela.pl)", "wuj": "Wujek (pol.)", "vul": "Wulgata (lac.)", "grb": "Grecki", diff --git a/internal/i18n/i18n_test.go b/internal/i18n/i18n_test.go index 59771a8..381f87b 100644 --- a/internal/i18n/i18n_test.go +++ b/internal/i18n/i18n_test.go @@ -28,8 +28,8 @@ func TestVersionLabels(t *testing.T) { cases := []struct { lang, code, want string }{ - {"en", "pl", "Polish (niedziela.pl)"}, - {"pl", "pl", "Polski (niedziela.pl)"}, + {"en", "bt", "Biblia Tysiąclecia (niedziela.pl)"}, + {"pl", "bt", "Biblia Tysiąclecia (niedziela.pl)"}, {"en", "wuj", "Wujek (Polish)"}, {"pl", "wuj", "Wujek (pol.)"}, {"en", "vul", "Vulgate (Latin)"}, |
