localizing.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. =================
  2. Localizing Django
  3. =================
  4. Various parts of Django, such as the admin site and validation error messages,
  5. are internationalized. This means they display differently depending on each
  6. user's language or country. For this, Django uses the same internationalization
  7. and localization infrastructure available to Django applications, described in
  8. the :doc:`i18n documentation </topics/i18n/index>`.
  9. Translations
  10. ============
  11. Translations are contributed by Django users worldwide. The translation work is
  12. coordinated at `Transifex`_.
  13. If you find an incorrect translation or want to discuss specific translations,
  14. go to the `Django project page`_. If you would like to help out with
  15. translating or add a language that isn't yet translated, here's what to do:
  16. * Join the :ref:`Django i18n mailing list <django-i18n-mailing-list>` and
  17. introduce yourself.
  18. * Make sure you read the notes about :ref:`specialties-of-django-i18n`.
  19. * Sign up at `Transifex`_ and visit the `Django project page`_.
  20. * On the `Django project page`_, choose the language you want to work on,
  21. **or** -- in case the language doesn't exist yet --
  22. request a new language team by clicking on the "Request language" link
  23. and selecting the appropriate language.
  24. * Then, click the "Join this Team" button to become a member of this team.
  25. Every team has at least one coordinator who is responsible to review
  26. your membership request. You can also contact the team coordinator to clarify
  27. procedural problems and handle the actual translation process.
  28. * Once you are a member of a team choose the translation resource you
  29. want to update on the team page. For example the "core" resource refers
  30. to the translation catalog that contains all non-contrib translations.
  31. Each of the contrib apps also have a resource (prefixed with "contrib").
  32. .. note::
  33. For more information about how to use Transifex, read the
  34. `Transifex User Guide`_.
  35. Translations from Transifex are only integrated into the Django repository at
  36. the time of a new :term:`feature release <Feature release>`. We try to update
  37. them a second time during one of the following :term:`patch release
  38. <Patch release>`\s, but that depends on the translation manager's availability.
  39. So don't miss the string freeze period (between the release candidate and the
  40. feature release) to take the opportunity to complete and fix the translations
  41. for your language!
  42. Formats
  43. =======
  44. You can also review ``conf/locale/<locale>/formats.py``. This file describes
  45. the date, time and numbers formatting particularities of your locale. See
  46. :doc:`/topics/i18n/formatting` for details.
  47. The format files aren't managed by the use of Transifex. To change them, you
  48. must :doc:`create a patch<writing-code/submitting-patches>` against the
  49. Django source tree, as for any code change:
  50. * Create a diff against the current Git master branch.
  51. * Open a ticket in Django's ticket system, set its ``Component`` field to
  52. ``Translations``, and attach the patch to it.
  53. .. _Transifex: https://www.transifex.com/
  54. .. _Django project page: https://www.transifex.com/django/django/
  55. .. _Transifex User Guide: https://docs.transifex.com/
  56. .. _translating-documentation:
  57. Documentation
  58. =============
  59. There is also an opportunity to translate the documentation, though this is a
  60. huge undertaking to complete entirely (you have been warned!). We use the same
  61. `Transifex tool <https://www.transifex.com/django/django-docs/>`_. The
  62. translations will appear at ``https://docs.djangoproject.com/<language_code>/``
  63. when at least the ``docs/intro/*`` files are fully translated in your language.
  64. Once translations are published, updated versions from Transifex will be
  65. irregularly ported to the `django/django-docs-translations
  66. <https://github.com/django/django-docs-translations>`_ repository and to the
  67. documentation website. Only translations for the latest stable Django release
  68. are updated.