| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_updateMessagePObjects { |
| |
| local FILE="$1" |
| |
| |
| |
| cli_checkFiles "${FILE}.pot" 'f' |
| |
| |
| |
| if [[ -f ${FILE}.po ]];then |
| |
| |
| cli_printMessage "${FILE}.po" 'AsUpdatingLine' |
| |
| |
| |
| msgmerge --output="${FILE}.po" "${FILE}.po" "${FILE}.pot" --quiet |
| |
| else |
| |
| |
| cli_printMessage "${FILE}.po" 'AsCreatingLine' |
| |
| |
| |
| |
| msginit -i ${FILE}.pot -o ${FILE}.po --width=70 \ |
| --no-translator 2> /dev/null |
| |
| |
| |
| |
| locale_updateMessageMetadata "${FILE}.po" |
| |
| fi |
| |
| } |