mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Add script to sort XML resource by names.
This commit is contained in:
committed by
Benoit Marty
parent
5e0b705d44
commit
917fc12c26
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user