| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_combineLicenseMessages { |
| |
| local TRANSLATION_INSTANCE=$1 |
| local TRANSLATION_TEMPLATE=$2 |
| |
| if [[ $# -lt 1 ]];then |
| cli_printMessage "`gettext "One argument is required."`" --as-error-message |
| fi |
| |
| |
| local FILES="${DOCBOOK_MODELS_LOCALES_DIR}/Gpl/$(cli_getCurrentLocale)/messages.po \ |
| ${DOCBOOK_MODELS_LOCALES_DIR}/Gfdl/$(cli_getCurrentLocale)/messages.po \ |
| ${TRANSLATION_TEMPLATE}" |
| |
| |
| cli_checkFiles ${FILES} |
| |
| |
| msgcat --output=${TRANSLATION_INSTANCE} \ |
| --width=70 --no-location --use-first ${FILES} |
| |
| } |