| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_updateMessageShell { |
| |
| |
| cli_printMessage '-' --as-separator-line |
| |
| |
| |
| local EXTENSION='sh' |
| |
| |
| local FNDIRS=$(cli_getFilesList ${ACTIONVAL}/Functions \ |
| --maxdepth=1 --mindepth=1 --type='d' --pattern="/[^.]${FLAG_FILTER}") |
| |
| for FNDIR in $FNDIRS;do |
| |
| |
| local FNNAME=$(basename $FNDIR) |
| |
| |
| |
| local L10N_DIR=${L10N_WORKDIR}/Functions/${FNNAME} |
| |
| |
| locale_prepareWorkingDirectory ${L10N_DIR} |
| |
| |
| |
| local MESSAGES="${L10N_DIR}/messages" |
| |
| |
| cli_printMessage "${MESSAGES}.pot" --as-updating-line |
| |
| |
| |
| |
| |
| |
| |
| |
| local FILES=$(cli_getFilesList ${FNDIR} --pattern="^.+\.${EXTENSION}$") |
| |
| |
| |
| xgettext --output=${MESSAGES}.pot \ |
| --copyright-holder="$(cli_printCopyrightInfo --holder)" \ |
| --width=70 --sort-by-file ${FILES} |
| |
| |
| locale_updateMessageMetadata "${MESSAGES}.pot" |
| |
| |
| |
| locale_updateMessagePObjects "${MESSAGES}" |
| |
| done |
| |
| |
| |
| |
| |
| |
| |
| locale_updateMessageBinary |
| |
| } |