diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -64,9 +64,14 @@ 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 ' + gawk -v denom=$denom -v lang=$1 ' @include "scripts/getcls.awk" + function fmt(n) + { + return lang ~ /(en|ga|mt|nl)/ ? "€" n : n " €" + } + $1 == "TN" { i++ col[i][0] = $2 @@ -77,8 +82,8 @@ compile_for_lang() { END { for (i = 1; i <= length(col); i++) { printf \ - "<tr><td class=missing>€%d</td><td class=%s>%s</td></tr>\n",\ - col[i][0], getcls(col[i][2]), col[i][1] + "<tr><td class=missing>%s</td><td class=%s>%s</td></tr>\n", + fmt(col[i][0]), getcls(col[i][2]), col[i][1] } } ' data/notes | xfsub '<!-- TABLE-BODY -->' - $nod/index.html |