Skip to content
Loek van Gent edited this page May 2, 2014 · 18 revisions

Setup

We group some apps in to a couple of translation files (PO-files). This way we can

  • Include bluebottle apps
  • Put things that logically fit together together (e.g. all payment stuff or projects + bb_projects) To be able to run translations you should have
  • An account on transifex.com that has rights on OnePercentClub
  • Run pip install transifex-client (op upgrade it if it complains)
  • Make sure .transifexrc is in your home dir and contains something like:

[https://www.transifex.com] hostname = https://www.transifex.com password = vasteloavend token = username = bartlacroix

Updating translations

To get new translations on the website you should take these steps

  • run ./translations.sh generate. This will create/update English PO files
  • run ./translations.sh push. This will push the PO files to Transifex.
  • Translate untranslated strings on Transifex and mark them as reviewed.
  • run ./translations.sh pull. This will pull all translated PO files.
  • run ./translations.sh compile (from within your env). This compiles the files for Django.
  • review the translations on your local system.
  • commit all changed PO files to github and deploy it.

Adding a new app to translations

To add an app to translations you have to adjust two files.

  • Add some lines for the app to ./translations.sh in the 'generate' section
  • Add a new entry for the app in .tx/config

After running generate and push the new app should appear in Transifex

Clone this wiki locally