Skip to content

Commit d68e0a8

Browse files
authored
Issue3950: Fix docs for default locale used by gettext to match implementation (#18435)
documentation for default locale directory Doc/library/gettext.rst changed to match gettext implementation line 63.
1 parent 3c5dec6 commit d68e0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/gettext.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ implementations, and valuable experience to the creation of this module:
724724
.. [#] The default locale directory is system dependent; for example, on RedHat Linux
725725
it is :file:`/usr/share/locale`, but on Solaris it is :file:`/usr/lib/locale`.
726726
The :mod:`gettext` module does not try to support these system dependent
727-
defaults; instead its default is :file:`{sys.prefix}/share/locale` (see
728-
:data:`sys.prefix`). For this reason, it is always best to call
727+
defaults; instead its default is :file:`{sys.base_prefix}/share/locale` (see
728+
:data:`sys.base_prefix`). For this reason, it is always best to call
729729
:func:`bindtextdomain` with an explicit absolute path at the start of your
730730
application.
731731

0 commit comments

Comments
 (0)