国际化
******

本章中介绍的模块通过提供选择要在程序信息中使用的语言的机制或通过定制输
出以匹配本地约定来帮助你编写不依赖于语言和区域设置的软件。

本章中描述的模块列表是：

* "gettext" --- 多语种国际化服务

  * GNU **gettext** API

    * "bindtextdomain()"

    * "textdomain()"

    * "gettext()"

    * "dgettext()"

    * "ngettext()"

    * "dngettext()"

    * "pgettext()"

    * "dpgettext()"

    * "npgettext()"

    * "dnpgettext()"

  * 基于类的 API

    * "find()"

    * "translation()"

    * "install()"

    * "NullTranslations" 类

      * "NullTranslations"

        * "_parse()"

        * "add_fallback()"

        * "gettext()"

        * "ngettext()"

        * "pgettext()"

        * "npgettext()"

        * "info()"

        * "charset()"

        * "install()"

    * "GNUTranslations" 类

      * "GNUTranslations"

        * "gettext()"

        * "ngettext()"

        * "pgettext()"

        * "npgettext()"

    * Solaris 消息编目支持

    * 编目构造器

  * 国际化 (I18N) 你的程序和模块

    * 本地化你的模块

    * 本地化你的应用程序

    * 即时更改语言

    * 延迟翻译

  * 致谢

* "locale" --- 国际化服务

  * "Error"

  * "setlocale()"

  * "localeconv()"

  * "nl_langinfo()"

    * "CODESET"

    * "D_T_FMT"

    * "D_FMT"

    * "T_FMT"

    * "T_FMT_AMPM"

    * "DAY_1"

    * "DAY_2"

    * "DAY_3"

    * "DAY_4"

    * "DAY_5"

    * "DAY_6"

    * "DAY_7"

    * "ABDAY_1"

    * "ABDAY_2"

    * "ABDAY_3"

    * "ABDAY_4"

    * "ABDAY_5"

    * "ABDAY_6"

    * "ABDAY_7"

    * "MON_1"

    * "MON_2"

    * "MON_3"

    * "MON_4"

    * "MON_5"

    * "MON_6"

    * "MON_7"

    * "MON_8"

    * "MON_9"

    * "MON_10"

    * "MON_11"

    * "MON_12"

    * "ABMON_1"

    * "ABMON_2"

    * "ABMON_3"

    * "ABMON_4"

    * "ABMON_5"

    * "ABMON_6"

    * "ABMON_7"

    * "ABMON_8"

    * "ABMON_9"

    * "ABMON_10"

    * "ABMON_11"

    * "ABMON_12"

    * "RADIXCHAR"

    * "THOUSEP"

    * "YESEXPR"

    * "NOEXPR"

    * "CRNCYSTR"

    * "ERA"

    * "ERA_D_T_FMT"

    * "ERA_D_FMT"

    * "ERA_T_FMT"

    * "ALT_DIGITS"

  * "getdefaultlocale()"

  * "getlocale()"

  * "getpreferredencoding()"

  * "getencoding()"

  * "normalize()"

  * "strcoll()"

  * "strxfrm()"

  * "format_string()"

  * "currency()"

  * "str()"

  * "delocalize()"

  * "localize()"

  * "atof()"

  * "atoi()"

  * "LC_CTYPE"

  * "LC_COLLATE"

  * "LC_TIME"

  * "LC_MONETARY"

  * "LC_MESSAGES"

  * "LC_NUMERIC"

  * "LC_ALL"

  * "CHAR_MAX"

  * 背景、细节、提示、技巧和注意事项

  * 针对扩展程序编写人员和嵌入Python 运行的程序

  * 访问消息目录

    * "gettext()"

    * "dgettext()"

    * "dcgettext()"

    * "textdomain()"

    * "bindtextdomain()"

    * "bind_textdomain_codeset()"
