053779 Update locale_updateMessageXml.sh.

Authored and Committed by areguera 13 years ago
Scripts/Functions/Locale/locale_updateMessageXml.sh CHANGED
@@ -34,9 +34,13 @@ function locale_updateMessageXml {
34
34
# (.pot) and portable objects (.po) files.
35
35
FILE="${WORKDIR}/messages"
36
36
37
+ # Define regular expression to match extensions of XML files we
38
+ # use inside the repository.
39
+ local EXTENSIONS='(svg|xml|xhtml|docbook)'
40
+
37
41
# Build list of files to process.
38
- if [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/(Identity|Manual)" ]];then
39
- FILES=$(cli_getFilesList "$ACTIONVAL" "${FLAG_FILTER}\.(svg|xml|docbook)")
42
+ if [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Identity/(Models|Manual|Themes/Models)/.+$" ]];then
43
+ FILES=$(cli_getFilesList "$ACTIONVAL" "${FLAG_FILTER}\.${EXTENSIONS}")
40
44
else
41
45
cli_printMessage "`gettext "The path provided can't be processed."`" 'AsErrorLine'
42
46
cli_printMessage "${FUNCDIRNAM}" 'AsToKnowMoreLine'