add alt translations also

This commit is contained in:
Kevin Fenzi 2016-06-07 20:30:03 +00:00
parent efc9eb4ccf
commit 89e503e41b
2 changed files with 41 additions and 1 deletions

View file

@ -0,0 +1,33 @@
#!/bin/bash
# this script pull all translations from the zanata Websites project.
# It pulls every resources.
PO_DIR=/var/tmp/po_dir
SITES="alt.fedoraproject.org \
boot.fedoraproject.org \
fedoracommunity.org \
fedorahosted.org \
fedoraproject.org \
getfedora.org \
flocktofedora.org \
spins.fedoraproject.org \
labs.fedoraproject.org \
budget.fedoraproject.org \
arm.fedoraproject.org \
start.fedoraproject.org"
# hack for zanata-client, since it currently only is able to find
# config file in ~/.config/zanata.ini and apache's $HOME isn't a good location
export HOME=/var/lib/zanata
[ -d $PO_DIR ] || mkdir $PO_DIR
for site in $SITES
do
[ -d $PO_DIR/$site ] || mkdir -p $PO_DIR/$site
cp $HOME/sample.xml $PO_DIR/$site/zanata.xml
sed -i "s/@VERSION@/$site/" $PO_DIR/$site/zanata.xml
cd $PO_DIR/$site
zanata pull
done

View file

@ -57,7 +57,14 @@
tags:
- fedora-web
- name: Copy syncTranslations script
- name: Copy syncTranslations script (stg)
copy: >
src=syncTranslations.stg.sh dest=/usr/local/bin/syncTranslations.sh owner=root
group=root mode=0755
tags:
- fedora-web
- name: Copy syncTranslations script (prod)
copy: >
src=syncTranslations.sh dest=/usr/local/bin/syncTranslations.sh owner=root
group=root mode=0755