@@ -524,13 +524,17 @@ msgid ""
524524"``'LANG'``. The GNU gettext search path contains ``'LC_ALL'``, "
525525"``'LC_CTYPE'``, ``'LANG'`` and ``'LANGUAGE'``, in that order."
526526msgstr ""
527+ "为了维持与其他平台的兼容性,不仅需要检测 :envvar:`LANG` 变量,还需要检测 envvars 参数给出的变量列表。首先发现的定义将被采用。 "
528+ "*envvars* 默认为 GNU gettext 采用的搜索路径;必须包含 ``'LANG'`` 变量。 GNU gettext 的搜索路径依次包含了"
529+ " ``'LC_ALL'``、``'LC_CTYPE'``、``'LANG'`` 和 ``'LANGUAGE'``。"
527530
528531#: ../../library/locale.rst:300 ../../library/locale.rst:311
529532msgid ""
530533"Except for the code ``'C'``, the language code corresponds to :rfc:`1766`. "
531534"*language code* and *encoding* may be ``None`` if their values cannot be "
532535"determined."
533536msgstr ""
537+ "除了 ``'C'`` 之外,语言代码对应 :rfc:`1766` 标准。如果 *语言代码* 和 *编码* 不能确定,可为 ``None``。"
534538
535539#: ../../library/locale.rst:307
536540msgid ""
@@ -539,6 +543,8 @@ msgid ""
539543":const:`LC_\\ *` values except :const:`LC_ALL`. It defaults to "
540544":const:`LC_CTYPE`."
541545msgstr ""
546+ "以列表的形式返回指定地区类别的当前设置,结果包括 *语言代码* 、*编码*。*category* 可以是 :const:`LC_\\ *` 之一, "
547+ ":const:`LC_ALL` 除外。默认为 :const:`LC_CTYPE`。"
542548
543549#: ../../library/locale.rst:318
544550msgid ""
@@ -554,6 +560,8 @@ msgid ""
554560"user preferences, so this function is not thread-safe. If invoking setlocale"
555561" is not necessary or desired, *do_setlocale* should be set to ``False``."
556562msgstr ""
563+ "某些系统必须调用 :func:`setlocale` 才能获取用户偏好,所以本函数不是线程安全的。如果不需要或不希望调用 "
564+ "setlocale,*do_setlocale* 应设为 ``False``。"
557565
558566#: ../../library/locale.rst:327
559567msgid ""
0 commit comments