From 82a81e8a8766c3d73bb63b4504bd0fbddb065ed7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 2 Sep 2022 12:53:24 -0300 Subject: v2/src/development/genhtml.sh: Remove fake $(_ "...") translation support --- v2/src/development/genhtml.sh | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'v2/src/development') diff --git a/v2/src/development/genhtml.sh b/v2/src/development/genhtml.sh index 26da89e..bcac28c 100755 --- a/v2/src/development/genhtml.sh +++ b/v2/src/development/genhtml.sh @@ -90,14 +90,6 @@ eval "$(assert-arg "$FILENAME" 'FILENAME')" # Utility functions # -translate() { - printf '%s' "$1" -} - -_() { - translate "$1" | htmlesc -} - SEEN_SLUGS="$(mkstemp)" slugify_once() { SLUG="$(printf '%s' "$1" | slugify)${2:+-$2}" @@ -239,8 +231,8 @@ eval "$( ' "$FILENAME" )" -SITE_NAME="$(_ "EuAndreh's website")" -TITLE="$(_ "${TITLE:-$SITE_NAME}")" +SITE_NAME="EuAndreh's website" +TITLE="${TITLE:-$SITE_NAME}" URI_TITLE="$(printf '%s' "$TITLE" | uri)" URL="$(printf '%s' "$FILENAME" | sed -e 's|^src/content/||' -e 's|md$|html|')" @@ -283,8 +275,8 @@ cat <<-EOF

@@ -306,16 +298,16 @@ cat <<-EOF

- $(translate 'The content for this site is licensed under CC BY-SA 4.0. The code is AGPLv3 or later. Patches welcome.') + The content for this site is licensed under CC BY-SA 4.0. The code is AGPLv3 or later. Patches welcome.

-- cgit v1.2.3