Changes between Initial Version and Version 1 of TranslatingDocumentation


Ignore:
Timestamp:
Jan 22, 2013, 2:11:53 PM (11 years ago)
Author:
Claude Paroz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TranslatingDocumentation

    v1 v1  
     1= Summary =
     2This page is a proposal for a workflow to be able to translate Django documentation through po files (and [[http://www.transifex.com|Transifex]] platform).
     3
     4= Translation storage =
     5Proposal is to store pot files and po translation files in a separate repository (e.g. django-docs-translations). Pot files only take up 4Mb, so considering that for each language, you add ~7Mb, this is too much for the Django main repository.
     6
     7= Workflow =
     81. A modification is done in the /docs dir of Django's repo.
     9
     102. A `make gettext` in the 'docs' directory generates pot files in `_build/locale` (works already). Those pot files are copied to `django-docs-translations/pots` and modifications pushed.
     11
     123. Transifex downloads new pot files once or twice a day.
     13
     144. Translators translate strings on Transifex.
     15
     165. At defined times, translations are fetched from Transifex and pushed to `django-docs-translations/translations/<locale>/*.po`.
     17
     186. Translated docs build:
     19  * `make translations` in `django-docs-translations` generates .mo files.
     20  * `make html LANGUAGE=<locale> TRANSDIR=<path>/django-docs-translations/translations/<locale>/` in `django/docs`
     21  * Built HTML files are pushed online
     22
     23= Issues =
     24
     25* Some strings are not translatable through po files currently. See https://github.com/django/django/blob/master/docs/_ext/djangodocs.py#L128
Back to Top