AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.135.241.191


Current Path : /var/www/lhjmq-records.qc.ca/public_html/phpmyadmin/scripts/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/phpmyadmin/scripts/find_unused_messages.sh

#!/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