| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_updateMessageXmlDocbookWithEntities { |
| |
| |
| |
| local MESSAGES="${L10N_WORKDIR}/messages" |
| |
| |
| cli_printMessage "${MESSAGES}.pot" --as-updating-line |
| |
| |
| |
| |
| local INSTANCE=$(cli_getTemporalFile "$(basename ${TEMPLATE})") |
| |
| |
| cp ${TEMPLATE} ${INSTANCE} |
| |
| |
| cli_exportFunctions "Render/Docbook/docbook_setExpansionLicenses" |
| docbook_setExpansionLicenses ${INSTANCE} |
| |
| |
| |
| |
| |
| |
| |
| |
| cli_exportFunctions "Render/Docbook/docbook_setExpansionSystemEntities" |
| docbook_setExpansionSystemEntities ${INSTANCE} |
| |
| |
| |
| |
| |
| xmllint --valid --noent ${INSTANCE} | xml2po -a -l ${CLI_LANG_LC} - \ |
| | msgcat --output=${MESSAGES}.pot \ |
| --width=70 --no-location - |
| |
| |
| cli_expandTMarkers ${INSTANCE} |
| |
| |
| |
| locale_updateMessagePObjects "${MESSAGES}" |
| |
| } |