# Routines used to build manual translations from po-files

update_templates () {
    echo "Generating integrated XML files and POT files"
    bash -c "cd .. ; ./scripts/merge_xml en"
    RET=$?; [ $RET -ne 0 ] && exit 1 || true
    bash -c "cd .. ; ./scripts/update_pot"
    RET=$?; [ $RET -ne 0 ] && exit 1 || true
}

# Check whether language uses PO files for translation
check_po () {
    USES_PO=""
    if [ -d "../po/$lang" ] ; then
        if [ -d "../$lang/.svn" ] ; then
            echo "Warning: both                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         