From 9731ffa193c81c77ad64cb06c7574098113fd316 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sat, 8 Oct 2011 11:49:52 +0200 Subject: Reinstall computationally computed attribute_*_no strings --- main/project/localization/findextratranslations.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main/project/localization') diff --git a/main/project/localization/findextratranslations.sh b/main/project/localization/findextratranslations.sh index 56aedd3..4200de6 100755 --- a/main/project/localization/findextratranslations.sh +++ b/main/project/localization/findextratranslations.sh @@ -20,7 +20,10 @@ else fi checkpresent() { - (cd $sourcedir && grep -m 1 R.string.$1 $sourcefiles > /dev/null) || \ + # Attributes are a special case, where in fact only the _yes is + # referenced in the source while the _no should be kept as well + res=`echo $1 | sed -e 's/^\(attribute_.*_\)no/\1yes/'` + (cd $sourcedir && grep -m 1 R.string.$res $sourcefiles > /dev/null) || \ grep -m 1 @string/$1 $xmlfiles > /dev/null } -- cgit v1.1