From 0f5a49fdd4c7da2c4e13fc8489431e4c6ac2fca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 31 Dec 2014 00:11:33 +0100 Subject: [PATCH] Adapt remove-unused-trans to gradle, yet to be tested --- F-Droid/tools/remove-unused-trans.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/F-Droid/tools/remove-unused-trans.sh b/F-Droid/tools/remove-unused-trans.sh index 574c2d2ab..a84d24288 100755 --- a/F-Droid/tools/remove-unused-trans.sh +++ b/F-Droid/tools/remove-unused-trans.sh @@ -2,12 +2,11 @@ # Remove extra translations -lint . --quiet --check ExtraTranslation --nolines | \ - 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 "/