| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale { |
| |
| local ACTIONNAM='' |
| local ACTIONVAL='' |
| |
| |
| |
| |
| |
| local FLAG_DONT_CREATE_MO='false' |
| |
| |
| locale_getArguments |
| |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| for ACTIONVAL in "$@";do |
| |
| if [[ $ACTIONVAL == '--' ]];then |
| continue |
| fi |
| |
| |
| |
| |
| cli_checkRepoDirSource |
| |
| |
| |
| WORKDIR=$(echo ${ACTIONVAL} \ |
| | sed -r -e "s!(Identity|Scripts)(.*)!\1/Locales\2!") |
| |
| |
| |
| |
| |
| |
| |
| WORKDIR=$WORKDIR/$(cli_getCurrentLocale) |
| |
| |
| |
| |
| |
| cli_syncroRepoChanges "${WORKDIR}" |
| |
| |
| if [[ $ACTIONNAM =~ "^${FUNCNAM}_[A-Za-z]+$" ]];then |
| eval $ACTIONNAM |
| else |
| cli_printMessage "`gettext "A valid action is required."`" 'AsErrorLine' |
| cli_printMessage "${FUNCDIRNAM}" 'AsToKnowMoreLine' |
| fi |
| |
| |
| |
| |
| |
| cli_commitRepoChanges "${WORKDIR}" |
| |
| done |
| |
| } |