From 38fa4bf137e955d4267454a2d21f856a7f67eaf0 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 25 Jun 2023 22:15:02 +0200 Subject: More translations --- build | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'build') diff --git a/build b/build index 8663c41..d83c8ad 100755 --- a/build +++ b/build @@ -119,13 +119,19 @@ compile_for_lang() { gawk -v CC=$CC ' @include "scripts/getcls.awk" - $1 == CC && /.. start/ { - sub(/.. start/, "") - printf "%s\n", $0 + FILENAME != "data/coins" { + split($0, a, "\t") + en2lang[a[1]] = a[2] + } + + FILENAME == "data/coins" && $1 == CC && /.. start/ { + sub(/^.. start/, ""); sub(/^ /, "") + printf "%s\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|()[^<]*([^<]*)?()|\1\ \3|g' \ | xfsub '' - $nod/index.html @@ -353,10 +359,18 @@ compile_for_lang() { sed -Ei " /|s|([^<]*)|
\\1
| " $nod/index.html + case $1 in + en) + sep=. + ;; + *) + sep=, + ;; + esac if [ $denom -eq 100 -o $denom -eq 200 ]; then - sed -i "s//${denom%00}.00/" $nod/index.html + sed -i "s//${denom%00}${sep}00/" $nod/index.html else - sed -i "s//0.`printf '%02d' $denom`/" $nod/index.html + sed -i "s//0$sep`printf '%02d' $denom`/" $nod/index.html fi for CC in `cut -f1 data/tmp-data.$1`; do -- cgit v1.2.3