1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
<html xmlns="http://www.w3.org/1999/xhtml">
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
<title>23. Internationalization — Python 3.5.2 documentation</title>
11
<link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
12
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
<script type="text/javascript">
15
var DOCUMENTATION_OPTIONS = {
18
COLLAPSE_INDEX: false,
23
<script type="text/javascript" src="../_static/jquery.js"></script>
24
<script type="text/javascript" src="../_static/underscore.js"></script>
25
<script type="text/javascript" src="../_static/doctools.js"></script>
26
<script type="text/javascript" src="../_static/sidebar.js"></script>
27
<link rel="search" type="application/opensearchdescription+xml"
28
title="Search within Python 3.5.2 documentation"
29
href="../_static/opensearch.xml"/>
30
<link rel="author" title="About these documents" href="../about.html" />
31
<link rel="copyright" title="Copyright" href="../copyright.html" />
32
<link rel="top" title="Python 3.5.2 documentation" href="../contents.html" />
33
<link rel="up" title="The Python Standard Library" href="index.html" />
34
<link rel="next" title="23.1. gettext — Multilingual internationalization services" href="gettext.html" />
35
<link rel="prev" title="22.9. ossaudiodev — Access to OSS-compatible audio devices" href="ossaudiodev.html" />
36
<link rel="shortcut icon" type="image/png" href="../_static/py.png" />
38
<script type="text/javascript" src="../_static/copybutton.js"></script>
39
<script type="text/javascript" src="../_static/version_switch.js"></script>
45
<body role="document">
46
<div class="related" role="navigation" aria-label="related navigation">
49
<li class="right" style="margin-right: 10px">
50
<a href="../genindex.html" title="General Index"
51
accesskey="I">index</a></li>
53
<a href="../py-modindex.html" title="Python Module Index"
56
<a href="gettext.html" title="23.1. gettext — Multilingual internationalization services"
57
accesskey="N">next</a> |</li>
59
<a href="ossaudiodev.html" title="22.9. ossaudiodev — Access to OSS-compatible audio devices"
60
accesskey="P">previous</a> |</li>
61
<li><img src="../_static/py.png" alt=""
62
style="vertical-align: middle; margin-top: -1px"/></li>
63
<li><a href="https://www.python.org/">Python</a> »</li>
65
<span class="version_switcher_placeholder">3.5.2</span>
66
<a href="../index.html">Documentation </a> »
69
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">The Python Standard Library</a> »</li>
73
<div class="inline-search" style="display: none" role="search">
74
<form class="inline-search" action="../search.html" method="get">
75
<input placeholder="Quick search" type="text" name="q" />
76
<input type="submit" value="Go" />
77
<input type="hidden" name="check_keywords" value="yes" />
78
<input type="hidden" name="area" value="default" />
81
<script type="text/javascript">$('.inline-search').show(0);</script>
88
<div class="document">
89
<div class="documentwrapper">
90
<div class="bodywrapper">
91
<div class="body" role="main">
93
<div class="section" id="internationalization">
94
<span id="i18n"></span><h1>23. Internationalization<a class="headerlink" href="#internationalization" title="Permalink to this headline">¶</a></h1>
95
<p>The modules described in this chapter help you write software that is
96
independent of language and locale by providing mechanisms for selecting a
97
language to be used in program messages or by tailoring output to match local
99
<p>The list of modules described in this chapter is:</p>
100
<div class="toctree-wrapper compound">
102
<li class="toctree-l1"><a class="reference internal" href="gettext.html">23.1. <code class="docutils literal"><span class="pre">gettext</span></code> — Multilingual internationalization services</a><ul>
103
<li class="toctree-l2"><a class="reference internal" href="gettext.html#gnu-gettext-api">23.1.1. GNU <strong class="program">gettext</strong> API</a></li>
104
<li class="toctree-l2"><a class="reference internal" href="gettext.html#class-based-api">23.1.2. Class-based API</a><ul>
105
<li class="toctree-l3"><a class="reference internal" href="gettext.html#the-nulltranslations-class">23.1.2.1. The <code class="docutils literal"><span class="pre">NullTranslations</span></code> class</a></li>
106
<li class="toctree-l3"><a class="reference internal" href="gettext.html#the-gnutranslations-class">23.1.2.2. The <code class="docutils literal"><span class="pre">GNUTranslations</span></code> class</a></li>
107
<li class="toctree-l3"><a class="reference internal" href="gettext.html#solaris-message-catalog-support">23.1.2.3. Solaris message catalog support</a></li>
108
<li class="toctree-l3"><a class="reference internal" href="gettext.html#the-catalog-constructor">23.1.2.4. The Catalog constructor</a></li>
111
<li class="toctree-l2"><a class="reference internal" href="gettext.html#internationalizing-your-programs-and-modules">23.1.3. Internationalizing your programs and modules</a><ul>
112
<li class="toctree-l3"><a class="reference internal" href="gettext.html#localizing-your-module">23.1.3.1. Localizing your module</a></li>
113
<li class="toctree-l3"><a class="reference internal" href="gettext.html#localizing-your-application">23.1.3.2. Localizing your application</a></li>
114
<li class="toctree-l3"><a class="reference internal" href="gettext.html#changing-languages-on-the-fly">23.1.3.3. Changing languages on the fly</a></li>
115
<li class="toctree-l3"><a class="reference internal" href="gettext.html#deferred-translations">23.1.3.4. Deferred translations</a></li>
118
<li class="toctree-l2"><a class="reference internal" href="gettext.html#acknowledgements">23.1.4. Acknowledgements</a></li>
121
<li class="toctree-l1"><a class="reference internal" href="locale.html">23.2. <code class="docutils literal"><span class="pre">locale</span></code> — Internationalization services</a><ul>
122
<li class="toctree-l2"><a class="reference internal" href="locale.html#background-details-hints-tips-and-caveats">23.2.1. Background, details, hints, tips and caveats</a></li>
123
<li class="toctree-l2"><a class="reference internal" href="locale.html#for-extension-writers-and-programs-that-embed-python">23.2.2. For extension writers and programs that embed Python</a></li>
124
<li class="toctree-l2"><a class="reference internal" href="locale.html#access-to-message-catalogs">23.2.3. Access to message catalogs</a></li>
135
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
136
<div class="sphinxsidebarwrapper">
137
<h4>Previous topic</h4>
138
<p class="topless"><a href="ossaudiodev.html"
139
title="previous chapter">22.9. <code class="docutils literal"><span class="pre">ossaudiodev</span></code> — Access to OSS-compatible audio devices</a></p>
141
<p class="topless"><a href="gettext.html"
142
title="next chapter">23.1. <code class="docutils literal"><span class="pre">gettext</span></code> — Multilingual internationalization services</a></p>
143
<div role="note" aria-label="source link">
145
<ul class="this-page-menu">
146
<li><a href="../bugs.html">Report a Bug</a></li>
147
<li><a href="../_sources/library/i18n.txt"
148
rel="nofollow">Show Source</a></li>
153
<div class="clearer"></div>
155
<div class="related" role="navigation" aria-label="related navigation">
158
<li class="right" style="margin-right: 10px">
159
<a href="../genindex.html" title="General Index"
162
<a href="../py-modindex.html" title="Python Module Index"
165
<a href="gettext.html" title="23.1. gettext — Multilingual internationalization services"
168
<a href="ossaudiodev.html" title="22.9. ossaudiodev — Access to OSS-compatible audio devices"
170
<li><img src="../_static/py.png" alt=""
171
style="vertical-align: middle; margin-top: -1px"/></li>
172
<li><a href="https://www.python.org/">Python</a> »</li>
174
<span class="version_switcher_placeholder">3.5.2</span>
175
<a href="../index.html">Documentation </a> »
178
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li>
182
<div class="inline-search" style="display: none" role="search">
183
<form class="inline-search" action="../search.html" method="get">
184
<input placeholder="Quick search" type="text" name="q" />
185
<input type="submit" value="Go" />
186
<input type="hidden" name="check_keywords" value="yes" />
187
<input type="hidden" name="area" value="default" />
190
<script type="text/javascript">$('.inline-search').show(0);</script>
197
© <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
199
The Python Software Foundation is a non-profit corporation.
200
<a href="https://www.python.org/psf/donations/">Please donate.</a>
202
Last updated on Oct 30, 2016.
203
<a href="../bugs.html">Found a bug</a>?
205
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
b'\\ No newline at end of file'