From 8e31e6cd264dbb14722b4a3f7a60a06ff2007b28 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 9 Mar 2015 18:37:06 +0100 Subject: [PATCH] Fix path of RST locale file locale files in RST folders are under $DOCNAME/source/locale/, fix one error. Also, small refactor of an condition. Change-Id: I9a61b2d0e26bd19e2b0c1b8b95b2369530b05fcf --- jenkins/scripts/common_translation_update.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/jenkins/scripts/common_translation_update.sh b/jenkins/scripts/common_translation_update.sh index b9ea83a134..e3d2de3cb6 100644 --- a/jenkins/scripts/common_translation_update.sh +++ b/jenkins/scripts/common_translation_update.sh @@ -116,12 +116,14 @@ function setup_manuals { fi IS_RST=0 if [ ${SPECIAL_BOOKS["${DOCNAME}"]+_} ] ; then - if [ ${SPECIAL_BOOKS["${DOCNAME}"]} == "RST" ] ; then - IS_RST=1 - fi - if [ ${SPECIAL_BOOKS["${DOCNAME}"]} == "skip" ] ; then - continue - fi + case "${SPECIAL_BOOKS["${DOCNAME}"]}" in + RST) + IS_RST=1 + ;; + skip) + continue + ;; + esac fi if [ ${IS_RST} -eq 1 ] ; then tox -e generatepot-rst -- ${DOCNAME} @@ -130,7 +132,7 @@ function setup_manuals { tx set --auto-local -r openstack-manuals-i18n.${DOCNAME} \ "${DocFolder}/${DOCNAME}/source/locale//LC_MESSAGES/${DOCNAME}.po" \ --source-lang en \ - --source-file ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot \ + --source-file ${DocFolder}/${DOCNAME}/source/locale/${DOCNAME}.pot \ --minimum-perc=$PERC \ -t PO --execute else