Method Locale.Gettext.localeconv()
- Method
localeconv
mappinglocaleconv()- 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":stringThe decimal-point character used to format non-monetary quantities.
"thousands_sep":stringThe character used to separate groups of digits to the left of the decimal-point character in formatted non-monetary quantities.
"int_curr_symbol":stringThe 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":stringThe local currency symbol applicable to the current locale.
"mon_decimal_point":stringThe decimal point used to format monetary quantities.
"mon_thousands_sep":stringThe separator for groups of digits to the left of the decimal point in formatted monetary quantities.
"positive_sign":stringThe string used to indicate a non-negative-valued formatted monetary quantity.
"negative_sign":stringThe string used to indicate a negative-valued formatted monetary quantity.
"int_frac_digits":intThe number of fractional digits (those to the right of the decimal point) to be displayed in an internationally formatted monetary quantity.
"frac_digits":intThe number of fractional digits (those to the right of the decimal point) to be displayed in a formatted monetary quantity.
"p_cs_precedes":boolSet 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":boolSet 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":boolSet to 1 or 0 if the currency_symbol respectively precedes or succeeds the value for a negative formatted monetary quantity.
"n_sep_by_space":boolSet 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:
0Parentheses surround the quantity and currency_symbol.
1The sign string precedes the quantity and currency_symbol.
2The sign string succeeds the quantity and currency_symbol.
3The sign string immediately precedes the currency_symbol.
4The sign string immediately succeeds the currency_symbol.
"n_sign_posn":intSet 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