X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=templates%2Fframe.html.sh;h=2cc13d13231cb638d45ff61807e2ce3a8fdf422b;hb=2805ee334bead55e2ab08b7c4dbdbf07dcebf8e9;hp=27d946668922195dd2252e731e82a5acb0563f54;hpb=10dc80cb808b22e1ffe613b3a6b5ec82691b08dc;p=lobster
diff --git a/templates/frame.html.sh b/templates/frame.html.sh
index 27d9466..2cc13d1 100755
--- a/templates/frame.html.sh
+++ b/templates/frame.html.sh
@@ -1,4 +1,6 @@
-# Copyright 2014 Paul Hänsch
+#!/bin/zsh
+
+# Copyright 2014, 2015 Paul Hänsch
#
# This file is part of Confetti.
#
@@ -15,19 +17,22 @@
# You should have received a copy of the GNU Affero General Public License
# along with Confetti. If not, see .
+. "${_EXEC}/templates/text_frame.sh"
+[ -x "${_EXEC}/templates/text_${PAGE}.sh" ] && . "${_EXEC}/templates/text_${PAGE}.sh"
+
cat <
- $($PAGE title)
+ $(l10n p_${PAGE})
- $(NAVIGATION |sed -r 's:^([^ ]+) (.+)$:\2:g')
+ $(debug NAVIGATION = "$NAVIGATION"; for each in ${NAVIGATION}; do printf %s "$(l10n "p_${each}")"; done)