diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2012-06-05 23:21:16 +0200 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2012-06-05 23:28:27 +0200 |
commit | bd4f256e12618d8bd47b56a0ca51709a96bfa9ef (patch) | |
tree | 5375fcf76b3cb63a84a26829b66a69d71b2c9c50 | |
parent | ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752 (diff) | |
download | cgeo-bd4f256e12618d8bd47b56a0ca51709a96bfa9ef.zip cgeo-bd4f256e12618d8bd47b56a0ca51709a96bfa9ef.tar.gz cgeo-bd4f256e12618d8bd47b56a0ca51709a96bfa9ef.tar.bz2 |
Do not special case attribute_*_no anymore
We do not generate them dynamically in the code any more.
-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 } |