From 5a30d08a657cc2dd9949825d328f8d226ce450ca Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 11 Jul 2014 18:10:04 +0200 Subject: [PATCH] Fix transifex project names Use the same rules for names when pushing resources as we do in setup_project - transifex does not allow "." in the resource names. This fixes translation update of projecs like oslo.db. Change-Id: Idb47c0632ed0771e90d363857bf37fcf28019630 --- .../files/slave_scripts/upstream_translation_update.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/files/slave_scripts/upstream_translation_update.sh b/modules/openstack_project/files/slave_scripts/upstream_translation_update.sh index 3b3c06ce27..35bf29ab57 100755 --- a/modules/openstack_project/files/slave_scripts/upstream_translation_update.sh +++ b/modules/openstack_project/files/slave_scripts/upstream_translation_update.sh @@ -36,14 +36,17 @@ git add $PROJECT/locale/* if [ ! `git diff-index --quiet HEAD --` ] then # Push .pot changes to transifex - tx --debug --traceback push -s -r ${PROJECT}.${PROJECT}-translations + + # Transifex project name does not include "." + tx_project=${PROJECT/\./} + tx --debug --traceback push -s -r ${tx_project}.${tx_project}-translations for level in $LEVELS ; do # Only push if there is actual content in the file. We check # that the file contains at least one non-empty msgid string. if grep -q 'msgid "[^"]' ${PROJECT}/locale/${PROJECT}-log-${level}.pot then tx --debug --traceback push -s \ - -r ${PROJECT}.${PROJECT}-log-${level}-translations + -r ${tx_project}.${tx_project}-log-${level}-translations fi done fi