From ae50eb6d6874b86d86c4a57d7391dd36c1c1a756 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Fri, 15 Apr 2011 22:16:54 +0200 Subject: language selector for translationcheck.sh --- doublecheck.pl | 2 +- translationscheck.sh | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/doublecheck.pl b/doublecheck.pl index 12a8e97..7ddf7c9 100755 --- a/doublecheck.pl +++ b/doublecheck.pl @@ -110,7 +110,7 @@ if ( !$help ) die "no sting found to check for language $lang in $source for -m $smodule -f $sfile -g $sgid -l $slid. Maybe the strings have been relocated."; } } - die "errors found" if ( $error ); +# die "errors found" if ( $error ); } else diff --git a/translationscheck.sh b/translationscheck.sh index 5373e5e..149090f 100755 --- a/translationscheck.sh +++ b/translationscheck.sh @@ -6,17 +6,23 @@ MY_PATH=`pwd` base=`dirname $0` -#for i in `ls -1 $SRC_ROOT/translations/source` -for i in hu +if [ -z $@ ] +then + langs=`ls -1 $SRC_ROOT/translations/source` +else + langs=("$@") +fi + +for i in $langs do po2oo -i $SRC_ROOT/translations/source/$i -t $SRC_ROOT/translations/unxlngi6.pro/misc/sdf-template/en-US.sdf -o $i.sdf -l $i gsicheck -c -wef $i.err $i.sdf >$i.log READMETMP=$(mktemp) grep "^readlic" $i.sdf | grep -v " en-US " | sed -e "s//\\\>/g" -e 's/"/\\\"/g' > $READMETMP gsicheck -c -l "" $READMETMP | sed -e "s/\\\>/>/g" -e "s/\\\> $i.log - WITH_LANG=$i $base/doublecheck.pl -m formula -f source.core.resource.core_resource.src -g RID_STRLIST_FUNCTION_NAMES $i.sdf >>$i.log || exit 1 - WITH_LANG=$i $base/doublecheck.pl -m scaddins -f source.analysis.analysis_funcnames.src -g RID_ANALYSIS_FUNCTION_NAMES $i.sdf >>$i.log || exit 1 - WITH_LANG=$i $base/doublecheck.pl -m scaddins -f source.datefunc.datefunc.src -g RID_DATE_FUNCTION_NAMES $i.sdf >> $i.log || exit 1 - WITH_LANG=$i $base/doublecheck.pl -m sw -f source.ui.utlui.poolfmt.src -g "STR_POOLNUMRULE_.*" $i.sdf >> $i.log || exit 1 - WITH_LANG=$i $base/doublecheck.pl -m sw -f source.ui.utlui.poolfmt.src -g "STR_POOLCOLL_.*" $i.sdf >> $i.log || exit 1 + WITH_LANG=$i $base/doublecheck.pl -m formula -f source.core.resource.core_resource.src -g RID_STRLIST_FUNCTION_NAMES $i.sdf >>$i.log + WITH_LANG=$i $base/doublecheck.pl -m scaddins -f source.analysis.analysis_funcnames.src -g RID_ANALYSIS_FUNCTION_NAMES $i.sdf >>$i.log + WITH_LANG=$i $base/doublecheck.pl -m scaddins -f source.datefunc.datefunc.src -g RID_DATE_FUNCTION_NAMES $i.sdf >> $i.log + WITH_LANG=$i $base/doublecheck.pl -m sw -f source.ui.utlui.poolfmt.src -g "STR_POOLNUMRULE_.*" $i.sdf >> $i.log + WITH_LANG=$i $base/doublecheck.pl -m sw -f source.ui.utlui.poolfmt.src -g "STR_POOLCOLL_.*" $i.sdf >> $i.log done -- cgit v1.2.3