aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-09-02 12:53:24 -0300
committerEuAndreh <eu@euandre.org>2022-09-02 12:53:24 -0300
commit82a81e8a8766c3d73bb63b4504bd0fbddb065ed7 (patch)
tree21f66075ce9832a0d72f319adb955c02559e5773
parentv2/src/bin/extract: Include FILENAME as an argument (and output) (diff)
downloadeuandre.org-82a81e8a8766c3d73bb63b4504bd0fbddb065ed7.tar.gz
euandre.org-82a81e8a8766c3d73bb63b4504bd0fbddb065ed7.tar.xz
v2/src/development/genhtml.sh: Remove fake $(_ "...") translation support
-rwxr-xr-xv2/src/development/genhtml.sh22
1 files changed, 7 insertions, 15 deletions
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
<header>
<nav>
<ul>
- <a href="$(url-for "$LANGUAGE/")">$(_ 'EuAndreh')</a>
- <a href="$(url-for "$(_ 'about.html')")">$(_ 'About')</a>
+ <a href="$(url-for "$LANGUAGE/")">EuAndreh</a>
+ <a href="$(url-for 'about.html')">About</a>
</ul>
</nav>
<hr />
@@ -306,16 +298,16 @@ cat <<-EOF
<hr />
<ul>
<li>
- <img class="svg-icon" src="$(url-for 'static/envelope.svg')" alt="$(_ 'a envelope icon representing an email address')" />
+ <img class="svg-icon" src="$(url-for 'static/envelope.svg')" alt="a envelope icon representing an email address" />
<a href="mailto:eu@euandre.org">eu@euandre.org</a>
</li>
<li>
- <img class="svg-icon" src="$(url-for 'static/lock.svg')" alt="$(_ 'a lock icon representing a GPG public key')" />
+ <img class="svg-icon" src="$(url-for 'static/lock.svg')" alt="a lock icon representing a GPG public key" />
<a href="$(url-for 'static/public.asc.txt')">81F90EC3CD356060</a>
</li>
</ul>
<p>
- $(translate 'The content for this site is licensed under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>. The <a href="https://euandreh.xyz/euandre.org.git">code</a> is <a rel="license" href="https://euandreh.xyz/euandre.org.git/tree/COPYING">AGPLv3 or later</a>. Patches welcome.')
+ The content for this site is licensed under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>. The <a href="https://euandreh.xyz/euandre.org.git">code</a> is <a rel="license" href="https://euandreh.xyz/euandre.org.git/tree/COPYING">AGPLv3 or later</a>. Patches welcome.
</p>
</footer>
</body>