Skip to content

Commit

Permalink
[#948] Add a translation lock, because Transifex is one branch at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Feb 8, 2018
1 parent c73113b commit 452f67a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Then run the development server:
Deployment
==========

See https://github.com/OpenDataServices/cove/blob/master/DEPLOYMENT.md
See https://cove.readthedocs.io/en/latest/deployment/

Run tests
=========
Expand Down Expand Up @@ -175,12 +175,15 @@ Translators can provide translations for this application by becomming a collabo

Translations for Developers
+++++++++++++++++++++++++++

For more information about Django's translation framework, see https://docs.djangoproject.com/en/1.8/topics/i18n/translation/

If you add new text to the interface, ensure to wrap it in the relevant gettext blocks/functions.

In order to generate messages and post them on Transifex:

First check the [Transifex lock](https://opendataservices.plan.io/projects/co-op/wiki/CoVE_Transifex_lock), because only one branch can be translated on Transifex at a time.

.. code:: bash
python manage.py makemessages -l en
Expand All @@ -198,12 +201,8 @@ In order to compile them:
python manage.py compilemessages
Do not do this process on every text change so as not to pollute the commit diffs.

Keep the makemessages and pull messages steps in thier own commits seperate from the text changes.

The aim is to run this process each month, but it can be done more regularly if needed.

To check that all new text is written so that it is able to be translated you could install and run `django-template-i18n-lint`

.. code:: bash
Expand Down

0 comments on commit 452f67a

Please sign in to comment.