| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function locale_updateMessages { |
| |
| local ACTIONNAM='' |
| |
| |
| |
| |
| |
| if [[ $WORKDIR =~ "^${BASEDIR}/(Identity|Manual)" ]];then |
| |
| |
| |
| ACTIONNAM="${FUNCNAM}_updateMessageXml" |
| |
| elif [[ $WORKDIR =~ "^${BASEDIR}/Scripts" ]];then |
| |
| |
| |
| ACTIONNAM="${FUNCNAM}_updateMessageShell" |
| |
| else |
| cli_printMessage "`gettext "The path provided doesn't support localization."`" 'AsErrorLine' |
| cli_printMessage "${FUNCDIRNAM}" 'AsToKnowMoreLine' |
| fi |
| |
| # Execute action name. |
| if [[ $ACTIONNAM =~ "^${FUNCNAM}_[A-Za-z]+$" ]];then |
| eval $ACTIONNAM |
| else |
| cli_printMessage "`gettext "A valid action is required."`" 'AsErrorLine' |
| cli_printMessage "${FUNCDIRNAM}" 'AsToKnowMoreLine' |
| fi |
| |
| } |
| |