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/web/server_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/web/server_test.go') diff --git a/internal/web/server_test.go b/internal/web/server_test.go index 32ee412..00da039 100644 --- a/internal/web/server_test.go +++ b/internal/web/server_test.go @@ -139,18 +139,18 @@ func TestServer(t *testing.T) { } }) - t.Run("readings partial interlinear substitutes pl", func(t *testing.T) { + t.Run("readings partial interlinear substitutes bt", func(t *testing.T) { rec := httptest.NewRecorder() - srv.ServeHTTP(rec, httptest.NewRequest("GET", "/readings?date=2026-07-22&v=pl&display=interlinear", nil)) + srv.ServeHTTP(rec, httptest.NewRequest("GET", "/readings?date=2026-07-22&v=bt&display=interlinear", nil)) if rec.Code != http.StatusOK { t.Fatalf("status = %d, want 200", rec.Code) } body := rec.Body.String() if !strings.Contains(body, "Wujek") { - t.Errorf("pl should be substituted with wuj in interlinear mode: %q", body) + t.Errorf("bt should be substituted with wuj in interlinear mode: %q", body) } - if strings.Contains(body, "Polski (niedziela.pl)") { - t.Errorf("pl paragraph column should not appear in interlinear mode: %q", body) + if strings.Contains(body, "Biblia Tysiąclecia (niedziela.pl)") { + t.Errorf("bt paragraph column should not appear in interlinear mode: %q", body) } }) -- cgit v1.3