Skip to content

Instantly share code, notes, and snippets.

@yelizariev
Last active July 28, 2017 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yelizariev/fa47b465fcf742f0f07b51ffe9e5599b to your computer and use it in GitHub Desktop.
Save yelizariev/fa47b465fcf742f0f07b51ffe9e5599b to your computer and use it in GitHub Desktop.
transifex
# https://github.com/it-projects-llc/maintainer-tools/blob/master/tools/tx_pull.py
# prepare github bot (profile)
# * set public email
# * generate access token:['repo', 'read:org', 'write:org', 'admin:org']
# * get admin access to repos (write is not enough as branches are protected with status checks)
# install
sudo pip install github3.py
sudo pip install slumber
sudo pip install polib
git clone https://github.com/it-projects-llc/maintainer-tools.git
cd maintainer-tools/
python -m tools.tx_pull
# edit oca.cfg -- set credentials for Github and transifex
emacsclient oca.cfg
# add to /etc/crontab:
# 1 1 * * 7 root cd /root/maintainer-tools/ && python -m tools.tx_pull > /var/log/tx.log 2>&1
[GitHub]
username = i18n-bot
token = 69....
email = i18n-bot@it-projects.info
[odoo]
username =
password =
[Transifex]
username = i18n_bot
password = us....
num_retries = 3
organization = it-projects-llc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment