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/web/server_test.go | |
| 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/web/server_test.go')
| -rw-r--r-- | internal/web/server_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
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) } }) |
