From 43b42f5bcc569f43cc6c29f4cdbdf8a3d3e480d7 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 25 2011 19:57:08 +0000 Subject: Update locale_updateMessages.sh. --- diff --git a/Scripts/Functions/Locale/locale_updateMessages.sh b/Scripts/Functions/Locale/locale_updateMessages.sh index c158d8f..26cc4ba 100755 --- a/Scripts/Functions/Locale/locale_updateMessages.sh +++ b/Scripts/Functions/Locale/locale_updateMessages.sh @@ -32,17 +32,17 @@ function locale_updateMessages { local ACTIONNAM='' - # Evaluate working directory to determine whether to use xml2po to + # Evaluate action value to determine whether to use xml2po to # extract translatable strings from XML-based files or to use # xgettext to extract translatable strings from shell script # files. - if [[ $WORKDIR =~ "^${BASEDIR}/(Identity|Manual)" ]];then + if [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Identity/(Manual|Models/.+)$" ]];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 [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Scripts$" ]];then # Update translatable strings inside portable object templates # for shell scripts (e.g., centos-art.sh script).