| #!/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}" --type="f" \ |
| | egrep -v '/[[:alpha:]]{2}_[[:alpha:]]{2}/') |
| |
| |
| cli_printMessage "${FILE}.pot" --as-updating-line |
| |
| |
| if [[ ! -d $(dirname ${FILE}) ]];then |
| mkdir -p $(dirname ${FILE}) |
| fi |
| |
| |
| |
| /usr/bin/xml2po -a ${FILES} | msgcat --output=${FILE}.pot --width=70 --sort-by-file - |
| |
| |
| |
| locale_updateMessagePObjects "${FILE}" |
| |
| } |