diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-06-20 22:22:22 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-06-20 22:22:22 +0200 |
commit | b12aa32fb61e9228e3ae4f30e8d6362380636fd7 (patch) | |
tree | d79063f6e0c07723e3388b9aa79cfcc7cf5bf878 /build | |
parent | 661b75adb2535adf2ced98ed415249f4a8055df5 (diff) |
Begin work on Portuguese translations
Diffstat (limited to 'build')
-rwxr-xr-x | build | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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 " €" + } + + 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` |