From b867639e06e2731dec9c2dec8d27fdb91918280e Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 23 2011 18:50:44 +0000 Subject: Update locale_updateMessages.sh. --- diff --git a/Scripts/Functions/Locale/locale_updateMessages.sh b/Scripts/Functions/Locale/locale_updateMessages.sh index d6d9a5e..e286d3b 100755 --- a/Scripts/Functions/Locale/locale_updateMessages.sh +++ b/Scripts/Functions/Locale/locale_updateMessages.sh @@ -36,13 +36,13 @@ function locale_updateMessages { # extract translatable strings from XML-based files or to use # xgettext to extract translatable strings from shell script # files. - if [[ $WORKDIR =~ "^${BASEDIR}/(Identity|Manuals)/.+$" ]];then + if [[ $WORKDIR =~ "^${BASEDIR}/(Identity|Manual)/$(cli_getCurrentLocale)" ]];then # Update translatable strings inside portable object templates # for XML-based files (e.g., scalable vector graphics). ACTIONNAM="${FUNCNAM}_updateMessageXml" - elif [[ $WORKDIR =~ "^${BASEDIR}/Scripts/.+$" ]];then + elif [[ $WORKDIR =~ "^${BASEDIR}/Scripts/$(cli_getCurrentLocale)" ]];then # Update translatable strings inside portable object templates # for shell scripts (e.g., centos-art.sh script).