Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adds translations using Transifex.

  • Loading branch information...
commit 4c37ad774c634affb2c5ea8cacbff5c15bd0fae7 1 parent 2557172
@BertrandBordage authored
Showing with 36 additions and 2 deletions.
  1. +7 −0 .tx/config
  2. +1 −1  MANIFEST.in
  3. +28 −1 README.rst
View
7 .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
+
View
2  MANIFEST.in
@@ -1,2 +1,2 @@
include README.rst COPYING
-recursive-include terms *.html
+recursive-include terms *.html *.po *.mo
View
29 README.rst
@@ -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``
Please sign in to comment.
Something went wrong with that request. Please try again.