File: core.rst

package info (click to toggle)
python-babel 2.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,888 kB
  • sloc: python: 14,521; makefile: 177; javascript: 77; sh: 8
file content (38 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Core Functionality
==================

.. module:: babel.core

The core API provides the basic core functionality.  Primarily it provides
the :class:`Locale` object and ways to create it.  This object
encapsulates a locale and exposes all the data it contains.

All the core functionality is also directly importable from the `babel`
module for convenience.

Basic Interface
---------------

.. autoclass:: Locale
   :members:

.. autofunction:: default_locale

.. autofunction:: negotiate_locale


Exceptions
----------

.. autoexception:: UnknownLocaleError
   :members:


Utility Functions
-----------------

.. autofunction:: get_global

.. autofunction:: parse_locale

.. autofunction:: get_locale_identifier