summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-02-10 21:34:22 (GMT)
committerGitHub <noreply@github.com>2020-02-10 21:34:22 (GMT)
commit3b888ad70aaed39df1985b38b4987feb5bee7981 (patch)
tree6c3fcc07a9107ba5a2d38c3293e88bf084096193
parent83efed9eba9e50ed2395bd3366c31628b9555b1e (diff)
downloadcpython-3b888ad70aaed39df1985b38b4987feb5bee7981.zip
cpython-3b888ad70aaed39df1985b38b4987feb5bee7981.tar.gz
cpython-3b888ad70aaed39df1985b38b4987feb5bee7981.tar.bz2
[3.7] bpo-3950: Fix docs for default locale used by gettext to match implementation (GH-18435) (GH-18439)
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@users.noreply.github.com> https://bugs.python.org/issue3950 Automerge-Triggered-By: @gvanrossum
-rw-r--r--Doc/library/gettext.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/gettext.rst b/Doc/library/gettext.rst
index 94ed340..c4e0483 100644
--- a/Doc/library/gettext.rst
+++ b/Doc/library/gettext.rst
@@ -652,8 +652,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.