From 940556555cd89c5661120ef892cc120aa429a5a1 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 22 2012 15:13:57 +0000 Subject: Update Functions/Locale/locale_updateMessages.sh --- diff --git a/Scripts/Bash/Functions/Locale/locale_updateMessages.sh b/Scripts/Bash/Functions/Locale/locale_updateMessages.sh index 742888d..d13dbc0 100755 --- a/Scripts/Bash/Functions/Locale/locale_updateMessages.sh +++ b/Scripts/Bash/Functions/Locale/locale_updateMessages.sh @@ -29,12 +29,11 @@ function locale_updateMessages { - # Verify existence of localization working directory. We cannot - # update translation files that don't exist. - cli_checkFiles $L10N_WORKDIR - local ACTIONNAM='' + # Prepare working directory to receive translation files. + locale_prepareWorkingDirectory + # 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 @@ -46,7 +45,7 @@ function locale_updateMessages { # graphics). locale_updateMessageXml - elif [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Scripts$" ]];then + elif [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Scripts/Bash$" ]];then # Update translatable strings inside the portable object # template related to shell scripts (e.g., the centos-art.sh