From 8f1d4187354c5756b54f8e04a47250d8d3c8d236 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 24 Nov 2015 19:04:52 +1100 Subject: [PATCH] Fix two errors in setup_training_guides setup_training_guides was written assuming that the project would be passed as the first argument, but it wasn't called like that. Change the function to match others to hardcode the project, and look for the version as the first argument. Correct the path to the locale directory so that the Zanata client can read and write translation files correctly. Change-Id: Iacfd2e831d18af5870fc70a2a54e569d0924474e --- jenkins/scripts/common_translation_update.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jenkins/scripts/common_translation_update.sh b/jenkins/scripts/common_translation_update.sh index 91355989a4..18ec1d66f9 100644 --- a/jenkins/scripts/common_translation_update.sh +++ b/jenkins/scripts/common_translation_update.sh @@ -119,15 +119,15 @@ function setup_manuals { # Setup a training-guides project for Zanata function setup_training_guides { - local project=$1 - local version=${2:-master} + local project=training-guides + local version=${1:-master} # Update the .pot file tox -e generatepot-training /usr/local/jenkins/slave_scripts/create-zanata-xml.py -p $project \ - -v $version --srcdir doc/upstream-training/locale \ - --txdir doc/upstream-training/locale \ + -v $version --srcdir doc/upstream-training/source/locale \ + --txdir doc/upstream-training/source/locale \ -f zanata.xml }