mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Minor consistency adjustments.
This commit is contained in:
		
							parent
							
								
									d1139e043c
								
							
						
					
					
						commit
						e3a3ceb2b1
					
				
					 1 changed files with 12 additions and 11 deletions
				
			
		| 
						 | 
					@ -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
 | 
					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.
 | 
					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
 | 
					The locale module exposes the C library's gettext interface on systems
 | 
				
			||||||
that provide this interface.  It consists of the functions
 | 
					that provide this interface.  It consists of the functions
 | 
				
			||||||
\function{gettext}, \function{dgettext}, \function{dcgettext},
 | 
					\function{gettext()}, \function{dgettext()}, \function{dcgettext()},
 | 
				
			||||||
\function{textdomain}, and \function{bindtextdomain}. These are
 | 
					\function{textdomain()}, and \function{bindtextdomain()}.  These are
 | 
				
			||||||
similar to the same functions in the \module{gettext} module, but use
 | 
					similar to the same functions in the \refmodule{gettext} module, but use
 | 
				
			||||||
the C library's binary format for message catalogs, and the C
 | 
					the C library's binary format for message catalogs, and the C
 | 
				
			||||||
library's search algorithms for locating message catalogs. 
 | 
					library's search algorithms for locating message catalogs. 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Python applications should normally find no need to invoke these
 | 
					Python applications should normally find no need to invoke these
 | 
				
			||||||
functions, and should use \module{gettext} instead. A known exception
 | 
					functions, and should use \refmodule{gettext} instead.  A known
 | 
				
			||||||
to this rule are applications that link use additional C libraries
 | 
					exception to this rule are applications that link use additional C
 | 
				
			||||||
which internally invoke \function{gettext} or \function{dgettext}. For
 | 
					libraries which internally invoke \cfunction{gettext()} or
 | 
				
			||||||
these applications, it may be necessary to bind the text domain, so
 | 
					\function{cdgettext()}.  For these applications, it may be necessary to
 | 
				
			||||||
that the libraries can properly locate their message catalogs.
 | 
					bind the text domain, so that the libraries can properly locate their
 | 
				
			||||||
 | 
					message catalogs.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue