[zanata] Use git branch to specify the version of zanata's project

This commit is contained in:
Luc Didry 2018-08-17 13:58:08 +02:00
parent 3402571e85
commit ff88628acf
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
4 changed files with 5 additions and 6 deletions

View file

@ -105,4 +105,4 @@ funky:
# - if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then make push-locales; fi
# only:
# - develop
# - work-on-locales
# - master

View file

@ -2,14 +2,14 @@ locales:
scripts/locales.sh
push-locales: locales
zanata-cli -q -B push --errors
zanata-cli -q -B push --errors --project-version `git branch | grep \* | cut -d ' ' -f2-`
pull-locales:
zanata-cli -q -B pull --min-doc-percent 50
zanata-cli -q -B pull --min-doc-percent 50 --project-version `git branch | grep \* | cut -d ' ' -f2-`
scripts/po2json.sh
stats-locales:
zanata-cli -q stats
zanata-cli -q stats --project-version `git branch | grep \* | cut -d ' ' -f2-`
push-trad-to-zanata:
scripts/push-trad-to-zanata.sh $(filter-out $@,$(MAKECMDGOALS))

View file

@ -7,5 +7,5 @@ then
else
LOCALE=$(echo $FILE | sed -e "s@_@-@g")
json2po -i locale/$FILE.json -t locale/en.json -o po/$FILE.po
zanata-cli -q -B push --push-type trans -l $LOCALE
zanata-cli -q -B push --push-type trans -l $LOCALE --project-version $(git branch | grep \* | cut -d ' ' -f2-)
fi

View file

@ -2,7 +2,6 @@
<config xmlns="http://zanata.org/namespace/config/">
<url>https://trad.framasoft.org/</url>
<project>framadate</project>
<project-version>master</project-version>
<project-type>gettext</project-type>
<src-dir>po</src-dir>
<trans-dir>po</trans-dir>