From b23f1f1d91e057cdc60955d742f6a5d870aaccbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 27 Jul 2022 14:09:12 +0200 Subject: [PATCH] localisation fix --- languages.sh | 3 ++- poll.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/languages.sh b/languages.sh index c3649f4..3dafc3c 100644 --- a/languages.sh +++ b/languages.sh @@ -4,7 +4,8 @@ include_languages="$0" language="$(HEADER Accept-Language)"; language="${language%%[;,._-]*}" case "$language" in de) export LC_TIME=de_DE.UTF-8 - table_date="%A
%_d. %B %Y" + # full month names may lead to awkward line breaks + table_date="%A
%_d. %b. %Y" ;; *) export LC_TIME=C table_date="%A
%B %_d, %Y" diff --git a/poll.sh b/poll.sh index 240a155..8e55600 100644 --- a/poll.sh +++ b/poll.sh @@ -75,7 +75,7 @@ table_poll() { local edit="$(GET edit)" local time date span name yes no maybe yc nc mc - table_date="${table_date+"%A
%B %_d, %Y"}" + table_date="${table_date:-"%A
%B %_d, %Y"}" [ "$timelist" ] || return 1 -- 2.39.2