From 1297b56fb5899d8c8753858666f8830be6bc32de Mon Sep 17 00:00:00 2001 From: Matthew Wagoner Date: Fri, 2 Nov 2012 10:02:24 -0400 Subject: [PATCH] Set resourse type for translation jobs. This change adds the type or -t switch for the tx set command, thereby defining all the resources of the project as 'PO'. Change-Id: I4c1535bb8cf17635fe6381a75b5bc43e24af56c8 Reviewed-on: https://review.openstack.org/15274 Approved: Clark Boylan Reviewed-by: Clark Boylan Tested-by: Jenkins --- .../jenkins/files/slave_scripts/propose_translation_update.sh | 2 +- .../jenkins/files/slave_scripts/upstream_translation_update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/jenkins/files/slave_scripts/propose_translation_update.sh b/modules/jenkins/files/slave_scripts/propose_translation_update.sh index 9b473feb68..b6d18279ac 100755 --- a/modules/jenkins/files/slave_scripts/propose_translation_update.sh +++ b/modules/jenkins/files/slave_scripts/propose_translation_update.sh @@ -29,7 +29,7 @@ fi # initialize transifex client tx init --host=https://www.transifex.com -tx set --auto-local -r ${PROJECT}.${PROJECT}-translations "${PROJECT}/locale//LC_MESSAGES/${PROJECT}.po" --source-lang en --source-file ${PROJECT}/locale/${PROJECT}.pot --execute +tx set --auto-local -r ${PROJECT}.${PROJECT}-translations "${PROJECT}/locale//LC_MESSAGES/${PROJECT}.po" --source-lang en --source-file ${PROJECT}/locale/${PROJECT}.pot -t PO --execute # Pull all upstream translations tx pull -a diff --git a/modules/jenkins/files/slave_scripts/upstream_translation_update.sh b/modules/jenkins/files/slave_scripts/upstream_translation_update.sh index 1896596b28..2b6cd8feaa 100755 --- a/modules/jenkins/files/slave_scripts/upstream_translation_update.sh +++ b/modules/jenkins/files/slave_scripts/upstream_translation_update.sh @@ -12,7 +12,7 @@ git config user.email "jenkins@openstack.org" # initialize transifex client tx init --host=https://www.transifex.com -tx set --auto-local -r ${PROJECT}.${PROJECT}-translations "${PROJECT}/locale//LC_MESSAGES/${PROJECT}.po" --source-lang en --source-file ${PROJECT}/locale/${PROJECT}.pot --execute +tx set --auto-local -r ${PROJECT}.${PROJECT}-translations "${PROJECT}/locale//LC_MESSAGES/${PROJECT}.po" --source-lang en --source-file ${PROJECT}/locale/${PROJECT}.pot -t PO --execute # Pull all upstream translations tx pull -a