| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_updateMessages { |
| |
| |
| |
| |
| if [[ ${CLI_LANG_LC} =~ '^en' ]];then |
| cli_printMessage "`gettext "The English language cannot be localized to itself."`" --as-error-line |
| fi |
| |
| |
| |
| locale_isLocalizable "${ACTIONVAL}" |
| if [[ $? -ne 0 ]];then |
| cli_printMessage "`gettext "The path provided does not support localization."`" --as-error-line |
| fi |
| |
| |
| locale_prepareWorkingDirectory ${L10N_WORKDIR} |
| |
| |
| |
| |
| cli_synchronizeRepoChanges "${L10N_WORKDIR}" |
| |
| |
| |
| |
| |
| if [[ $ACTIONVAL =~ "^${TCAR_WORKDIR}/trunk/(Documentation/Models/Docbook|Identity/Models)/.*$" ]];then |
| |
| |
| |
| |
| locale_updateMessageXml |
| |
| elif [[ $ACTIONVAL =~ "^${TCAR_WORKDIR}/trunk/Scripts/Bash$" ]];then |
| |
| |
| |
| |
| locale_updateMessageShell |
| |
| else |
| cli_printMessage "`gettext "The path provided doesn't support localization."`" --as-error-line |
| fi |
| |
| # Syncronize changes between repository and working copy. At this |
| # point, changes in the repository are merged in the working copy |
| # and changes in the working copy committed up to repository. |
| cli_synchronizeRepoChanges "${L10N_WORKDIR}" |
| |
| } |
| |