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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user