diff options
-rwxr-xr-x | l10nlistfallback.sh | 4 | ||||
-rwxr-xr-x | translationscheck35.sh | 37 | ||||
-rwxr-xr-x | translationscheck36.sh | 39 |
3 files changed, 78 insertions, 2 deletions
diff --git a/l10nlistfallback.sh b/l10nlistfallback.sh index 7c476b5..f7e6e3b 100755 --- a/l10nlistfallback.sh +++ b/l10nlistfallback.sh @@ -1,8 +1,8 @@ #!/bin/bash -x -OOBUILDDIR='/home/timar/libreoffice-3-3/build/libreoffice-3.3.2.1' +OOBUILDDIR='/home/timar/libreoffice-3-3/build/libreoffice-3.3.2.2' MY_PATH=`pwd` . $OOBUILDDIR/LinuxX86Env.Set.sh -SOURCE_ROOT_DIR='/home/timar/libreoffice-3-3/build/libreoffice-3.3.2.1' +SOURCE_ROOT_DIR='/home/timar/libreoffice-3-3/build/libreoffice-3.3.2.2' export SOURCE_ROOT_DIR test -n "$OO_TOOLSDIR" && solenv_dir=$SOLARENV || solenv_dir=$OOBUILDDIR/solenv if test -f $solenv_dir/inc/postset.mk ; then diff --git a/translationscheck35.sh b/translationscheck35.sh new file mode 100755 index 0000000..229af9f --- /dev/null +++ b/translationscheck35.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +OOBUILDDIR='/home/timar/libreoffice-3-5' +MY_PATH=`pwd` +. $OOBUILDDIR/Env.Host.sh + +base=`dirname $0` + +if [ -z $@ ] +then + langs=`ls -1 $SRC_ROOT/translations/source` +else + langs=("$@") +fi + +for i in $langs +do + echo "******** $i ***********" + po2oo -i $SRC_ROOT/translations/source/$i -t $SRC_ROOT/translations/unxlngx6.pro/misc/sdf-template/en-US.sdf -o $i.sdf -l $i + gsicheck -c -wef $i.err $i.sdf >$i.log + grep -v " en-US " $i.sdf > $i-mono.sdf + gsicheck -c -l "" -wef $i-fatal.err $i-mono.sdf >$i-fatal.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 + gsicheck -c -l "" $READMETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i-fatal.log +# TREETMP=$(mktemp) +# grep "tree_strings\.xhp" $i.sdf | grep -v " en-US " | sed -e "s/</\\\</g" -e "s/>/\\\>/g" -e 's/"/\\\"/g' > $TREETMP +# gsicheck -c -l "" $TREETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i.log +# gsicheck -c -l "" $TREETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i-fatal.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 + 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 + rm $i.sdf $i-mono.sdf +done diff --git a/translationscheck36.sh b/translationscheck36.sh new file mode 100755 index 0000000..5805f14 --- /dev/null +++ b/translationscheck36.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +OOBUILDDIR='/home/timar/libreoffice-master' +MY_PATH=`pwd` +sed -e 's/=\(.\+\)/="\1"/' $OOBUILDDIR/config_host.mk > Env.Host.sh +. Env.Host.sh + +base=`dirname $0` +export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}/home/timar/libreoffice-master/solver/unxlngx6.pro/lib + +if [ -z $@ ] +then + langs=`ls -1 $SRC_ROOT/translations/source` +else + langs=("$@") +fi + +for i in $langs +do + echo "******** $i ***********" + po2oo -i $SRC_ROOT/translations/source/$i -t $SRC_ROOT/workdir/unxlngx6.pro/CustomTarget/translations/translate/sdf-template/en-US.sdf -o $i.sdf -l $i + /home/timar/libreoffice-master/solver/unxlngx6.pro/bin/gsicheck -c -wef $i.err $i.sdf >$i.log + grep -v " en-US " $i.sdf > $i-mono.sdf + /home/timar/libreoffice-master/solver/unxlngx6.pro/bin/gsicheck -c -l "" -wef $i-fatal.err $i-mono.sdf >$i-fatal.log + READMETMP=$(mktemp) + grep "^readlic" $i.sdf | grep -v " en-US " | sed -e "s/</\\\</g" -e "s/>/\\\>/g" -e 's/"/\\\"/g' > $READMETMP + /home/timar/libreoffice-master/solver/unxlngx6.pro/bin/gsicheck -c -l "" $READMETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i.log + /home/timar/libreoffice-master/solver/unxlngx6.pro/bin/gsicheck -c -l "" $READMETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i-fatal.log +# TREETMP=$(mktemp) +# grep "tree_strings\.xhp" $i.sdf | grep -v " en-US " | sed -e "s/</\\\</g" -e "s/>/\\\>/g" -e 's/"/\\\"/g' > $TREETMP +# gsicheck -c -l "" $TREETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i.log +# gsicheck -c -l "" $TREETMP | sed -e "s/\\\>/>/g" -e "s/\\\</</g" -e 's/\\\"/"/g' >> $i-fatal.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 + 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 + rm $i.sdf $i-mono.sdf +done |