| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_updateMessageXml { |
| |
| |
| cli_printMessage '-' --as-separator-line |
| |
| |
| local FILE='' |
| local FILES='' |
| |
| |
| |
| FILE="${WORKDIR}/messages" |
| |
| |
| |
| local EXTENSION='(svg|xml|xhtml|docbook)' |
| |
| |
| if [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Identity/(Models|Manual|Themes/Models)/.+$" ]];then |
| FILES=$(cli_getFilesList "$ACTIONVAL" "${FLAG_FILTER}.*\.${EXTENSION}") |
| else |
| cli_printMessage "`gettext "The path provided cannot be processed."`" --as-error-line |
| fi |
| |
| |
| 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}" |
| |
| } |