CINXE.COM
Babel — Babel 2.14.0 documentation
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" /> <title>Babel — Babel 2.14.0 documentation</title> <link rel="stylesheet" type="text/css" href="_static/pygments.css" /> <link rel="stylesheet" type="text/css" href="_static/babel.css" /> <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> <script src="_static/_sphinx_javascript_frameworks_compat.js"></script> <script src="_static/doctools.js"></script> <script src="_static/sphinx_highlight.js"></script> <link rel="index" title="Index" href="genindex.html" /> <link rel="search" title="Search" href="search.html" /> <link rel="next" title="Introduction" href="intro.html" /> <link media="only screen and (max-device-width: 480px)" href="_static/small_flask.css" type= "text/css" rel="stylesheet" /> <link href="//fonts.googleapis.com/css?family=Bree+Serif" rel="stylesheet" type="text/css"> <link href="//fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css"> <!-- RTD Extra Head --> <script type="application/json" id="READTHEDOCS_DATA">{"ad_free": false, "api_host": "https://readthedocs.org", "builder": "sphinx", "canonical_url": null, "docroot": "/docs/", "features": {"docsearch_disabled": false}, "global_analytics_code": "UA-17997319-1", "language": "en", "page": "index", "programming_language": "py", "project": "python-babel", "proxied_api_host": "/_", "source_suffix": ".rst", "subprojects": {}, "theme": "babel", "user_analytics_code": "", "version": "latest"}</script> <!-- Using this variable directly instead of using `JSON.parse` is deprecated. The READTHEDOCS_DATA global variable will be removed in the future. --> <script type="text/javascript"> READTHEDOCS_DATA = JSON.parse(document.getElementById('READTHEDOCS_DATA').innerHTML); </script> <!-- end RTD <extrahead> --> <script async type="text/javascript" src="/_/static/javascript/readthedocs-addons.js"></script><meta name="readthedocs-project-slug" content="python-babel" /><meta name="readthedocs-version-slug" content="latest" /><meta name="readthedocs-resolver-filename" content="/" /><meta name="readthedocs-http-status" content="200" /></head><body> <div class=indexwrapper> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="intro.html" title="Introduction" accesskey="N">next</a> |</li> <li class="nav-item nav-item-0"><a href="#">Babel 2.14.0 documentation</a> »</li> <li class="nav-item nav-item-this"><a href="">Babel</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <section id="babel"> <h1>Babel<a class="headerlink" href="#babel" title="Permalink to this heading">露</a></h1> <p>Babel is an integrated collection of utilities that assist in internationalizing and localizing Python applications, with an emphasis on web-based applications.</p> <section id="user-documentation"> <h2>User Documentation<a class="headerlink" href="#user-documentation" title="Permalink to this heading">露</a></h2> <p>The user documentation explains some core concept of the library and gives some information about how it can be used.</p> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction</a></li> <li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="locale.html">Locale Data</a></li> <li class="toctree-l1"><a class="reference internal" href="dates.html">Date and Time</a></li> <li class="toctree-l1"><a class="reference internal" href="numbers.html">Number Formatting</a></li> <li class="toctree-l1"><a class="reference internal" href="messages.html">Working with Message Catalogs</a></li> <li class="toctree-l1"><a class="reference internal" href="cmdline.html">Command-Line Interface</a></li> <li class="toctree-l1"><a class="reference internal" href="setup.html">Distutils/Setuptools Integration</a></li> <li class="toctree-l1"><a class="reference internal" href="support.html">Support Classes and Functions</a></li> </ul> </div> </section> <section id="api-reference"> <h2>API Reference<a class="headerlink" href="#api-reference" title="Permalink to this heading">露</a></h2> <p>The API reference lists the full public API that Babel provides.</p> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="api/index.html">API Reference</a><ul> <li class="toctree-l2"><a class="reference internal" href="api/core.html">Core Functionality</a></li> <li class="toctree-l2"><a class="reference internal" href="api/dates.html">Date and Time</a></li> <li class="toctree-l2"><a class="reference internal" href="api/languages.html">Languages</a></li> <li class="toctree-l2"><a class="reference internal" href="api/lists.html">List Formatting</a></li> <li class="toctree-l2"><a class="reference internal" href="api/messages/index.html">Messages and Catalogs</a></li> <li class="toctree-l2"><a class="reference internal" href="api/numbers.html">Numbers and Currencies</a></li> <li class="toctree-l2"><a class="reference internal" href="api/plural.html">Pluralization Support</a></li> <li class="toctree-l2"><a class="reference internal" href="api/support.html">General Support Functionality</a></li> <li class="toctree-l2"><a class="reference internal" href="api/units.html">Units</a></li> </ul> </li> </ul> </div> </section> <section id="additional-notes"> <h2>Additional Notes<a class="headerlink" href="#additional-notes" title="Permalink to this heading">露</a></h2> <div class="toctree-wrapper compound"> <ul> <li class="toctree-l1"><a class="reference internal" href="dev.html">Babel Development</a><ul> <li class="toctree-l2"><a class="reference internal" href="dev.html#tracking-the-cldr">Tracking the CLDR</a></li> <li class="toctree-l2"><a class="reference internal" href="dev.html#python-versions">Python Versions</a></li> <li class="toctree-l2"><a class="reference internal" href="dev.html#unicode">Unicode</a></li> <li class="toctree-l2"><a class="reference internal" href="dev.html#dates-and-timezones">Dates and Timezones</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="changelog.html">Babel Changelog</a><ul> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-14-0">Version 2.14.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-13-1">Version 2.13.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-13-0">Version 2.13.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-12-1">Version 2.12.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-12-0">Version 2.12.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-11-0">Version 2.11.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-10-3">Version 2.10.3</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-10-2">Version 2.10.2</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-10-1">Version 2.10.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-10-0">Version 2.10.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-9-1">Version 2.9.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-9-0">Version 2.9.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-8-1">Version 2.8.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-8-0">Version 2.8.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-7-0">Version 2.7.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-6-0">Version 2.6.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-5-3">Version 2.5.3</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-5-2">Version 2.5.2</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-5-1">Version 2.5.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-5-0">Version 2.5.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-4-0">Version 2.4.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-3-4">Version 2.3.4</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-3-3">Version 2.3.3</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-3-2">Version 2.3.2</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-3-1">Version 2.3.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-3">Version 2.3</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-2">Version 2.2</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-1">Version 2.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-2-0">Version 2.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-1-4">Version 1.4</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-1-3">Version 1.3</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-1-2">Version 1.2</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-1-1">Version 1.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-1-0">Version 1.0</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-9-6">Version 0.9.6</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-9-5">Version 0.9.5</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-9-4">Version 0.9.4</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-9-3">Version 0.9.3</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-9-2">Version 0.9.2</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-9-1">Version 0.9.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-9">Version 0.9</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-8-1">Version 0.8.1</a></li> <li class="toctree-l2"><a class="reference internal" href="changelog.html#version-0-8">Version 0.8</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="license.html">License</a><ul> <li class="toctree-l2"><a class="reference internal" href="license.html#authors">Authors</a></li> <li class="toctree-l2"><a class="reference internal" href="license.html#general-license-definitions">General License Definitions</a></li> <li class="toctree-l2"><a class="reference internal" href="license.html#babel-license">Babel License</a></li> </ul> </li> </ul> </div> </section> </section> <div class="clearer"></div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"><h3>About</h3> <p> Babel is a collection of tools for internationalizing Python applications. </p> <div> <h3><a href="#">Table of Contents</a></h3> <ul> <li><a class="reference internal" href="#">Babel</a><ul> <li><a class="reference internal" href="#user-documentation">User Documentation</a></li> <li><a class="reference internal" href="#api-reference">API Reference</a></li> <li><a class="reference internal" href="#additional-notes">Additional Notes</a></li> </ul> </li> </ul> </div><h3>Other Formats</h3> <p> You can download the documentation in other formats as well: </p> <ul> <li><a href="http://babel.pocoo.org/docs/babel-docs.pdf">as PDF</a> <li><a href="http://babel.pocoo.org/docs/babel-docs.zip">as zipped HTML</a> </ul> <h3>Useful Links</h3> <ul> <li><a href="http://babel.pocoo.org/">Babel Website</a></li> <li><a href="https://pypi.org/project/Babel/">Babel @ PyPI</a></li> <li><a href="https://github.com/python-babel/babel">Babel @ github</a></li> <li><a href="https://github.com/python-babel/babel/issues">Issue Tracker</a></li> </ul> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/> <input type="submit" value="Go" /> </form> </div> </div> <script>document.getElementById('searchbox').style.display = "block"</script> </div> </div> <div class="clearer"></div> </div> <div class="footer"> © Copyright 2023, The Babel Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>. </div> </div> </body> </html>