Module _locale
[hide private]
[frames] | no frames]

Module _locale

Support for POSIX locales.

Functions [hide private]
string
bind_textdomain_codeset(domain, codeset)
Bind the C library's domain to codeset.
string
bindtextdomain(domain, dir)
Bind the C library's domain to dir.
string
dcgettext(domain, msg, category)
Return translation of msg in domain and category.
string
dgettext(domain, msg)
Return translation of msg in domain.
string
gettext(msg)
Return translation of msg.
 
localeconv()
() -> dict.
string
nl_langinfo(key)
Return the value for the locale information associated with key.
 
setlocale(category, value=None)
(integer,string=None) -> string.
 
strcoll(a, b)
string,string -> int.
 
strxfrm(s)
string -> string.
string
textdomain(domain)
Set the C library's textdmain to domain, returning the new domain.
Variables [hide private]
  ABDAY_1 = 131072
  ABDAY_2 = 131073
  ABDAY_3 = 131074
  ABDAY_4 = 131075
  ABDAY_5 = 131076
  ABDAY_6 = 131077
  ABDAY_7 = 131078
  ABMON_1 = 131086
  ABMON_10 = 131095
  ABMON_11 = 131096
  ABMON_12 = 131097
  ABMON_2 = 131087
  ABMON_3 = 131088
  ABMON_4 = 131089
  ABMON_5 = 131090
  ABMON_6 = 131091
  ABMON_7 = 131092
  ABMON_8 = 131093
  ABMON_9 = 131094
  ALT_DIGITS = 131119
  AM_STR = 131110
  CHAR_MAX = 127
  CODESET = 14
  CRNCYSTR = 262159
  DAY_1 = 131079
  DAY_2 = 131080
  DAY_3 = 131081
  DAY_4 = 131082
  DAY_5 = 131083
  DAY_6 = 131084
  DAY_7 = 131085
  D_FMT = 131113
  D_T_FMT = 131112
  ERA = 131116
  ERA_D_FMT = 131118
  ERA_D_T_FMT = 131120
  ERA_T_FMT = 131121
  LC_ALL = 6
  LC_COLLATE = 3
  LC_CTYPE = 0
  LC_MESSAGES = 5
  LC_MONETARY = 4
  LC_NUMERIC = 1
  LC_TIME = 2
  MON_1 = 131098
  MON_10 = 131107
  MON_11 = 131108
  MON_12 = 131109
  MON_2 = 131099
  MON_3 = 131100
  MON_4 = 131101
  MON_5 = 131102
  MON_6 = 131103
  MON_7 = 131104
  MON_8 = 131105
  MON_9 = 131106
  NOEXPR = 327681
  PM_STR = 131111
  RADIXCHAR = 65536
  THOUSEP = 65537
  T_FMT = 131114
  T_FMT_AMPM = 131115
  YESEXPR = 327680
  _DATE_FMT = 131180

Imports: Error


Function Details [hide private]

localeconv()

 

() -> dict. Returns numeric and monetary locale-specific parameters.

setlocale(category, value=None)

 

(integer,string=None) -> string. Activates/queries locale processing.

strcoll(a, b)

 

string,string -> int. Compares two strings according to the locale.

strxfrm(s)

 

string -> string. Returns a string that behaves for cmp locale-aware.