From 7268fd329d2b98dfd8cc4efc0c012cdcd2d74639 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 5 Aug 2015 20:31:14 +0200 Subject: [PATCH] Fix glossary recognition Fix last change to be applied at proper place. The glossary test needs to be in the !RST case, move it over. Change-Id: Ib629ad85edd7f57288c94056154d1359126a4eac --- jenkins/scripts/common_translation_update.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jenkins/scripts/common_translation_update.sh b/jenkins/scripts/common_translation_update.sh index 798d6ffcbb..a37b1e6b86 100644 --- a/jenkins/scripts/common_translation_update.sh +++ b/jenkins/scripts/common_translation_update.sh @@ -163,13 +163,8 @@ function setup_manuals { if [ ${IS_RST} -eq 1 ] ; then tox -e generatepot-rst -- ${DOCNAME} git add ${DocFolder}/${DOCNAME}/source/locale/${DOCNAME}.pot - SLUG=${DOCNAME} - if [ $SLUG = "glossary" ] ; then - # Transifex reserves glossary as SLUG, we need a different name. - SLUG="glossary-1" - fi # Set auto-local - tx set --auto-local -r openstack-manuals-i18n.${SLUG} \ + tx set --auto-local -r openstack-manuals-i18n.${DOCNAME} \ "${DocFolder}/${DOCNAME}/source/locale//LC_MESSAGES/${DOCNAME}.po" \ --source-lang en \ --source-file ${DocFolder}/${DOCNAME}/source/locale/${DOCNAME}.pot \ @@ -179,11 +174,16 @@ function setup_manuals { else # Update the .pot file ./tools/generatepot ${DOCNAME} + SLUG=${DOCNAME} + if [ $SLUG = "glossary" ] ; then + # Transifex reserves glossary as SLUG, we need a different name. + SLUG="glossary-1" + fi if [ -f ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot ]; then # Add all changed files to git git add ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot # Set auto-local - tx set --auto-local -r openstack-manuals-i18n.${DOCNAME} \ + tx set --auto-local -r openstack-manuals-i18n.${SLUG} \ "${DocFolder}/${DOCNAME}/locale/.po" --source-lang en \ --source-file ${DocFolder}/${DOCNAME}/locale/${DOCNAME}.pot \ --minimum-perc=$PERC \