Skip to content

Commit

Permalink
Adds translations using Transifex.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Aug 8, 2012
1 parent 2557172 commit 4c37ad7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .tx/config
@@ -0,0 +1,7 @@
[main]
host = https://www.transifex.com

[django-terms.core]
file_filter = terms/locale/<lang>/LC_MESSAGES/django.po
source_lang = en

2 changes: 1 addition & 1 deletion MANIFEST.in
@@ -1,2 +1,2 @@
include README.rst COPYING
recursive-include terms *.html
recursive-include terms *.html *.po *.mo
29 changes: 28 additions & 1 deletion README.rst
Expand Up @@ -175,4 +175,31 @@ I don't see why they could be undesired, but here is a list of them:
* End tags ``</ a >``
-> ``</a>``;
* “Start-end” tags ``<input style = "text" />``
-> ``<input style="text" />``.
-> ``<input style="text" />``.



Translations
============

Write your translation
----------------------

Localization is done directly on
`our Transifex page <https://www.transifex.com/projects/p/django-terms/>`_.
Ask for a new language, and you'll get it ready for translation
within a couple of days.


Compile it
----------

First, you need to get it from Transifex, then to compile it:

#. Make sure you have
`transifex-client <http://pypi.python.org/pypi/transifex-client/>`_
installed: ``[sudo] pip install transifex-client``.
#. Pull your translation: ``tx pull -l [lang]``
#. Compile it:
``msgfmt terms/locale/[lang]/LC_MESSAGES/django.po
-o terms/locale/[lang]/LC_MESSAGES/django.mo``

0 comments on commit 4c37ad7

Please sign in to comment.