~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to python-3.5.2-docs-html/library/i18n.html

  • Committer: Dave Kuhlman
  • Date: 2017-04-15 16:24:56 UTC
  • Revision ID: dkuhlman@davekuhlman.org-20170415162456-iav9vozzg4iwqwv3
Updated docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
 
 
4
 
 
5
<html xmlns="http://www.w3.org/1999/xhtml">
 
6
  <head>
 
7
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
8
    
 
9
    <title>23. Internationalization &mdash; Python 3.5.2 documentation</title>
 
10
    
 
11
    <link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
 
12
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
 
13
    
 
14
    <script type="text/javascript">
 
15
      var DOCUMENTATION_OPTIONS = {
 
16
        URL_ROOT:    '../',
 
17
        VERSION:     '3.5.2',
 
18
        COLLAPSE_INDEX: false,
 
19
        FILE_SUFFIX: '.html',
 
20
        HAS_SOURCE:  true
 
21
      };
 
22
    </script>
 
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" />
 
37
    
 
38
    <script type="text/javascript" src="../_static/copybutton.js"></script>
 
39
    <script type="text/javascript" src="../_static/version_switch.js"></script>
 
40
    
 
41
    
 
42
 
 
43
 
 
44
  </head>
 
45
  <body role="document">  
 
46
    <div class="related" role="navigation" aria-label="related navigation">
 
47
      <h3>Navigation</h3>
 
48
      <ul>
 
49
        <li class="right" style="margin-right: 10px">
 
50
          <a href="../genindex.html" title="General Index"
 
51
             accesskey="I">index</a></li>
 
52
        <li class="right" >
 
53
          <a href="../py-modindex.html" title="Python Module Index"
 
54
             >modules</a> |</li>
 
55
        <li class="right" >
 
56
          <a href="gettext.html" title="23.1. gettext — Multilingual internationalization services"
 
57
             accesskey="N">next</a> |</li>
 
58
        <li class="right" >
 
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> &raquo;</li>
 
64
        <li>
 
65
          <span class="version_switcher_placeholder">3.5.2</span>
 
66
          <a href="../index.html">Documentation </a> &raquo;
 
67
        </li>
 
68
 
 
69
          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">The Python Standard Library</a> &raquo;</li>
 
70
    <li class="right">
 
71
        
 
72
 
 
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" />
 
79
        </form>
 
80
    </div>
 
81
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
82
         |
 
83
    </li>
 
84
 
 
85
      </ul>
 
86
    </div>    
 
87
 
 
88
    <div class="document">
 
89
      <div class="documentwrapper">
 
90
        <div class="bodywrapper">
 
91
          <div class="body" role="main">
 
92
            
 
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
 
98
conventions.</p>
 
99
<p>The list of modules described in this chapter is:</p>
 
100
<div class="toctree-wrapper compound">
 
101
<ul>
 
102
<li class="toctree-l1"><a class="reference internal" href="gettext.html">23.1. <code class="docutils literal"><span class="pre">gettext</span></code> &#8212; 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>
 
109
</ul>
 
110
</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>
 
116
</ul>
 
117
</li>
 
118
<li class="toctree-l2"><a class="reference internal" href="gettext.html#acknowledgements">23.1.4. Acknowledgements</a></li>
 
119
</ul>
 
120
</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> &#8212; 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>
 
125
</ul>
 
126
</li>
 
127
</ul>
 
128
</div>
 
129
</div>
 
130
 
 
131
 
 
132
          </div>
 
133
        </div>
 
134
      </div>
 
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> &#8212; Access to OSS-compatible audio devices</a></p>
 
140
  <h4>Next topic</h4>
 
141
  <p class="topless"><a href="gettext.html"
 
142
                        title="next chapter">23.1. <code class="docutils literal"><span class="pre">gettext</span></code> &#8212; Multilingual internationalization services</a></p>
 
143
  <div role="note" aria-label="source link">
 
144
    <h3>This Page</h3>
 
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>
 
149
    </ul>
 
150
  </div>
 
151
        </div>
 
152
      </div>
 
153
      <div class="clearer"></div>
 
154
    </div>  
 
155
    <div class="related" role="navigation" aria-label="related navigation">
 
156
      <h3>Navigation</h3>
 
157
      <ul>
 
158
        <li class="right" style="margin-right: 10px">
 
159
          <a href="../genindex.html" title="General Index"
 
160
             >index</a></li>
 
161
        <li class="right" >
 
162
          <a href="../py-modindex.html" title="Python Module Index"
 
163
             >modules</a> |</li>
 
164
        <li class="right" >
 
165
          <a href="gettext.html" title="23.1. gettext — Multilingual internationalization services"
 
166
             >next</a> |</li>
 
167
        <li class="right" >
 
168
          <a href="ossaudiodev.html" title="22.9. ossaudiodev — Access to OSS-compatible audio devices"
 
169
             >previous</a> |</li>
 
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> &raquo;</li>
 
173
        <li>
 
174
          <span class="version_switcher_placeholder">3.5.2</span>
 
175
          <a href="../index.html">Documentation </a> &raquo;
 
176
        </li>
 
177
 
 
178
          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &raquo;</li>
 
179
    <li class="right">
 
180
        
 
181
 
 
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" />
 
188
        </form>
 
189
    </div>
 
190
    <script type="text/javascript">$('.inline-search').show(0);</script>
 
191
         |
 
192
    </li>
 
193
 
 
194
      </ul>
 
195
    </div>  
 
196
    <div class="footer">
 
197
    &copy; <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
 
198
    <br />
 
199
    The Python Software Foundation is a non-profit corporation.
 
200
    <a href="https://www.python.org/psf/donations/">Please donate.</a>
 
201
    <br />
 
202
    Last updated on Oct 30, 2016.
 
203
    <a href="../bugs.html">Found a bug</a>?
 
204
    <br />
 
205
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
 
206
    </div>
 
207
 
 
208
  </body>
 
209
</html>
 
 
b'\\ No newline at end of file'