From d3f38a2788a09f1f7c71b3ad51445f4e621b66ee 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 --- files/slave_scripts/propose_translation_update.sh | 2 +- files/slave_scripts/upstream_translation_update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/slave_scripts/propose_translation_update.sh b/files/slave_scripts/propose_translation_update.sh index 9b473fe..b6d1827 100755 --- a/files/slave_scripts/propose_translation_update.sh +++ b/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/files/slave_scripts/upstream_translation_update.sh b/files/slave_scripts/upstream_translation_update.sh index 1896596..2b6cd8f 100755 --- a/files/slave_scripts/upstream_translation_update.sh +++ b/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