-#!/bin/zsh
-
-# Copyright 2014, 2015, 2017 Paul Hänsch
+# Copyright 2014, 2015, 2016, 2019, 2021 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/>.
-cat <<EOF
-[!DOCTYPE HTML]
+l10n(){
+ local word
+ [ $# -eq 0 ] && read -r word || word="$*"
+ case $word in
+ cat_remove) printf %s "-";;
+ cat_add) printf %s "+";;
+ cat_newlabel) printf %s "neue Kategorie";;
+ cat_update) printf %s "Zuweisungen übernehmen";;
+ categories_label) printf %s "Kategorien";;
-[html [head [title $(l10n p_${PAGE}) ]
- [meta name="viewport" content="width=device-width"]
- [link rel="stylesheet" href="/common.css"]
- [link rel="stylesheet" href="?static=${PAGE}.css"]
-] [body class="$PAGE" id="CONFIGURE"
- [div class="NAVIGATION"
- [a "/cards/" Cards]
- ]
-]]'
-EOF
+ *) l10n_global "$word";;
+ esac
+}