summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <atimar@novell.com>2011-04-15 22:16:54 +0200
committerAndras Timar <atimar@novell.com>2011-04-15 22:16:54 +0200
commitae50eb6d6874b86d86c4a57d7391dd36c1c1a756 (patch)
tree5c284d18bffcb913b2c50041af7bc6f8bf68cdb4
parent8a610e16fb0f4b5c53e86e2b443145a8d46d59f2 (diff)
language selector for translationcheck.sh
-rwxr-xr-xdoublecheck.pl2
-rwxr-xr-xtranslationscheck.sh20
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" -e 's/"/\\\"/g' > $READMETMP
gsicheck -c -l "" $READMETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $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