aboutsummaryrefslogtreecommitdiff
path: root/internal/render/render_test.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 09:55:36 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 09:55:36 +0200
commita865374755480a4aef2a6156afccdf08a91422ea (patch)
tree74caa0e64574e491a5620300c3b5544948d0a412 /internal/render/render_test.go
parent1faf9f1b03d7d257307f6ea0500063e4be939d17 (diff)
downloadlectio-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/render/render_test.go')
-rw-r--r--internal/render/render_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/render/render_test.go b/internal/render/render_test.go
index affaaf8..496dc23 100644
--- a/internal/render/render_test.go
+++ b/internal/render/render_test.go
@@ -7,12 +7,12 @@ import (
"github.com/lukaszkasprzak/lectio/internal/liturgy"
)
-func TestGatherPLDedup(t *testing.T) {
+func TestGatherBTDedup(t *testing.T) {
sec := liturgy.Section{
Heading: "Psalm (Ps 1)",
Paragraphs: [][]string{{"stanza one"}, {"refrain"}, {"stanza two"}, {"refrain"}},
}
- _, blocks := GatherVersion("pl", sec, "new", "pl")
+ _, blocks := GatherVersion("bt", sec, "new", "pl")
n := 0
for _, b := range blocks {
if b == "refrain" {
@@ -127,10 +127,10 @@ func TestGatherVersionNoReferenceErrLang(t *testing.T) {
}
func TestOfflineVersions(t *testing.T) {
- got := OfflineVersions([]string{"pl", "wuj", "vul"})
+ got := OfflineVersions([]string{"bt", "wuj", "vul"})
for _, v := range got {
- if v == "pl" {
- t.Error("pl not dropped offline")
+ if v == "bt" {
+ t.Error("bt not dropped offline")
}
}
}
@@ -152,17 +152,17 @@ func TestGatherVersesBible(t *testing.T) {
}
}
-func TestGatherVersesPL(t *testing.T) {
+func TestGatherVersesBT(t *testing.T) {
sec := liturgy.Section{
Heading: "Psalm (Ps 1)",
Paragraphs: [][]string{{"stanza one"}},
}
- _, verses, versified := GatherVerses("pl", sec, "new", "pl")
+ _, verses, versified := GatherVerses("bt", sec, "new", "pl")
if versified {
- t.Error("versified = true, want false for pl (paragraph text, no verse numbers)")
+ t.Error("versified = true, want false for bt (paragraph text, no verse numbers)")
}
if verses != nil {
- t.Errorf("verses = %+v, want nil for pl", verses)
+ t.Errorf("verses = %+v, want nil for bt", verses)
}
}