From: Paul Hänsch Date: Wed, 27 Jul 2022 12:09:12 +0000 (+0200) Subject: localisation fix X-Git-Url: https://git.plutz.net/?p=webpoll;a=commitdiff_plain;h=b23f1f1d91e057cdc60955d742f6a5d870aaccbb localisation fix --- 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