slerena 9da5e1890a 2007-08-30 Sancho Lerena <slerena@artica.es>
* pandoradb_data.sql: Added spanish (es_es) to available languages.

        * include/languages/language_es_es.php: Added new strings for 1.3

        * include/languages/extract_newlines.sh: (DEV) script to get new strings, comparing two
        language files. It should be used only by translators and developers.

        * include/languages/language_en.php: Updated english language with some missing (was encoded
        in code) strings.

        * godmode/setup/setup.php: Fix a bug when selecting special style "pandora_minimal". Added a
        code check

        * godmode/modules/manage_network_templates_form.php: Fixed some "inline" text labels.

        * godmode/reporting/graph_builder.php: Fixed some "inline" texts.

        THIS IS FINAL COMMIT BEFORE PANDORA FMS 1.3 BETA2



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@638 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2007-08-30 10:49:50 +00:00

33 lines
591 B
Bash

#!/bin/bash
if [ -z $1 ]
then
echo "I need two parameter: name of file with FULL lines, and name of file with less lines than first"
exit
fi
cat $1 | grep "^\\$" | cut -f 2 -d "\"" > extract_newlines.tmp
TOTAL=`wc -l extract_newlines.tmp | awk '{ print $1 }'`
NEWLINES=0
for a in `cat extract_newlines.tmp`
do
if [ -z "$(grep \"$a\" $2)" ]
then
echo "Newline for $a"
grep \"$a\" $1 >> $2_newlines
NEWLINES=`expr $NEWLINES + 1`
fi
done
echo ""
echo "TOTAL LINES=$TOTAL"
echo "NEW LINES=$NEWLINES"
echo "New lines written to $2_newlines"
echo ""
rm extract_newlines.tmp