translate splashpage and search too

This commit is contained in:
ed
2022-05-15 13:20:52 +02:00
parent 187feee0c1
commit e7cd922d8b
10 changed files with 256 additions and 164 deletions

View File

@@ -267,12 +267,12 @@ rm have
tmv "$f"
}
[ $langs ] && {
f=copyparty/web/browser.js
gzip -d "$f.gz" || true
awk '/^\}/{l=0} !l; /^var Ls =/{l=1;next} o; /^\t["}]/{o=0} /^\t"'"$langs"'"/{o=1;print}' <$f >t
tmv "$f"
}
[ $langs ] &&
for f in copyparty/web/{browser.js,splash.js}; do
gzip -d "$f.gz" || true
awk '/^\}/{l=0} !l; /^var Ls =/{l=1;next} o; /^\t["}]/{o=0} /^\t"'"$langs"'"/{o=1;print}' <$f >t
tmv "$f"
done
[ $repack ] ||
find | grep -E '\.py$' |

View File

@@ -71,6 +71,7 @@ copyparty/web/msg.css,
copyparty/web/msg.html,
copyparty/web/splash.css,
copyparty/web/splash.html,
copyparty/web/splash.js,
copyparty/web/ui.css,
copyparty/web/up2k.js,
copyparty/web/util.js,