summaryrefslogtreecommitdiff
path: root/internal/cli/cli.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cli/cli.go')
-rw-r--r--internal/cli/cli.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/internal/cli/cli.go b/internal/cli/cli.go
index b660878..a13f2f1 100644
--- a/internal/cli/cli.go
+++ b/internal/cli/cli.go
@@ -289,17 +289,19 @@ func fetchAndPrint(cfg config.Config, version, date string, all, raw bool, width
return 0
}
-// bannerFor builds the "<Gospel|Readings> — DATE" banner: the "readings"
-// word when every part is shown, "gospel" for the gospel-only default, both
-// localised via i18n.Get(lang) (lang="pl" reproduces ewangelia.py's original
-// Polish wording, just with "—" in place of "na").
+// bannerFor builds the "<Gospel|Readings> <connective> DATE" banner: the
+// "readings" word when every part is shown, "gospel" for the gospel-only
+// default, and the connective between word and date, all localised via
+// i18n.Get(lang) -- lang="pl" reproduces ewangelia.py's original Polish
+// wording exactly ("Ewangelia na DATE" / "Czytania na DATE"); lang="en"
+// gives "Gospel for DATE" / "Readings for DATE".
func bannerFor(lang string, all bool, date string) string {
ui := i18n.Get(lang)
word := ui.BannerGospel
if all {
word = ui.BannerReadings
}
- return word + " — " + date
+ return word + " " + ui.BannerConnective + " " + date
}
// renderSection formats one section as its heading (unless raw) followed by