[Python-checkins] Issue3950: Fix docs for default locale used by gettext to match implementation (GH-18435)

Miss Islington (bot) webhook-mailer at python.org
Mon Feb 10 16:25:01 EST 2020


https://github.com/python/cpython/commit/a83d9108066a7a22605ba7ee962a755f4bec1ab1
commit: a83d9108066a7a22605ba7ee962a755f4bec1ab1
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-02-10T13:24:53-08:00
summary:

Issue3950: Fix docs for default locale used by gettext to match implementation (GH-18435)


documentation for default locale directory Doc/library/gettext.rst changed to match gettext implementation line 63.
(cherry picked from commit d68e0a8a165761604e820c8cb4f20abc735e717f)

Co-authored-by: Carl <Carl-Ty at users.noreply.github.com>

files:
M Doc/library/gettext.rst

diff --git a/Doc/library/gettext.rst b/Doc/library/gettext.rst
index 937330bb201b0..ec2c12806b416 100644
--- a/Doc/library/gettext.rst
+++ b/Doc/library/gettext.rst
@@ -724,8 +724,8 @@ implementations, and valuable experience to the creation of this module:
 .. [#] The default locale directory is system dependent; for example, on RedHat Linux
    it is :file:`/usr/share/locale`, but on Solaris it is :file:`/usr/lib/locale`.
    The :mod:`gettext` module does not try to support these system dependent
-   defaults; instead its default is :file:`{sys.prefix}/share/locale` (see
-   :data:`sys.prefix`). For this reason, it is always best to call
+   defaults; instead its default is :file:`{sys.base_prefix}/share/locale` (see
+   :data:`sys.base_prefix`). For this reason, it is always best to call
    :func:`bindtextdomain` with an explicit absolute path at the start of your
    application.
 



More information about the Python-checkins mailing list