Localazy: search for forbidden term ("Element" for now)

This commit is contained in:
Benoit Marty
2024-04-10 12:14:34 +02:00
committed by Benoit Marty
parent 3436351619
commit 045402cf18
2 changed files with 70 additions and 0 deletions

View File

@@ -54,6 +54,12 @@ echo "Deleting all the folders values-id..."
find . -type d -name 'values-id' -exec rm -rf {} 2> /dev/null \;
set -e
echo "Checking forbidden terms..."
find . -name 'localazy.xml' -exec ./tools/localazy/checkForbiddenTerms.py {} \;
if [[ $allFiles == 1 ]]; then
find . -name 'translations.xml' -exec ./tools/localazy/checkForbiddenTerms.py {} \;
fi
echo "Removing the generated config"
rm ./tools/localazy/localazy.json