New script: remove-unused-trans

This commit is contained in:
Daniel Martí 2014-01-29 23:43:56 +01:00
parent b8998d711a
commit cb68daa7f9

9
tools/remove-unused-trans.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash -x
# Remove extra translations
lint . --quiet --check ExtraTranslation --nolines | \
sed -n 's/.*Error: "\([^"]*\)" is translated here but not found in default locale.*/\1/p' | \
while read name; do
sed -i "/name=\"$name\"/d" res/values-*/strings.xml
done