diff options
Diffstat (limited to 'main/project/localization')
| -rwxr-xr-x | main/project/localization/findextratranslations.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 } |
