Method Locale.Gettext.localeconv()
- Method
localeconv
mapping
localeconv()- Description
The localeconv() function returns a mapping with settings for the current locale. This mapping contains all values associated with the locale categories LC_NUMERIC and LC_MONETARY.
"decimal_point"
:string
The decimal-point character used to format non-monetary quantities.
"thousands_sep"
:string
The character used to separate groups of digits to the left of the decimal-point character in formatted non-monetary quantities.
"int_curr_symbol"
:string
The international currency symbol applicable to the current locale, left-justified within a four-character space-padded field. The character sequences should match with those specified in ISO 4217 Codes for the Representation of Currency and Funds.
"currency_symbol"
:string
The local currency symbol applicable to the current locale.
"mon_decimal_point"
:string
The decimal point used to format monetary quantities.
"mon_thousands_sep"
:string
The separator for groups of digits to the left of the decimal point in formatted monetary quantities.
"positive_sign"
:string
The string used to indicate a non-negative-valued formatted monetary quantity.
"negative_sign"
:string
The string used to indicate a negative-valued formatted monetary quantity.
"int_frac_digits"
:int
The number of fractional digits (those to the right of the decimal point) to be displayed in an internationally formatted monetary quantity.
"frac_digits"
:int
The number of fractional digits (those to the right of the decimal point) to be displayed in a formatted monetary quantity.
"p_cs_precedes"
:bool
Set to 1 or 0 if the currency_symbol respectively precedes or succeeds the value for a non-negative formatted monetary quantity.
"p_sep_by_space"
:bool
Set to 1 or 0 if the currency_symbol respectively is or is not separated by a space from the value for a non-negative formatted monetary quantity.
"n_cs_precedes"
:bool
Set to 1 or 0 if the currency_symbol respectively precedes or succeeds the value for a negative formatted monetary quantity.
"n_sep_by_space"
:bool
Set to 1 or 0 if the currency_symbol respectively is or is not separated by a space from the value for a negative formatted monetary quantity.
"p_sign_posn"
:int(0..4)
Set to a value indicating the positioning of the positive_sign for a non-negative formatted monetary quantity. The value of p_sign_posn is interpreted according to the following:
0
Parentheses surround the quantity and currency_symbol.
1
The sign string precedes the quantity and currency_symbol.
2
The sign string succeeds the quantity and currency_symbol.
3
The sign string immediately precedes the currency_symbol.
4
The sign string immediately succeeds the currency_symbol.
"n_sign_posn"
:int
Set to a value indicating the positioning of the negative_sign for a negative formatted monetary quantity. The value of n_sign_posn is interpreted according to the rules described under p_sign_posn.
- See also
bindtextdomain, textdomain, gettext, dgettext, dcgettext, setlocale