* checks if given files exists before trying recoding
* allows to run lang2xml with no args to build all translations
Please read the TRANSLATORS file in the top directory.
-This directory contains the HTML Unicode recodings of the source
+"recoded" directory contains the HTML Unicode recodings of the source
language files. These are the actual files used by phpPgAdmin
when displaying strings.
Instructions on recoding:
cd lang
-make <language> (eg. 'french')
+./lang2xml <language_file> (eg. 'french.php')
-Running make with no arguments will recode all language files:
+Running lang2xml with no arguments will recode all language files:
cd lang
-make
+lang2xml
To check your translation:
function rec () {
for f in $@
do
+ [ ! -f $f ] && echo "$f is not a valid file." && continue
DIRNAME=$(dirname $f)
mkdir -p $DIRNAME
echo "Recoding $f..."
prepare
-case $1 in
+COMMAND=$1
+[ -z "$COMMAND" ] && COMMAND="all"
+
+case $COMMAND in
all)
# find all translation files in the source tree
TARGETS=$(ls *.php | grep -v translations.php)