translations cleanup
This commit is contained in:
16
scripts/find_unused_messages.sh
Executable file
16
scripts/find_unused_messages.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Simple script to find unused message strings by Michal Čihař
|
||||
|
||||
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_ \
|
||||
| while read x
|
||||
do
|
||||
echo "Checking for $x" >&2
|
||||
if [ `grep -r "\\<$x\\>" $phpfiles | wc -l` -eq 0 ]
|
||||
then
|
||||
echo $x
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user