2011-10-23 01:17:57 +08:00
|
|
|
=================
|
|
|
|
Localizing Django
|
|
|
|
=================
|
2011-05-27 18:49:47 +08:00
|
|
|
|
|
|
|
Various parts of Django, such as the admin site and validation error messages,
|
2011-10-23 01:17:57 +08: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 18:49:47 +08:00
|
|
|
|
2011-10-23 01:17:57 +08:00
|
|
|
Translations
|
2016-01-03 18:56:22 +08:00
|
|
|
============
|
2011-07-19 21:16:09 +08:00
|
|
|
|
|
|
|
Translations are contributed by Django users worldwide. The translation work is
|
|
|
|
coordinated at `Transifex`_.
|
|
|
|
|
2012-03-13 07:05:16 +08:00
|
|
|
If you find an incorrect translation or want to discuss specific translations,
|
2012-03-13 06:00:44 +08: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 18:49:47 +08:00
|
|
|
|
2014-03-19 01:02:42 +08:00
|
|
|
* Join the :ref:`Django i18n mailing list <django-i18n-mailing-list>` and
|
|
|
|
introduce yourself.
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2011-10-14 08:12:01 +08:00
|
|
|
* Make sure you read the notes about :ref:`specialties-of-django-i18n`.
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2014-03-01 10:03:46 +08:00
|
|
|
* Sign up at `Transifex`_ and visit the `Django project page`_.
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2012-03-13 06:00:44 +08: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-13 07:05:16 +08:00
|
|
|
and selecting the appropriate language.
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2011-10-14 08:12:01 +08: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 18:49:47 +08:00
|
|
|
|
2011-10-14 08:12:01 +08: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
|
2014-03-01 10:03:46 +08:00
|
|
|
to the translation catalog that contains all non-contrib translations.
|
2011-10-14 08:12:01 +08:00
|
|
|
Each of the contrib apps also have a resource (prefixed with "contrib").
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2011-10-14 08:12:01 +08:00
|
|
|
.. note::
|
|
|
|
For more information about how to use Transifex, read the
|
|
|
|
`Transifex User Guide`_.
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2015-02-10 02:02:39 +08:00
|
|
|
Translations from Transifex are only integrated into the Django repository at
|
2015-06-20 20:58:10 +08:00
|
|
|
the time of a new :term:`feature release`. We try to update them a second time
|
|
|
|
during one of the following :term:`patch release`\s, but that depends on the
|
|
|
|
translation manager's availability. So don't miss the string freeze period
|
|
|
|
(between the release candidate and the feature release) to take the opportunity
|
|
|
|
to complete and fix the translations for your language!
|
2015-02-10 02:02:39 +08:00
|
|
|
|
2011-10-23 01:17:57 +08:00
|
|
|
Formats
|
2016-01-03 18:56:22 +08:00
|
|
|
=======
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2011-07-19 21:16:09 +08:00
|
|
|
You can also review ``conf/locale/<locale>/formats.py``. This file describes
|
|
|
|
the date, time and numbers formatting particularities of your locale. See
|
2016-01-03 18:56:22 +08:00
|
|
|
:doc:`/topics/i18n/formatting` for details.
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2011-07-19 21:16:09 +08:00
|
|
|
The format files aren't managed by the use of Transifex. To change them, you
|
2012-03-13 06:00:44 +08:00
|
|
|
must :doc:`create a patch<writing-code/submitting-patches>` against the
|
|
|
|
Django source tree, as for any code change:
|
2011-07-19 21:16:09 +08:00
|
|
|
|
2012-10-15 05:03:01 +08:00
|
|
|
* Create a diff against the current Git master branch.
|
2011-07-19 21:16:09 +08:00
|
|
|
|
2011-10-14 08:12:01 +08:00
|
|
|
* Open a ticket in Django's ticket system, set its ``Component`` field to
|
|
|
|
``Translations``, and attach the patch to it.
|
2011-05-27 18:49:47 +08:00
|
|
|
|
2012-06-28 16:49:07 +08:00
|
|
|
.. _Transifex: https://www.transifex.com/
|
2015-08-08 17:32:57 +08:00
|
|
|
.. _Django project page: https://www.transifex.com/django/django/
|
2017-05-20 23:51:21 +08:00
|
|
|
.. _Transifex User Guide: https://docs.transifex.com/
|
2014-07-03 01:16:31 +08:00
|
|
|
|
|
|
|
.. _translating-documentation:
|
|
|
|
|
|
|
|
Documentation
|
2016-01-03 18:56:22 +08:00
|
|
|
=============
|
2014-07-03 01:16:31 +08:00
|
|
|
|
|
|
|
There is also an opportunity to translate the documentation, though this is a
|
|
|
|
huge undertaking to complete entirely (you have been warned!). We use the same
|
2015-08-08 17:32:57 +08:00
|
|
|
`Transifex tool <https://www.transifex.com/django/django-docs/>`_. The
|
2014-07-03 01:16:31 +08:00
|
|
|
translations will appear at ``https://docs.djangoproject.com/<language_code>/``
|
|
|
|
when at least the ``docs/intro/*`` files are fully translated in your language.
|
2020-02-06 21:55:17 +08:00
|
|
|
|
|
|
|
Once translations are published, updated versions from Transifex will be
|
|
|
|
irregularly ported to the `django/django-docs-translations
|
|
|
|
<https://github.com/django/django-docs-translations>`_ repository and to the
|
|
|
|
documentation website. Only translations for the latest stable Django release
|
|
|
|
are updated.
|