2014-01-29 23:43:56 +01:00
|
|
|
#!/bin/bash -x
|
|
|
|
|
|
|
|
# Remove extra translations
|
|
|
|
|
|
|
|
lint . --quiet --check ExtraTranslation --nolines | \
|
2014-02-10 09:22:43 +01:00
|
|
|
sed -n 's@res/values-[^/]\+/\([^\.]\+\)\.xml:.*Error: "\([^"]*\)" is translated here but not found in default locale.*@\1 \2@p' | \
|
|
|
|
while read file name; do
|
|
|
|
if [[ $file == strings ]]; then
|
|
|
|
sed -i "/name=\"$name\"/d" res/values-*/strings.xml
|
|
|
|
elif [[ $file == array ]]; then
|
|
|
|
sed -i "/<string-array name=\"$name\"/,/<\/string-array/d" res/values-*/array.xml
|
|
|
|
fi
|
2014-01-29 23:43:56 +01:00
|
|
|
done
|