From a675a983424f1f8d103fc12d55ef4f7129a92d62 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Fri, 24 Jul 2026 13:07:37 +0200 Subject: qol: tui jump-to-date (d) + lectio --citation/--week + hide bt for traditional web; v0.10.0 --- internal/i18n/i18n.go | 9 +++++++-- internal/i18n/i18n_test.go | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'internal/i18n') diff --git a/internal/i18n/i18n.go b/internal/i18n/i18n.go index d9443ea..f0e14ec 100644 --- a/internal/i18n/i18n.go +++ b/internal/i18n/i18n.go @@ -24,6 +24,9 @@ type UI struct { // error string directly onto them, no separator added at the call site). FooterKeys, Loading, NoReadingsFor, ErrorPrefix, ErrorHint string + // JumpPrompt is the TUI's "d" date-jump prompt label. + JumpPrompt string + // Reader-mode (lectio-ui --reader) chrome. ReaderTitle, ReaderPickKeys, ReaderReadKeys, ReaderNoText, ReaderNoMatch string @@ -83,11 +86,12 @@ var enUI = UI{ "aklamacja": "Acclamation", "ewangelia": "Gospel", }, - FooterKeys: "tab/⇧tab version ←/→ day j/k scroll space/b page g/G top/bottom r refresh q quit", + FooterKeys: "tab/⇧tab version ←/→ day d date j/k scroll space/b page g/G top/bottom r refresh q quit", Loading: "loading…", NoReadingsFor: "no readings for ", ErrorPrefix: "error: ", ErrorHint: "change date (←/→) or refresh (r)", + JumpPrompt: "go to date (YYYY-MM-DD)", ReaderTitle: "reader — pick a book", ReaderPickKeys: "type to filter ↑/↓ move enter open esc quit", ReaderReadKeys: "n/p chapter tab/⇧tab version j/k scroll space page g/G ends esc books q quit", @@ -134,11 +138,12 @@ var plUI = UI{ "aklamacja": "Aklamacja", "ewangelia": "Ewangelia", }, - FooterKeys: "tab/⇧tab wersja ←/→ dzień j/k przewiń spacja/b strona g/G góra/dół r odśwież q wyjście", + FooterKeys: "tab/⇧tab wersja ←/→ dzień d data j/k przewiń spacja/b strona g/G góra/dół r odśwież q wyjście", Loading: "ładowanie…", NoReadingsFor: "brak czytań na ", ErrorPrefix: "błąd: ", ErrorHint: "zmień datę (←/→) lub odśwież (r)", + JumpPrompt: "przejdź do daty (RRRR-MM-DD)", ReaderTitle: "czytnik — wybierz księgę", ReaderPickKeys: "wpisz, by filtrować ↑/↓ ruch enter otwórz esc wyjście", ReaderReadKeys: "n/p rozdział tab/⇧tab wersja j/k przewiń spacja strona g/G końce esc księgi q wyjście", diff --git a/internal/i18n/i18n_test.go b/internal/i18n/i18n_test.go index 381f87b..79479e8 100644 --- a/internal/i18n/i18n_test.go +++ b/internal/i18n/i18n_test.go @@ -50,10 +50,10 @@ func TestTUIStrings(t *testing.T) { en := Get("en") pl := Get("pl") - if en.FooterKeys != "tab/⇧tab version ←/→ day j/k scroll space/b page g/G top/bottom r refresh q quit" { + if en.FooterKeys != "tab/⇧tab version ←/→ day d date j/k scroll space/b page g/G top/bottom r refresh q quit" { t.Errorf("en.FooterKeys = %q", en.FooterKeys) } - if pl.FooterKeys != "tab/⇧tab wersja ←/→ dzień j/k przewiń spacja/b strona g/G góra/dół r odśwież q wyjście" { + if pl.FooterKeys != "tab/⇧tab wersja ←/→ dzień d data j/k przewiń spacja/b strona g/G góra/dół r odśwież q wyjście" { t.Errorf("pl.FooterKeys = %q", pl.FooterKeys) } if en.Loading != "loading…" || pl.Loading != "ładowanie…" { -- cgit v1.3