aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-06-05 23:18:22 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-06-05 23:28:27 +0200
commited2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752 (patch)
tree9c4146aa0efd5d6e742c0e0645b9e96fa4be537f /main
parente7ee4db10f6362424f66bf331fc0abc7a73054bf (diff)
downloadcgeo-ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752.zip
cgeo-ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752.tar.gz
cgeo-ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752.tar.bz2
Exclude status_* messages from usage check
Diffstat (limited to 'main')
-rwxr-xr-xmain/project/localization/findextratranslations.sh5
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/'`