-#!/bin/bash\r
-\r
-if [ ! -d ./langs/ ]; then\r
- echo "Script can only be started from IPCop Source base directory"\r
- exit 1\r
-fi\r
-\r
-cat ./langs/en/cgi-bin/en.pl | grep \'.*\' | awk -F\' '{print $2}'| sort > /tmp/en_cgi-bin.$$\r
-cat ./langs/en/install/lang_en.c | grep TR_ | awk -F\ '{print $2}' > /tmp/en_install.$$\r
-\r
-for i in ./langs/[a-z]*; do\r
- if [ "$i" == "./langs/CVS" ] ; then continue; fi\r
- language=`echo "$i" | awk -F/ '{ print $3 }'`\r
-\r
- echo "############################################################################"\r
- echo "# Checking install/setup translations for language: ${language} #"\r
- echo "############################################################################"\r
- cat ./langs/${language}/install/lang_${language}.c | grep TR_ | awk -F\ '{print $2}' | \\r
- diff /tmp/en_install.$$ - | grep \<\r
-\r
- echo "############################################################################"\r
- echo "# Checking cgi-bin translations for language: ${language} #"\r
- echo "############################################################################"\r
- cat ./langs/${language}/cgi-bin/${language}.pl | grep \'.*\' | awk -F\' '{print $2}' | sort | \\r
- diff /tmp/en_cgi-bin.$$ - | grep \<\r
-done\r
-\r
-rm -f /tmp/en_cgi-bin.$$\r
-rm -f /tmp/en_install.$$\r
-\r
-exit 0\r
-\r
+#!/bin/bash
+###############################################################################
+# #
+# IPFire.org - A linux based firewall #
+# Copyright (C) 2010 IPFire Team <info@ipfire.org> #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+
+if [ ! -d ./langs/ ]; then
+ echo "Script can only be started from IPFire Source base directory"
+ exit 1
+fi
+
+cat ./langs/de/cgi-bin/de.pl | grep \'.*\' | awk -F\' '{print $2}'| sort > /tmp/de_cgi-bin.$$
+cat ./langs/de/install/lang_de.c | grep TR_ | awk -F\ '{print $2}' > /tmp/de_install.$$
+
+for i in ./langs/en ./langs/fr ./langs/es ./langs/pl ./langs/ru ; do
+ language=`echo "$i" | awk -F/ '{ print $3 }'`
+
+ echo "############################################################################"
+ echo "# Checking install/setup translations for language: ${language} #"
+ echo "############################################################################"
+ cat ./langs/${language}/install/lang_${language}.c | grep TR_ | awk -F\ '{print $2}' | \
+ diff /tmp/de_install.$$ - | grep \<
+
+ echo "############################################################################"
+ echo "# Checking cgi-bin translations for language: ${language} #"
+ echo "############################################################################"
+ cat ./langs/${language}/cgi-bin/${language}.pl | grep \'.*\' | awk -F\' '{print $2}' | sort | \
+ diff /tmp/de_cgi-bin.$$ - | grep \<
+done
+
+rm -f /tmp/de_cgi-bin.$$
+rm -f /tmp/de_install.$$
+
+exit 0
+