Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e3a3ceb2
Commit
e3a3ceb2
authored
Mar 28, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor consistency adjustments.
parent
d1139e04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
Doc/lib/liblocale.tex
Doc/lib/liblocale.tex
+12
-11
No files found.
Doc/lib/liblocale.tex
View file @
e3a3ceb2
...
...
@@ -468,20 +468,21 @@ application doesn't want this to happen, it should remove 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
}
\subsection
{
Access to message catalogs
\label
{
locale-gettext
}}
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
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
\
ref
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 exceptio
n
to this rule are applications that link use additional C libraries
which internally invoke
\function
{
gettext
}
or
\function
{
dgettext
}
. F
or
these applications, it may be necessary to bind the text domain, s
o
that the libraries can properly locate their message catalogs.
functions, and should use
\
refmodule
{
gettext
}
instead. A know
n
exception to this rule are applications that link use additional C
libraries which internally invoke
\cfunction
{
gettext()
}
or
\function
{
cdgettext()
}
. For these applications, it may be necessary t
o
bind the text domain, so that the libraries can properly locate their
message catalogs.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment