diff options
author | Michal Čihař <michal@cihar.com> | 2005-10-08 15:45:50 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2005-10-08 15:45:50 +0400 |
commit | c3b3b470800a5fb0169c38f257c4d56aba950b9e (patch) | |
tree | 106ab97fc8cdf15f487a8f18012572fb63e4e863 /scripts | |
parent | 90f8f6b1feb4310d31db5e2652d2132c85216ffa (diff) |
Simplify and addapt to current messages.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/find_unused_messages.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/find_unused_messages.sh b/scripts/find_unused_messages.sh index a84f12d28a..7c1ca71f03 100755 --- a/scripts/find_unused_messages.sh +++ b/scripts/find_unused_messages.sh @@ -4,12 +4,12 @@ phpfiles=`find . -type f -a -name '*.php' -a -not -path '*/lang/*'` -sed -n '/^\$str/ s/\$\([^ ]*\) .*/\1/p' lang/english-iso-8859-1.inc.php \ - | grep -v ^strTransformation_ \ +grep -o 'str[A-Z][a-zA-Z_]*' lang/english-iso-8859-1.inc.php \ + | grep -Ev '^str(Transformation_|ShowStatus)' \ | while read x do echo "Checking for $x" >&2 - if [ `grep -r "\\<$x\\>" $phpfiles | wc -l` -eq 0 ] + if [ `grep -r "\\<$x\\>" $phpfiles | wc -l` -eq 0 ] then echo $x fi |