summaryrefslogtreecommitdiff
path: root/translationscheck.sh
blob: 149090f72b8a2fc738079030b79b3db4fd9b7431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash 

OOBUILDDIR='/home/timar/libreoffice-3-4/'
MY_PATH=`pwd`
. $OOBUILDDIR/LinuxX86Env.Set.sh 

base=`dirname $0`

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
    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