--- /dev/null
+[ -n "$include_languages" ] && return 0
+include_languages="$0"
+
+language="$(HEADER Accept-Language)"; language="${language%%[;,._-]*}"
+case "$language" in
+ de) export LC_TIME=de_DE.UTF-8
+ table_date="%A <br/> %_d. %B %Y"
+ ;;
+ *) export LC_TIME=C
+ table_date="%A <br/> %B %_d, %Y"
+ ;;
+esac
#!/bin/sh
. "${_EXEC}/comments.sh"
+. "${_EXEC}/languages.sh"
id="$(checkid "${PATH_INFO#/}")"
file="${_DATA}/${id}"
local edit="$(GET edit)"
local time date span name yes no maybe yc nc mc
+ table_date="${table_date+"%A <br/> %B %_d, %Y"}"
+
[ "$timelist" ] || return 1
printf '[table .poll [thead\n'
span=0; for time in $timelist; do case $time in
${date}*) span=$((span + 1));;
esac; done
- date -d "$date" +"[th colspan=\"${span}\" . %A <br/> %B %_d, %Y]";
+ date -d "$date" +"[th colspan=\"${span}\" . ${table_date}]";
done
printf '[th]]\n'
fi