Internationalization¶
The modules described in this chapter help you write software that is independent of language and locale by providing mechanisms for selecting a language to be used in program messages or by tailoring output to match local conventions.
The list of modules described in this chapter is:
gettext— Multilingual internationalization serviceslocale— Internationalization servicesErrorsetlocale()localeconv()nl_langinfo()CODESETD_T_FMTD_FMTT_FMTT_FMT_AMPMDAY_1DAY_2DAY_3DAY_4DAY_5DAY_6DAY_7ABDAY_1ABDAY_2ABDAY_3ABDAY_4ABDAY_5ABDAY_6ABDAY_7MON_1MON_2MON_3MON_4MON_5MON_6MON_7MON_8MON_9MON_10MON_11MON_12ABMON_1ABMON_2ABMON_3ABMON_4ABMON_5ABMON_6ABMON_7ABMON_8ABMON_9ABMON_10ABMON_11ABMON_12RADIXCHARTHOUSEPYESEXPRNOEXPRCRNCYSTRERAERA_D_T_FMTERA_D_FMTERA_T_FMTALT_DIGITS
getdefaultlocale()getlocale()getpreferredencoding()getencoding()normalize()strcoll()strxfrm()format_string()currency()str()delocalize()localize()atof()atoi()LC_CTYPELC_COLLATELC_TIMELC_MONETARYLC_MESSAGESLC_NUMERICLC_ALLCHAR_MAX- Background, details, hints, tips and caveats
- For extension writers and programs that embed Python
- Access to message catalogs