2011-10-22 17:17:57 +00:00
|
|
|
=================
|
|
|
|
Localizing Django
|
|
|
|
=================
|
2011-05-27 10:49:47 +00:00
|
|
|
|
|
|
|
Various parts of Django, such as the admin site and validation error messages,
|
2011-10-22 17:17:57 +00:00
|
|
|
are internationalized. This means they display differently depending on each
|
|
|
|
user's language or country. For this, Django uses the same internationalization
|
|
|
|
and localization infrastructure available to Django applications, described in
|
|
|
|
the :doc:`i18n documentation </topics/i18n/index>`.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-10-22 17:17:57 +00:00
|
|
|
Translations
|
|
|
|
------------
|
2011-07-19 13:16:09 +00:00
|
|
|
|
|
|
|
Translations are contributed by Django users worldwide. The translation work is
|
|
|
|
coordinated at `Transifex`_.
|
|
|
|
|
2012-03-12 23:05:16 +00:00
|
|
|
If you find an incorrect translation or want to discuss specific translations,
|
2012-03-12 22:00:44 +00:00
|
|
|
go to the `Django project page`_. If you would like to help out with
|
|
|
|
translating or add a language that isn't yet translated, here's what to do:
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-10-14 00:12:01 +00:00
|
|
|
* Join the `Django i18n mailing list`_ and introduce yourself.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-10-14 00:12:01 +00:00
|
|
|
* Make sure you read the notes about :ref:`specialties-of-django-i18n`.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-10-14 00:12:01 +00:00
|
|
|
* Signup at `Transifex`_ and visit the `Django project page`_.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2012-03-12 22:00:44 +00:00
|
|
|
* On the `Django project page`_, choose the language you want to work on,
|
|
|
|
**or** -- in case the language doesn't exist yet --
|
|
|
|
request a new language team by clicking on the "Request language" link
|
2012-03-12 23:05:16 +00:00
|
|
|
and selecting the appropriate language.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-10-14 00:12:01 +00:00
|
|
|
* Then, click the "Join this Team" button to become a member of this team.
|
|
|
|
Every team has at least one coordinator who is responsible to review
|
|
|
|
your membership request. You can of course also contact the team
|
|
|
|
coordinator to clarify procedural problems and handle the actual
|
|
|
|
translation process.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-10-14 00:12:01 +00:00
|
|
|
* Once you are a member of a team choose the translation resource you
|
|
|
|
want to update on the team page. For example the "core" resource refers
|
|
|
|
to the translation catalogue that contains all non-contrib translations.
|
|
|
|
Each of the contrib apps also have a resource (prefixed with "contrib").
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-10-14 00:12:01 +00:00
|
|
|
.. note::
|
|
|
|
For more information about how to use Transifex, read the
|
|
|
|
`Transifex User Guide`_.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-10-22 17:17:57 +00:00
|
|
|
Formats
|
|
|
|
-------
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-07-19 13:16:09 +00:00
|
|
|
You can also review ``conf/locale/<locale>/formats.py``. This file describes
|
|
|
|
the date, time and numbers formatting particularities of your locale. See
|
|
|
|
:ref:`format-localization` for details.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2011-07-19 13:16:09 +00:00
|
|
|
The format files aren't managed by the use of Transifex. To change them, you
|
2012-03-12 22:00:44 +00:00
|
|
|
must :doc:`create a patch<writing-code/submitting-patches>` against the
|
|
|
|
Django source tree, as for any code change:
|
2011-07-19 13:16:09 +00:00
|
|
|
|
2011-10-14 00:12:01 +00:00
|
|
|
* Create a diff against the current Subversion trunk.
|
2011-07-19 13:16:09 +00:00
|
|
|
|
2011-10-14 00:12:01 +00:00
|
|
|
* Open a ticket in Django's ticket system, set its ``Component`` field to
|
|
|
|
``Translations``, and attach the patch to it.
|
2011-05-27 10:49:47 +00:00
|
|
|
|
2012-06-28 08:49:07 +00:00
|
|
|
.. _Transifex: https://www.transifex.com/
|
2011-07-19 13:16:09 +00:00
|
|
|
.. _Django i18n mailing list: http://groups.google.com/group/django-i18n/
|
2012-06-28 08:49:07 +00:00
|
|
|
.. _Django project page: https://www.transifex.com/projects/p/django/
|
|
|
|
.. _Transifex User Guide: http://help.transifex.com/
|