Localized formatting functions.
These functions extract localization data from config files located in
the data/directory.
|
is_locale_format(locale)
Check if locale is supported. |
source code
|
|
|
get_locale_module(locale)
Get i18n module supporting the locale. |
source code
|
|
|
get(locale,
name,
default=None)
Get an attribute value for the locale. |
source code
|
|
|
|
|
get_country(key,
locale=None)
Get localized name of country based on international country code. |
source code
|
|
|
|
|
get_language(key,
locale=None)
Get localized name of language based on language code. |
source code
|
|
|
get_month_names(locale=None)
Get list of full month names, starting with January. |
source code
|
|
|
get_abbr_month_names(locale=None)
Get list of abbreviated month names, starting with Jan. |
source code
|
|
|
get_weekday_names(locale=None)
Get list of full weekday names. |
source code
|
|
|
get_abbr_weekday_names(locale=None)
Get list of abbreviated weekday names. |
source code
|
|
|
get_decimal_format(locale=None)
Get decimal point for the locale. |
source code
|
|
|
get_group_format(locale=None)
Get digit group separator for thousands for the locale. |
source code
|
|
|
|
|
format_decimal(value,
num_places,
locale=None)
Get number formatted with grouping for thousands and decimal places. |
source code
|
|
|
format_currency(value,
locale=None)
Get formatted currency value. |
source code
|
|
|
|
|
|
|
get_date_format(format,
locale=None)
Get localized date format. |
source code
|
|
|
format_date(dt,
format='medium',
locale=None,
time_format='',
date_format='')
Get formatted date value. |
source code
|
|