Skip to content

Commit 9dbb4d0

Browse files
committed
Reflect removal of the lgettext and lngettext methods
1 parent 47b6662 commit 9dbb4d0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Doc/library/gettext.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ install themselves in the built-in namespace as the function :func:`!_`.
155155
associated :file:`.mo` file paths. Instances with identical :file:`.mo` file
156156
names are cached. The actual class instantiated is *class_* if
157157
provided, otherwise :class:`GNUTranslations`. The class's constructor must
158-
take a single :term:`file object` argument. If provided, *codeset* will change
159-
the charset used to encode translated strings in the
160-
:meth:`~NullTranslations.lgettext` and :meth:`~NullTranslations.lngettext`
161-
methods.
158+
take a single :term:`file object` argument.
162159

163160
If multiple files are found, later files are used as fallbacks for earlier ones.
164161
To allow setting the fallback, :func:`copy.copy` is used to clone each
@@ -277,7 +274,7 @@ are the methods of :class:`!NullTranslations`:
277274
If the *names* parameter is given, it must be a sequence containing the
278275
names of functions you want to install in the builtins namespace in
279276
addition to :func:`!_`. Supported names are ``'gettext'``, ``'ngettext'``,
280-
``'pgettext'``, ``'npgettext'``, ``'lgettext'``, and ``'lngettext'``.
277+
``'pgettext'``, and ``'npgettext'``.
281278

282279
Note that this is only one way, albeit the most convenient way, to make
283280
the :func:`!_` function available to your application. Because it affects

0 commit comments

Comments
 (0)