Tweaks to internationalisation docs

pull/6481/head
Karl Hobley 2020-10-23 09:18:29 +01:00 zatwierdzone przez Matt Westcott
rodzic 123d9cef92
commit bd70ecf318
1 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -16,8 +16,9 @@ Overview
Out of the box, Wagtail assumes all content will be authored in a single language.
This document describes how to configure Wagtail for authoring content in
multiple languages and, optionally, set up a workflow that allows users to
translate content between languages.
multiple languages. For translating content between different languages, a translation
plugin (such as `wagtail-localize <https://github.com/wagtail/wagtail-localize>`_)
must be installed separately.
This document only covers the internationalisation of content managed by Wagtail.
For information on how to translate static content in template files, JavaScript
@ -172,6 +173,14 @@ enable English, French, and Spanish:
('es', "Spanish"),
]
.. note::
Whenever ``WAGTAIL_CONTENT_LANGUAGES`` is changed, the ``Locale`` model needs
to be updated as well to match.
This can either be done with a data migration or with the optional locale
management UI described in the next section.
You can also set these to different values. You might want to do this if you
want to have some programmatic localisation (like date formatting or currency,
for example) but use the same Wagtail content in multiple regions: