Add localization support in client

This commit is contained in:
Guillaume Meunier
2024-06-08 21:24:06 +02:00
parent 2483cb458f
commit 55ccb0d34b
17 changed files with 259 additions and 69 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
cd $(dirname $0)/..
echo Generating template
WIVRN_POT=$(mktemp)
xgettext --keyword=_:1,1t --keyword=_S:1,1t --keyword=_F:1,1t client/**/*.cpp --output=$WIVRN_POT --package-name=WiVRn
sed -i 's/charset=CHARSET/charset=UTF-8/g' $WIVRN_POT
for i in $(find client/locale -name wivrn.po)
do
echo Updating $i
msgmerge --quiet --update $i $WIVRN_POT
done
rm $WIVRN_POT