Skip to content
Myr

Improve documentation for initializing the i18n extension (#2023)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by GitHub · parents 3e5b5b2, a9a0197 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:docs/extensions.rst+4 added
37 unmodified lines
38``ngettext``, and optionally ``pgettext`` and ``npgettext``, either39globally or when rendering. A ``_()`` function is added as an alias to40the ``gettext`` function.4142A convenient way to provide these functions is to call one of the below43methods depending on the translation system in use. If you do not require44actual translation, use ``Environment.install_null_translations`` to45install no-op functions.4647Environment Methods48~~~~~~~~~~~~~~~~~~~49
378 unmodified lines