diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2012-06-05 23:18:22 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2012-06-05 23:28:27 +0200 |
| commit | ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752 (patch) | |
| tree | 9c4146aa0efd5d6e742c0e0645b9e96fa4be537f /main | |
| parent | e7ee4db10f6362424f66bf331fc0abc7a73054bf (diff) | |
| download | cgeo-ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752.zip cgeo-ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752.tar.gz cgeo-ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752.tar.bz2 | |
Exclude status_* messages from usage check
Diffstat (limited to 'main')
| -rwxr-xr-x | main/project/localization/findextratranslations.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/project/localization/findextratranslations.sh b/main/project/localization/findextratranslations.sh index 8e2898d..331c5d4 100755 --- a/main/project/localization/findextratranslations.sh +++ b/main/project/localization/findextratranslations.sh @@ -20,6 +20,11 @@ else fi checkpresent() { + # Status messages are dynamically referenced by name, so they will + # not appear in the source. + 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/'` |
