diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2011-10-08 11:49:52 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2011-10-08 11:50:35 +0200 |
| commit | 9731ffa193c81c77ad64cb06c7574098113fd316 (patch) | |
| tree | 0ff7e078c3be23e9ca6af1f5bf0bf1d8274900ef /main/project | |
| parent | 628541b70713716f872dd86277941705537182f0 (diff) | |
| download | cgeo-9731ffa193c81c77ad64cb06c7574098113fd316.zip cgeo-9731ffa193c81c77ad64cb06c7574098113fd316.tar.gz cgeo-9731ffa193c81c77ad64cb06c7574098113fd316.tar.bz2 | |
Reinstall computationally computed attribute_*_no strings
Diffstat (limited to 'main/project')
| -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 } |
