X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftext_frame.sh;fp=pages%2Ferror.sh;h=b76b58439baf3f9e35b012bcf0481f9cfd83720a;hp=c42df35f920613a79a42a469b5c0591054d63d1d;hb=badf769c566295e6ceaf9a9d80de664c227666a4;hpb=4e49d483fd5121fda86a33cf583c15afa6556ad1
diff --git a/pages/error.sh b/templates/text_frame.sh
similarity index 72%
rename from pages/error.sh
rename to templates/text_frame.sh
index c42df35..b76b584 100755
--- a/pages/error.sh
+++ b/templates/text_frame.sh
@@ -1,6 +1,4 @@
-#!/bin/sh
-
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2015 Paul Hänsch
#
# This file is part of Confetti.
#
@@ -17,16 +15,13 @@
# You should have received a copy of the GNU Affero General Public License
# along with Confetti. If not, see .
-case "$1" in
- title)
- ;;
- css)
- ;;
- body)
-cat <
-Quoth the server: 404
-EOF
- ;;
-esac
-
+declare -A item_name
+
+item_name[p_attendees]="Teilnehmende"
+item_name[p_courses]="Kurse"
+item_name[p_email]="Email"
+item_name[p_error]="Fehler"
+
+l10n() {
+ [ -n "$item_name[$1]" ] && echo -n "$item_name[$1]" || echo -n "$1"
+}