summaryrefslogtreecommitdiff
path: root/internal/tui/tui.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/tui/tui.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/tui/tui.go')
-rw-r--r--internal/tui/tui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tui/tui.go b/internal/tui/tui.go
index 16cb304..db0e8da 100644
--- a/internal/tui/tui.go
+++ b/internal/tui/tui.go
@@ -43,7 +43,7 @@ type errMsg struct {
err error
}
-// New builds the initial model: cfg.Offline drops "pl" from the version
+// New builds the initial model: cfg.Offline drops "bt" from the version
// list (render.OfflineVersions). startVersion selects the active version
// (falling back to cfg.DefaultVersion when ""), still resolved through
// EffectiveVersions/indexOf so an unavailable version falls back to index 0.
@@ -334,9 +334,9 @@ func (m Model) bodyLines(w int) []string {
_, blocks := render.GatherVersion(ver, sec, m.cfg.Lectionary, m.cfg.UILanguage)
numW := maxNumWidth(blocks)
- // The refrain-italic only applies to the pl responsorial-psalm block
+ // The refrain-italic only applies to the bt responsorial-psalm block
// (its first, deduped paragraph); bible versions have no refrain block.
- isPsalm := sec.PartID == "psalm" && ver == "pl"
+ isPsalm := sec.PartID == "psalm" && ver == "bt"
for bi, b := range blocks {
refrain := isPsalm && bi == 0
lines = append(lines, styleBlock(b, refrain, w, numW)...)