Add dashboard localization

This commit is contained in:
Guillaume Meunier
2024-10-02 21:35:48 +02:00
parent c34d82453a
commit 119681cf7c
5 changed files with 1298 additions and 3 deletions
+21 -1
View File
@@ -1,4 +1,6 @@
#!/bin/sh
#!/bin/bash
set -e
cd $(dirname $0)/..
@@ -25,4 +27,22 @@ done
rm $WIVRN_POT
for i in $(find dashboard -name "wivrn_*.ts")
do
cp $i $i.bak
lupdate -silent dashboard/*.{cpp,ui} -ts $i
mv $i $i.new
mv $i.bak $i
diff -U 3 -I '.*<location.*/>' $i $i.new
if [ $? != 0 ]
then
RC=1
fi
rm $i.new
done
exit $RC
+2
View File
@@ -14,3 +14,5 @@ do
done
rm $WIVRN_POT
lupdate dashboard/*.{cpp,ui} -ts dashboard/wivrn_*.ts