From fc794694b1d83d6856b36ea08df69c2a0861d030 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Apr 2023 14:12:12 -0300 Subject: v2: to translated version in --- v2/src/bin/conf | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'v2/src/bin/conf') diff --git a/v2/src/bin/conf b/v2/src/bin/conf index e4dba61..3b56dbd 100755 --- a/v2/src/bin/conf +++ b/v2/src/bin/conf @@ -155,17 +155,21 @@ if [ -z "${title:-}" ]; then fi if [ -r "$FILENAME".i18n ]; then - translations="$(cat <<-EOF + translations_head="$(awk -F: -v lang="$lang" '$1 != lang{ + printf " \n", + $3, $1 + }' "$FILENAME".i18n)" + translations_body="$(cat <<-EOF EOF )" - printf 'export translations_html="%s"\n' "$(shesc "$translations")" + printf 'export translations_head_html="%s"\n' "$(shesc "$translations_head")" + printf 'export translations_body_html="%s"\n' "$(shesc "$translations_body")" fi if [ -n "${date:-}" ]; then -- cgit v1.3