summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-03-27 18:49:02 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-03-27 18:49:02 (GMT)
commit2e64c3485021ec8c8e2dfc51f1c93d349ab7d3ba (patch)
tree7c419b12c47308f04699f7988714a84a3b81e011 /Doc/lib
parent4208d4f7574bef6cfd78e242a83aedd12442c812 (diff)
downloadcpython-2e64c3485021ec8c8e2dfc51f1c93d349ab7d3ba.zip
cpython-2e64c3485021ec8c8e2dfc51f1c93d349ab7d3ba.tar.gz
cpython-2e64c3485021ec8c8e2dfc51f1c93d349ab7d3ba.tar.bz2
Expose C library's gettext. Fixes #516412.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/liblocale.tex18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/lib/liblocale.tex b/Doc/lib/liblocale.tex
index 72dc69c..c90b461 100644
--- a/Doc/lib/liblocale.tex
+++ b/Doc/lib/liblocale.tex
@@ -467,3 +467,21 @@ application doesn't want this to happen, it should remove the
\module{_locale} extension module (which does all the work) from the
table of built-in modules in the \file{config.c} file, and make sure
that the \module{_locale} module is not accessible as a shared library.
+
+\subsection{Access to message catalogs}
+
+The locale module exposes the C library's gettext interface on systems
+that provide this interface. It consists of the functions
+\function{gettext}, \function{dgettext}, \function{dcgettext},
+\function{textdomain}, and \function{bindtextdomain}. These are
+similar to the same functions in the \module{gettext} module, but use
+the C library's binary format for message catalogs, and the C
+library's search algorithms for locating message catalogs.
+
+Python applications should normally find no need to invoke these
+functions, and should use \module{gettext} instead. A known exception
+to this rule are applications that link use additional C libraries
+which internally invoke \function{gettext} or \function{dgettext}. For
+these applications, it may be necessary to bind the text domain, so
+that the libraries can properly locate their message catalogs.
+