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/tui/tui_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/tui/tui_test.go')
| -rw-r--r-- | internal/tui/tui_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/tui/tui_test.go b/internal/tui/tui_test.go index 2b966ee..85a8175 100644 --- a/internal/tui/tui_test.go +++ b/internal/tui/tui_test.go @@ -10,8 +10,8 @@ import ( ) func TestVersionCycle(t *testing.T) { - m := New(config.Config{Versions: []string{"pl", "wuj", "vul"}, DefaultVersion: "pl"}, "", "") - if m.version() != "pl" { + m := New(config.Config{Versions: []string{"bt", "wuj", "vul"}, DefaultVersion: "bt"}, "", "") + if m.version() != "bt" { t.Fatalf("start = %q", m.version()) } m = m.cycleVersion(+1) @@ -19,16 +19,16 @@ func TestVersionCycle(t *testing.T) { t.Errorf("after tab = %q", m.version()) } m = m.cycleVersion(-1) - if m.version() != "pl" { + if m.version() != "bt" { t.Errorf("after shift-tab = %q", m.version()) } } -func TestOfflineDropsPL(t *testing.T) { - m := New(config.Config{Versions: []string{"pl", "wuj", "vul"}, DefaultVersion: "pl", Offline: true}, "", "") +func TestOfflineDropsBT(t *testing.T) { + m := New(config.Config{Versions: []string{"bt", "wuj", "vul"}, DefaultVersion: "bt", Offline: true}, "", "") for _, v := range m.versions { - if v == "pl" { - t.Error("offline model kept pl") + if v == "bt" { + t.Error("offline model kept bt") } } } |
