diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-06-25 22:15:02 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-06-25 22:15:02 +0200 |
commit | 38fa4bf137e955d4267454a2d21f856a7f67eaf0 (patch) | |
tree | a0f2cb572798fff2d8e9bfb90570f41443212092 /build | |
parent | a80420daeaf8963c68ffe7ac6335d524670cbcad (diff) |
More translations
Diffstat (limited to 'build')
-rwxr-xr-x | build | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -119,13 +119,19 @@ compile_for_lang() { gawk -v CC=$CC ' @include "scripts/getcls.awk" - $1 == CC && /.. start/ { - sub(/.. start/, "") - printf "<tr class=new-design><th colspan=8>%s</th></tr>\n", $0 + FILENAME != "data/coins" { + split($0, a, "\t") + en2lang[a[1]] = a[2] + } + + FILENAME == "data/coins" && $1 == CC && /.. start/ { + sub(/^.. start/, ""); sub(/^ /, "") + printf "<tr class=new-design><th colspan=8>%s</th></tr>\n", + en2lang[$0] next } - $1 == CC { + FILENAME == "data/coins" && $1 == CC { y = $10 if ($11 != "") y_ = $11 @@ -151,7 +157,7 @@ compile_for_lang() { } END { print "MARKER LOL" } - ' data/coins \ + ' data/sections.$1 data/coins \ | last-of-design.sed \ | sed -E 's|(<td class=not-minted>)[^<]*(<sup>[^<]*</sup>)?(</td>)|\1\ \3|g' \ | xfsub '<!-- SCOIN-TABLE-BODY -->' - $nod/index.html @@ -353,10 +359,18 @@ compile_for_lang() { sed -Ei " /<nav>/,\\|</nav>|s|<a href=/../euro/${denom_}>([^<]*)</a>|<div class=selected>\\1</div>| " $nod/index.html + case $1 in + en) + sep=. + ;; + *) + sep=, + ;; + esac if [ $denom -eq 100 -o $denom -eq 200 ]; then - sed -i "s/<!-- DENOM -->/${denom%00}.00/" $nod/index.html + sed -i "s/<!-- DENOM -->/${denom%00}${sep}00/" $nod/index.html else - sed -i "s/<!-- DENOM -->/0.`printf '%02d' $denom`/" $nod/index.html + sed -i "s/<!-- DENOM -->/0$sep`printf '%02d' $denom`/" $nod/index.html fi for CC in `cut -f1 data/tmp-data.$1`; do |