Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a9273b

Browse files
[po] auto sync
1 parent aeadbe9 commit 2a9273b

2 files changed

Lines changed: 33 additions & 10 deletions

File tree

library/importlib.po

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# Yixin Qian <[email protected]>, 2019
1212
# leollon <[email protected]>, 2019
1313
# 1lin24 <[email protected]>, 2019
14-
# Freesand Leo <[email protected]>, 2021
1514
# Dai Xu <[email protected]>, 2021
15+
# Freesand Leo <[email protected]>, 2021
1616
#
1717
#, fuzzy
1818
msgid ""
@@ -21,7 +21,7 @@ msgstr ""
2121
"Report-Msgid-Bugs-To: \n"
2222
"POT-Creation-Date: 2021-01-01 16:02+0000\n"
2323
"PO-Revision-Date: 2019-09-01 03:21+0000\n"
24-
"Last-Translator: Dai Xu <daixu61@hotmail.com>, 2021\n"
24+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
2525
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2626
"MIME-Version: 1.0\n"
2727
"Content-Type: text/plain; charset=UTF-8\n"
@@ -2187,11 +2187,11 @@ msgstr "直接导入源文件。"
21872187
msgid ""
21882188
"To import a Python source file directly, use the following recipe (Python "
21892189
"3.5 and newer only)::"
2190-
msgstr ""
2190+
msgstr "若要直接导入 Python 源码文件,请使用一下方案(仅 Python 3.5 以上版本有效):"
21912191

21922192
#: ../../library/importlib.rst:1682
21932193
msgid "Setting up an importer"
2194-
msgstr ""
2194+
msgstr "设置导入器"
21952195

21962196
#: ../../library/importlib.rst:1684
21972197
msgid ""
@@ -2207,10 +2207,15 @@ msgid ""
22072207
"yourself, read the documentation for the appropriate classes defined within "
22082208
"this package)::"
22092209
msgstr ""
2210+
"对于深度定制的导入,通常需要实现一个 :term:`importer`。 这意味着得同时管理 :term:`finder` 和 "
2211+
":term:`loader`。 根据不同的需求,有两种类型的查找器可供选择: :term:`meta path finder` 或 "
2212+
":term:`path entry finder`。 前者应位于 :attr:`sys.meta_path` 之上,而后者是用 :term:`path "
2213+
"entry hook` 在 :attr:`sys.path_hooks` 上创建但与 :attr:`sys.path` "
2214+
"一起工作,可能会创建一个查找器。以下例子将演示如何注册自己的导入器,以供导入使用(关于自建导入器请阅读本包内定义的类文档):"
22102215

22112216
#: ../../library/importlib.rst:1716
22122217
msgid "Approximating :func:`importlib.import_module`"
2213-
msgstr ""
2218+
msgstr ":func:`importlib.import_module` 的近似实现"
22142219

22152220
#: ../../library/importlib.rst:1718
22162221
msgid ""
@@ -2221,3 +2226,6 @@ msgid ""
22212226
"and newer for the importlib usage, Python 3.6 and newer for other parts of "
22222227
"the code). ::"
22232228
msgstr ""
2229+
"导入过程本身是用 Python 代码实现的,这样就能通过 importlib 将大多数导入机制暴露出来。以下代码近似实现了 "
2230+
":func:`importlib.import_module` ,以帮助说明 importlib 暴露出来的各种 API (importlib "
2231+
"的用法适用于 Python 3.4 以上版本 ,其他代码适用于 Python 3.6 以上版本)。"

library/locale.po

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# Meng Du <[email protected]>, 2019
1111
# 钢 彭 <[email protected]>, 2019
1212
# ppcfish <[email protected]>, 2019
13+
# Dai Xu <[email protected]>, 2021
1314
#
1415
#, fuzzy
1516
msgid ""
@@ -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."
4344
msgstr ""
45+
":mod:`locale` 模块开通了 POSIX 本地化数据库和功能的访问。POSIX "
46+
"本地化机制让程序员能够为应用程序处理某些本地化的问题,而不需要去了解运行软件的每个国家的全部文化特点。"
4447

4548
#: ../../library/locale.rst:21
4649
msgid ""
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."
4952
msgstr ""
53+
":mod:`locale` 模块是在 :mod:`_locale` 模块的基础上实现的,而 _locale 则又用到了 ANSI C "
54+
"语言实现的本地化功能。"
5055

5156
#: ../../library/locale.rst:24
5257
msgid ""
5358
"The :mod:`locale` module defines the following exception and functions:"
54-
msgstr ""
59+
msgstr ":mod:`locale` 模块定义了以下异常和函数:"
5560

5661
#: ../../library/locale.rst:29
5762
msgid ""
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
6368
msgid ""
@@ -70,12 +75,16 @@ msgid ""
7075
"exception :exc:`Error` is raised. If successful, the new locale setting is "
7176
"returned."
7277
msgstr ""
78+
"如果给定了 *locale* 而不是 ``None``,:func:`setlocale` 会修改 *category* 的 locale "
79+
"设置。可用的类别会在下面的数据描述中列出。*locale* "
80+
"可以是一个字符串,也可以是两个字符串(语言代码和编码)组成的可迭代对象。若为可迭代对象,则会用地区别名引擎转换为一个地区名称。若为空字符串则指明采用用户的默认设置。如果"
81+
" locale 设置修改失败,会触发 :exc:`Error` 异常。如果成功则返回新的 locale 设置。"
7382

7483
#: ../../library/locale.rst:43
7584
msgid ""
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
8190
msgid ""
@@ -90,6 +99,8 @@ msgid ""
9099
"locale is not changed thereafter, using multithreading should not cause "
91100
"problems."
92101
msgstr ""
102+
"这会把所有类别的 locale 都设为用户的默认设置(通常在 :envvar:`LANG` 环境变量中指定)。如果后续 locale "
103+
"没有改动,则使用多线程应该不会产生问题。"
93104

94105
#: ../../library/locale.rst:59
95106
msgid ""
@@ -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."
134145
msgstr ""
146+
"数字列表,指定 ``'thousands_sep'`` 应该出现的位置。 如果列表以 :const:`CHAR_MAX` 结束,则不会作分组。如果列表以"
147+
" ``0`` 结束,则重复使用最后的分组大小。"
135148

136149
#: ../../library/locale.rst:80
137150
msgid "``'thousands_sep'``"
@@ -324,12 +337,14 @@ msgid ""
324337
" monetary strings are non-ASCII. This temporary change affects other "
325338
"threads."
326339
msgstr ""
340+
"该函数将 ``LC_CTYPE`` 地区设为 ``LC_NUMERIC`` 地区,若地区不同且数字或货币字符为非 ASCII,则设置为 "
341+
"``LC_MONETARY`` 地区。这个临时的改变会影响到其他线程。"
327342

328343
#: ../../library/locale.rst:154
329344
msgid ""
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
335350
msgid ""

0 commit comments

Comments
 (0)