diff options
| -rwxr-xr-x | main/project/localization/findextratranslations.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main/project/localization/findextratranslations.sh b/main/project/localization/findextratranslations.sh index 331c5d4..66695d2 100755 --- a/main/project/localization/findextratranslations.sh +++ b/main/project/localization/findextratranslations.sh @@ -25,10 +25,7 @@ checkpresent() { if [ -z `echo $1 | sed -e 's/^status_.*$//'` ]; then return 0 fi - # 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) || \ + (cd $sourcedir && grep -m 1 R.string.$1 $sourcefiles > /dev/null) || \ grep -m 1 @string/$1 $xmlfiles > /dev/null } |
