2
0

localizing.txt 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 adding a language that isn't yet translated, here's what to do:
  16. * Introduce yourself on the `Django internationalization forum`_.
  17. * Make sure you read the notes about :ref:`specialties-of-django-i18n`.
  18. * Sign up at `Transifex`_ and visit the `Django project page`_.
  19. * On the `Django project page`_, choose the language you want to work on,
  20. **or** -- in case the language doesn't exist yet --
  21. request a new language team by clicking on the "Request language" link
  22. and selecting the appropriate language.
  23. * Then, click the "Join this Team" button to become a member of this team.
  24. Every team has at least one coordinator who is responsible to review
  25. your membership request. You can also contact the team coordinator to clarify
  26. procedural problems and handle the actual translation process.
  27. * Once you are a member of a team choose the translation resource you
  28. want to update on the team page. For example, the "core" resource refers
  29. to the translation catalog that contains all non-contrib translations.
  30. Each of the contrib apps also has a resource (prefixed with "contrib").
  31. .. note::
  32. For more information about how to use Transifex, read the
  33. `Transifex User Guide`_.
  34. Translations from Transifex are only integrated into the Django repository at
  35. the time of a new :term:`feature release <Feature release>`. We try to update
  36. them a second time during one of the following :term:`patch release
  37. <Patch release>`\s, but that depends on the translation manager's availability.
  38. So don't miss the string freeze period (between the release candidate and the
  39. feature release) to take the opportunity to complete and fix the translations
  40. for your language!
  41. Formats
  42. =======
  43. You can also review ``conf/locale/<locale>/formats.py``. This file describes
  44. the date, time and numbers formatting particularities of your locale. See
  45. :doc:`/topics/i18n/formatting` for details.
  46. The format files aren't managed by the use of Transifex. To change them, you
  47. must:
  48. * :doc:`Create a pull request<writing-code/submitting-patches>` against the
  49. Django Git ``main`` branch, as for any code change.
  50. * Open a ticket in Django's ticket system, set its ``Component`` field to
  51. ``Translations``, set the "has patch" flag, and include the link to the pull
  52. request.
  53. .. _Transifex: https://www.transifex.com/
  54. .. _Django project page: https://app.transifex.com/django/django/
  55. .. _Django internationalization forum: https://forum.djangoproject.com/c/internals/i18n/14
  56. .. _Transifex User Guide: https://help.transifex.com/
  57. .. _translating-documentation:
  58. Documentation
  59. =============
  60. There is also an opportunity to translate the documentation, though this is a
  61. huge undertaking to complete entirely (you have been warned!). We use the same
  62. `Transifex tool <https://app.transifex.com/django/django-docs/>`_. The
  63. translations will appear at ``https://docs.djangoproject.com/<language_code>/``
  64. when at least the ``docs/intro/*`` files are fully translated in your language.
  65. Once translations are published, updated versions from Transifex will be
  66. irregularly ported to the `django/django-docs-translations
  67. <https://github.com/django/django-docs-translations>`_ repository and to the
  68. documentation website. Only translations for the latest stable Django release
  69. are updated.