From 18e1a5437793722b105c6074b28c5294554e7613 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 17 2011 14:46:37 +0000 Subject: Update locale_updateMessageShell.sh. --- diff --git a/Scripts/Functions/Locale/locale_updateMessageShell.sh b/Scripts/Functions/Locale/locale_updateMessageShell.sh index 8b9ded1..58f3fd5 100755 --- a/Scripts/Functions/Locale/locale_updateMessageShell.sh +++ b/Scripts/Functions/Locale/locale_updateMessageShell.sh @@ -30,21 +30,17 @@ function locale_updateMessageShell { # Print separator line. cli_printMessage '-' --as-separator-line - # Initialize local variables. - local FILE='' - local FILES='' - # Define file name used as reference to create portable object # templates (.pot), portable objects (.po) and machine objects # (.mo). - FILE="${WORKDIR}/${TEXTDOMAIN}" + local FILE="${WORKDIR}/${TEXTDOMAIN}" + + # Define regular expression to match extensions of XML files we + # use inside the repository. + local EXTENSION='sh' # Build list of files to process. - if [[ $ACTIONVAL =~ "^${CLI_BASEDIR}" ]];then - FILES=$(cli_getFilesList $ACTIONVAL --pattern="${FLAG_FILTER}.*\.sh") - else - cli_printMessage "`gettext "The path provided cannot be processed."`" --as-error-line - fi + local FILES=$(cli_getFilesList $ACTIONVAL --pattern="${FLAG_FILTER}.*\.${EXTENSION}") # Print action message. cli_printMessage "${FILE}.pot" --as-updating-line