From ed2f65b4ea1f3c892f2ba03850d1e3f6d3ed5752 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Tue, 5 Jun 2012 23:18:22 +0200 Subject: Exclude status_* messages from usage check --- main/project/localization/findextratranslations.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main/project') 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/'` -- cgit v1.1