annotate doc/index.txt @ 2:b2492365f186

Forgot to check in the doc directory.
author cmlenz
date Wed, 30 May 2007 07:37:26 +0000
parents
children 47161f48c4bd
rev   line source
2
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
1 .. -*- mode: rst; encoding: utf-8 -*-
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
2
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
3 =====
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
4 Babel
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
5 =====
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
6
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
7
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
8 ---------------------------------------------------
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
9 Simple Internationalization for Python Applications
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
10 ---------------------------------------------------
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
11
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
12 Babel is an integrated collection of utilities that assist in
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
13 internationalizing and localizing Python applications, with an
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
14 emphasis on web-based applications.
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
15
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
16 * `Working with Message Catalogs <catalogs.html>`_
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
17 * `Locale Display Names <display.html>`_
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
18 * `Number and Date Formatting <formatting.html>`_
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
19 * `Command-Line Interface <cmdline.html>`_
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
20 * `Distutils/Setuptools Integration <setup.html>`_
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
21 * `Generated API Documentation <api/index.html>`_
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
22
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
23 Introduction
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
24 ------------
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
25
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
26 The functionality Babel provides for internationalization (I18n) and
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
27 localization (L10N) can be separated into two different aspects:
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
28
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
29 * tools to build and work with ``gettext`` message catalogs, and
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
30 * a Python interface to the CLDR (Common Locale Data Repository), providing
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
31 access to various locale display names, localized number and date
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
32 formatting, etc.
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
33
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
34 While the Python standard library includes a
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
35 `gettext <http://docs.python.org/lib/module-gettext.html>`_ module that enables
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
36 applications to use message catalogs, it requires developers to build these
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
37 catalogs using GNU tools such as ``xgettext``, ``msgmerge``, and ``msgfmt``.
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
38 And while ``xgettext`` does have support for extracting messages from Python
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
39 files, it does not know how to deal with other kinds of files commonly found
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
40 in Python web-applications, such as templates, nor does it provide an easy
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
41 extensibility mechanism to add such support.
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
42
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
43 Babel addresses this by providing a framework where various extraction methods
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
44 can be plugged in to a larger message extraction framework, and also removes
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
45 the dependency on the GNU ``gettext`` tools for common tasks, as these aren't
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
46 necessarily available on all platforms. See `Working with Message Catalogs`_
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
47 for details on this aspect of Babel.
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
48
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
49 Furthermore, while the Python standard library does include support for basic
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
50 localization with respect to the formatting of numbers and dates (the
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
51 `locale <http://docs.python.org/lib/module-locale.html>`_ module, among others),
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
52 this support is based on the assumption that there will be only one specific
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
53 locale used per process (at least simultaneously.) Also, it doesn't provide
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
54 access to other kinds of locale data, such as the localized names of countries,
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
55 languages, or time zones, with are frequently needed in web-based applications.
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
56
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
57 For these requirements, Babel includes data extracted from the `Common Locale
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
58 Data Repository (CLDR) <http://unicode.org/cldr/>`_, and provides a number of
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
59 convenient methods for accessing and using this data. See `Locale Display
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
60 Names`_ and `Number and Date Formatting`_ for more information on this aspect
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
61 of Babel.
b2492365f186 Forgot to check in the doc directory.
cmlenz
parents:
diff changeset
62
Copyright (C) 2012-2017 Edgewall Software