| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_updateMessageXml { |
| |
| |
| cli_printMessage '-' --as-separator-line |
| |
| |
| |
| local FILE="${WORKDIR}/messages" |
| |
| |
| |
| local EXTENSION='(svg|xml|xhtml|docbook)' |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| local FILES=$(cli_getFilesList ${ACTIONVAL} \ |
| --pattern="${FLAG_FILTER}.*\.${EXTENSION}" \ |
| --maxdepth='1' --type="f" \ |
| | egrep -v '/[[:alpha:]]{2}_[[:alpha:]]{2}/') |
| |
| |
| cli_printMessage "${FILE}.pot" --as-updating-line |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| xmllint --valid --noent ${FILES} | xml2po -a - \ |
| | msgcat --output=${FILE}.pot --width=70 --no-location - |
| |
| |
| |
| locale_updateMessagePObjects "${FILE}" |
| |
| |
| |
| |
| |
| cli_commitRepoChanges "${L10N_BASEDIR}" |
| |
| } |