More robust PO file check

This commit is contained in:
Guillaume Meunier
2024-12-02 13:42:43 +01:00
parent e42bf36446
commit 73b3a491ef
3 changed files with 53 additions and 9 deletions
+1 -8
View File
@@ -10,18 +10,11 @@ RC=0
for i in $(find client/locale -name wivrn.po)
do
msgmerge --quiet --no-fuzzy-matching $i $WIVRN_POT --output-file=$i.new
pot_creation_date=$(grep -o "POT-Creation-Date: [-0-9:+ ]*" $i)
sed -i "s/POT-Creation-Date: [-0-9:+ ]*/$pot_creation_date/" $i.new
diff -U 3 -I '#.*' $i $i.new
tools/check_po.py $WIVRN_POT $i
if [ $? != 0 ]
then
RC=1
echo ::warning file=$i::$i is not up to date
fi
done