| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_editMessages { |
| |
| |
| cli_printMessage '-' --as-separator-line |
| |
| |
| local FILES='' |
| |
| if [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/(Manuals|Identity/Models)/.*$" ]];then |
| |
| |
| FILES=$(cli_getFilesList ${WORKDIR} --pattern=".*/messages\.po") |
| |
| |
| FLAG_DONT_CREATE_MO='true' |
| |
| elif [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Scripts$" ]];then |
| |
| |
| FILES=$(cli_getFilesList ${WORKDIR} --pattern=".*/${TEXTDOMAIN}\.po") |
| |
| else |
| |
| cli_printMessage "`gettext "The path provided does not support localization."`" --as-error-line |
| |
| fi |
| |
| for FILE in $FILES;do |
| |
| |
| cli_printMessage "$FILE" --as-updating-line |
| |
| |
| eval ${EDITOR} ${FILE} |
| |
| |
| locale_updateMessageBinary ${FILE} |
| |
| done |
| |
| } |