1010# Meng Du <[email protected] >, 201911111212# ppcfish <[email protected] >, 201913+ # Dai Xu <[email protected] >, 20211314#
1415#, fuzzy
1516msgid ""
@@ -18,7 +19,7 @@ msgstr ""
1819"Report-Msgid-Bugs-To : \n "
1920"POT-Creation-Date : 2021-01-01 16:02+0000\n "
2021"PO-Revision-Date : 2019-09-01 02:44+0000\n "
21- "Last-Translator : ppcfish <ppcfish@gmail .com>, 2019 \n "
22+ "Last-Translator : Dai Xu <daixu61@hotmail .com>, 2021 \n "
2223"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2324"MIME-Version : 1.0\n "
2425"Content-Type : text/plain; charset=UTF-8\n "
@@ -41,23 +42,27 @@ msgid ""
4142"certain cultural issues in an application, without requiring the programmer "
4243"to know all the specifics of each country where the software is executed."
4344msgstr ""
45+ ":mod:`locale` 模块开通了 POSIX 本地化数据库和功能的访问。POSIX "
46+ "本地化机制让程序员能够为应用程序处理某些本地化的问题,而不需要去了解运行软件的每个国家的全部文化特点。"
4447
4548#: ../../library/locale.rst:21
4649msgid ""
4750"The :mod:`locale` module is implemented on top of the :mod:`_locale` module,"
4851" which in turn uses an ANSI C locale implementation if available."
4952msgstr ""
53+ ":mod:`locale` 模块是在 :mod:`_locale` 模块的基础上实现的,而 _locale 则又用到了 ANSI C "
54+ "语言实现的本地化功能。"
5055
5156#: ../../library/locale.rst:24
5257msgid ""
5358"The :mod:`locale` module defines the following exception and functions:"
54- msgstr ""
59+ msgstr ":mod:`locale` 模块定义了以下异常和函数: "
5560
5661#: ../../library/locale.rst:29
5762msgid ""
5863"Exception raised when the locale passed to :func:`setlocale` is not "
5964"recognized."
60- msgstr ""
65+ msgstr "当传给 :func:`setlocale` 的 locale 无法识别时,会触发异常。 "
6166
6267#: ../../library/locale.rst:35
6368msgid ""
@@ -70,12 +75,16 @@ msgid ""
7075"exception :exc:`Error` is raised. If successful, the new locale setting is "
7176"returned."
7277msgstr ""
78+ "如果给定了 *locale* 而不是 ``None``,:func:`setlocale` 会修改 *category* 的 locale "
79+ "设置。可用的类别会在下面的数据描述中列出。*locale* "
80+ "可以是一个字符串,也可以是两个字符串(语言代码和编码)组成的可迭代对象。若为可迭代对象,则会用地区别名引擎转换为一个地区名称。若为空字符串则指明采用用户的默认设置。如果"
81+ " locale 设置修改失败,会触发 :exc:`Error` 异常。如果成功则返回新的 locale 设置。"
7382
7483#: ../../library/locale.rst:43
7584msgid ""
7685"If *locale* is omitted or ``None``, the current setting for *category* is "
7786"returned."
78- msgstr ""
87+ msgstr "如果省略 *locale* 或为 ``None``,将返回 *category* 但当前设置。 "
7988
8089#: ../../library/locale.rst:46
8190msgid ""
@@ -90,6 +99,8 @@ msgid ""
9099"locale is not changed thereafter, using multithreading should not cause "
91100"problems."
92101msgstr ""
102+ "这会把所有类别的 locale 都设为用户的默认设置(通常在 :envvar:`LANG` 环境变量中指定)。如果后续 locale "
103+ "没有改动,则使用多线程应该不会产生问题。"
93104
94105#: ../../library/locale.rst:59
95106msgid ""
@@ -132,6 +143,8 @@ msgid ""
132143":const:`CHAR_MAX`, no further grouping is performed. If the sequence "
133144"terminates with a ``0``, the last group size is repeatedly used."
134145msgstr ""
146+ "数字列表,指定 ``'thousands_sep'`` 应该出现的位置。 如果列表以 :const:`CHAR_MAX` 结束,则不会作分组。如果列表以"
147+ " ``0`` 结束,则重复使用最后的分组大小。"
135148
136149#: ../../library/locale.rst:80
137150msgid "``'thousands_sep'``"
@@ -324,12 +337,14 @@ msgid ""
324337" monetary strings are non-ASCII. This temporary change affects other "
325338"threads."
326339msgstr ""
340+ "该函数将 ``LC_CTYPE`` 地区设为 ``LC_NUMERIC`` 地区,若地区不同且数字或货币字符为非 ASCII,则设置为 "
341+ "``LC_MONETARY`` 地区。这个临时的改变会影响到其他线程。"
327342
328343#: ../../library/locale.rst:154
329344msgid ""
330345"The function now sets temporarily the ``LC_CTYPE`` locale to the "
331346"``LC_NUMERIC`` locale in some cases."
332- msgstr ""
347+ msgstr "现在在某些情况下,该函数会将 ``LC_CTYPE`` 地区设为 ``LC_NUMERIC`` 地区。 "
333348
334349#: ../../library/locale.rst:161
335350msgid ""
0 commit comments