Add script to sort XML resource by names.
This commit is contained in:
parent
37e85b4db0
commit
d0a457d751
2 changed files with 58 additions and 3 deletions
|
|
@ -40,10 +40,10 @@ fi
|
|||
echo "Importing the strings..."
|
||||
localazy download --config ./tools/localazy/localazy.json
|
||||
|
||||
echo "Add new lines to the end of the files..."
|
||||
find . -name 'localazy.xml' -print0 -exec bash -c "echo \"\" >> \"{}\"" \; >> /dev/null
|
||||
echo "Formatting the resources files..."
|
||||
find . -name 'localazy.xml' -exec ./tools/localazy/formatXmlResourcesFile.py {} \; >> /dev/null
|
||||
if [[ $allFiles == 1 ]]; then
|
||||
find . -name 'translations.xml' -print0 -exec bash -c "echo \"\" >> \"{}\"" \; >> /dev/null
|
||||
find . -name 'translations.xml' -exec ./tools/localazy/formatXmlResourcesFile.py {} \; >> /dev/null
|
||||
fi
|
||||
|
||||
set +e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue