From b12aa32fb61e9228e3ae4f30e8d6362380636fd7 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 20 Jun 2023 22:22:22 +0200 Subject: Begin work on Portuguese translations --- build | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'build') diff --git a/build b/build index 7924581..a9d0044 100755 --- a/build +++ b/build @@ -66,12 +66,16 @@ compile_for_lang() { sed -Ei ' /|s|([^<]*)|
\1
| ' $nod/index.html - gawk -v denom=$denom -v lang=$1 ' + gawk -v lang=$1 ' @include "scripts/getcls.awk" function fmt(n) { - return lang ~ /(en|ga|mt|nl)/ ? "€" n : n " €" + return lang ~ /(en|ga|mt|nl)/ ? "€" n : n " €" + } + + BEGIN { + FS = "\t" } $1 == "TN" { @@ -84,11 +88,15 @@ compile_for_lang() { END { for (i = 1; i <= length(col); i++) { printf \ - "%s%s\n", + "%s"\ + "%s\n", fmt(col[i][0]), getcls(col[i][2]), col[i][1] } + print "MARKER LOL" } - ' data/notes | xfsub '' - $nod/index.html + ' data/notes \ + | last-of-design.sed \ + | xfsub '' - $nod/index.html for CC in `grep -Eo '^[A-Z]{2}' data/coins | uniq`; do cc=`echo $CC | tr A-Z a-z` -- cgit v1.2.3