-#!/bin/sh
-
-# Copyright 2014 Paul Hänsch
+# Copyright 2014, 2015 Paul Hänsch
#
# This file is part of Confetti.
#
# You should have received a copy of the GNU Affero General Public License
# along with Confetti. If not, see <http://www.gnu.org/licenses/>.
-case "$1" in
- title)
- ;;
- css)
- ;;
- body)
-cat <<EOF
-Page not found or nevermore<br />
-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"
+}