summaryrefslogtreecommitdiff
path: root/internal/i18n
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 13:07:37 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 13:07:37 +0200
commita675a983424f1f8d103fc12d55ef4f7129a92d62 (patch)
treeb9483bf09f03cb9047a548289556c73a9343bbb0 /internal/i18n
parent55a5c793d04b55892fcddfc753d8526bd5748f03 (diff)
downloadlectio-a675a983424f1f8d103fc12d55ef4f7129a92d62.tar.gz
lectio-a675a983424f1f8d103fc12d55ef4f7129a92d62.zip
qol: tui jump-to-date (d) + lectio --citation/--week + hide bt for traditional web; v0.10.0
Diffstat (limited to 'internal/i18n')
-rw-r--r--internal/i18n/i18n.go9
-rw-r--r--internal/i18n/i18n_test.go4
2 files changed, 9 insertions, 4 deletions
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…" {