1
# Routines used to build manual translations from po-files
4
echo "Generating integrated XML files and POT files"
5
bash -c "cd .. ; ./scripts/merge_xml en"
6
RET=$?; [ $RET -ne 0 ] && exit 1 || true
7
bash -c "cd .. ; ./scripts/update_pot"
8
RET=$?; [ $RET -ne 0 ] && exit 1 || true
11
# Check whether language uses PO files for translation
14
if [ -d "../po/$lang" ] ; then
15
if [ -d "../$lang/.svn" ] ; then
16
echo "Warning: both PO files and XML files are present; ignoring PO files"
19
if [ -d "../$lang/" ] ; then
20
echo "Info: cleaning old XML files"
28
sh -c "cd ..; ./scripts/update_po $lang"
29
RET=$?; [ $RET -ne 0 ] && return $RET || true
31
sh -c "cd ..; ./scripts/create_xml $lang"
32
RET=$?; [ $RET -ne 0 ] && return $RET || true
34
echo "Info: generation of XML files complete"