annotate doc/index.txt @ 30:4a2b3ba40b7c trunk

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