From a865374755480a4aef2a6156afccdf08a91422ea Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Fri, 24 Jul 2026 09:55:36 +0200 Subject: rename the pl scripture version to bt (Biblia Tysiąclecia); v0.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- internal/i18n/i18n.go | 6 +++--- internal/i18n/i18n_test.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/i18n') 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)"}, -- cgit v1.3