summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-06-20 22:22:22 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-06-20 22:22:22 +0200
commitb12aa32fb61e9228e3ae4f30e8d6362380636fd7 (patch)
treed79063f6e0c07723e3388b9aa79cfcc7cf5bf878 /build
parent661b75adb2535adf2ced98ed415249f4a8055df5 (diff)
Begin work on Portuguese translations
Diffstat (limited to 'build')
-rwxr-xr-xbuild16
1 files changed, 12 insertions, 4 deletions
diff --git a/build b/build
index 7924581..a9d0044 100755
--- a/build
+++ b/build
@@ -66,12 +66,16 @@ compile_for_lang() {
sed -Ei '
/<nav>/,\|</nav>|s|<a href=/../euro/tn>([^<]*)</a>|<div class=selected>\1</div>|
' $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 "&nbsp;€"
+ }
+
+ BEGIN {
+ FS = "\t"
}
$1 == "TN" {
@@ -84,11 +88,15 @@ compile_for_lang() {
END {
for (i = 1; i <= length(col); i++) {
printf \
- "<tr><td class=missing>%s</td><td class=%s>%s</td></tr>\n",
+ "<trX><td class=missing colspan=1>%s</td>"\
+ "<td class=%s colspan=6>%s</td></tr>\n",
fmt(col[i][0]), getcls(col[i][2]), col[i][1]
}
+ print "MARKER LOL"
}
- ' data/notes | xfsub '<!-- TABLE-BODY -->' - $nod/index.html
+ ' data/notes \
+ | last-of-design.sed \
+ | xfsub '<!-- TABLE-BODY -->' - $nod/index.html
for CC in `grep -Eo '^[A-Z]{2}' data/coins | uniq`; do
cc=`echo $CC | tr A-Z a-z`