From 38482ccaaa17509a97763cc7eebbf7528efb46cf Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Feb 20 2011 06:07:06 +0000 Subject: Update render_doIdentityImages.sh: - Fix invocation of xml2po command, in order to produce the SVG translated instance correctly. - Add verification to remove the .xml2po.mo temporal file created by xml2po. --- diff --git a/Scripts/Bash/Functions/Render/render_doIdentityImages.sh b/Scripts/Bash/Functions/Render/render_doIdentityImages.sh index bab53ca..8926cd0 100644 --- a/Scripts/Bash/Functions/Render/render_doIdentityImages.sh +++ b/Scripts/Bash/Functions/Render/render_doIdentityImages.sh @@ -106,11 +106,20 @@ function render_doIdentityImages { INSTANCE=$(cli_getTemporalFile ${TEMPLATE}) if [[ -f ${TRANSLATION} ]];then + # Create translated instance from design model. - /usr/bin/xml2po -p ${TRANSLATION} -o ${INSTANCE} ${TEMPLATE} + /usr/bin/xml2po -p ${TRANSLATION} ${TEMPLATE} > ${INSTANCE} + + # Remove .xml2po.mo temporal file. + if [[ -f ${PWD}/.xml2po.mo ]];then + rm ${PWD}/.xml2po.mo + fi + else + # Create non-translated instance form design model. /bin/cat ${TEMPLATE} > ${INSTANCE} + fi # Apply replacement of translation markers to design model