| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_updateMessageXmlDocbook { |
| |
| |
| cli_printMessage "${MESSAGES}.pot" --as-updating-line |
| |
| |
| |
| local EXTENSION='docbook' |
| |
| |
| local TEMPLATE=$(cli_getFilesList ${ACTIONVAL} \ |
| --maxdepth=1 --mindepth=1 --type='f' \ |
| --pattern="$(cli_getRepoName ${ACTIONVAL} -f)\.${EXTENSION}$") |
| |
| |
| |
| cli_checkFiles -e ${TEMPLATE} |
| |
| |
| |
| |
| local INSTANCE=$(cli_getTemporalFile "$(basename ${TEMPLATE})") |
| |
| |
| cp ${TEMPLATE} ${INSTANCE} |
| |
| |
| cli_expandTMarkers ${INSTANCE} |
| |
| |
| cli_exportFunctions "Render/Docbook/docbook_expandSystemEntities" |
| docbook_expandSystemEntities ${INSTANCE} |
| |
| |
| cli_exportFunctions "Render/Docbook/docbook_expandLicenses" |
| docbook_expandLicenses ${INSTANCE} |
| |
| |
| |
| |
| ln -s ${TCAR_WORKDIR}/trunk/Identity/Images/Webenv $(dirname ${INSTANCE})/Images |
| |
| |
| pushd $(dirname ${INSTANCE}) > /dev/null |
| |
| |
| xmllint --valid --noent ${INSTANCE} | xml2po -a - \ |
| | msgcat --output=${MESSAGES}.pot --width=70 --no-location - |
| |
| |
| popd > /dev/null |
| |
| |
| rm ${INSTANCE} |
| |
| } |