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

Skip to content

Commit aa57047

Browse files
committed
[po] auto sync bot
1 parent 8e35b49 commit aa57047

2 files changed

Lines changed: 23 additions & 15 deletions

File tree

library/codecs.po

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -153,64 +153,64 @@ msgstr ""
153153
msgid ""
154154
"To simplify access to the various codec components, the module provides "
155155
"these additional functions which use :func:`lookup` for the codec lookup:"
156-
msgstr ""
156+
msgstr "为了简化对各种编解码器组件的访问,本模块提供了以下附加函数,它们使用 :func:`lookup` 来执行编解码器查找:"
157157

158158
#: ../../library/codecs.rst:111
159159
msgid ""
160160
"Look up the codec for the given encoding and return its encoder function."
161-
msgstr ""
161+
msgstr "查找给定编码的编解码器并返回其编码器函数。"
162162

163163
#: ../../library/codecs.rst:113 ../../library/codecs.rst:120
164164
#: ../../library/codecs.rst:146 ../../library/codecs.rst:154
165165
msgid "Raises a :exc:`LookupError` in case the encoding cannot be found."
166-
msgstr ""
166+
msgstr "在编码无法找到时将引发 :exc:`LookupError`。"
167167

168168
#: ../../library/codecs.rst:118
169169
msgid ""
170170
"Look up the codec for the given encoding and return its decoder function."
171-
msgstr ""
171+
msgstr "查找给定编码的编解码器并返回其解码器函数。"
172172

173173
#: ../../library/codecs.rst:125
174174
msgid ""
175175
"Look up the codec for the given encoding and return its incremental encoder "
176176
"class or factory function."
177-
msgstr ""
177+
msgstr "查找给定编码的编解码器并返回其增量式编码器类或工厂函数。"
178178

179179
#: ../../library/codecs.rst:128
180180
msgid ""
181181
"Raises a :exc:`LookupError` in case the encoding cannot be found or the "
182182
"codec doesn't support an incremental encoder."
183-
msgstr ""
183+
msgstr "在编码无法找到或编解码器不支持增量式编码器时将引发 :exc:`LookupError`。"
184184

185185
#: ../../library/codecs.rst:134
186186
msgid ""
187187
"Look up the codec for the given encoding and return its incremental decoder "
188188
"class or factory function."
189-
msgstr ""
189+
msgstr "查找给定编码的编解码器并返回其增量式解码器类或工厂函数。"
190190

191191
#: ../../library/codecs.rst:137
192192
msgid ""
193193
"Raises a :exc:`LookupError` in case the encoding cannot be found or the "
194194
"codec doesn't support an incremental decoder."
195-
msgstr ""
195+
msgstr "在编码无法找到或编解码器不支持增量式解码器时将引发 :exc:`LookupError`。"
196196

197197
#: ../../library/codecs.rst:143
198198
msgid ""
199199
"Look up the codec for the given encoding and return its "
200200
":class:`StreamReader` class or factory function."
201-
msgstr ""
201+
msgstr "查找给定编码的编解码器并返回其 :class:`StreamReader` 类或工厂函数。"
202202

203203
#: ../../library/codecs.rst:151
204204
msgid ""
205205
"Look up the codec for the given encoding and return its "
206206
":class:`StreamWriter` class or factory function."
207-
msgstr ""
207+
msgstr "查找给定编码的编解码器并返回其 :class:`StreamWriter` 类或工厂函数。"
208208

209209
#: ../../library/codecs.rst:156
210210
msgid ""
211211
"Custom codecs are made available by registering a suitable codec search "
212212
"function:"
213-
msgstr ""
213+
msgstr "自定义编解码器的启用是通过注册适当的编解码器搜索函数:"
214214

215215
#: ../../library/codecs.rst:161
216216
msgid ""
@@ -219,12 +219,14 @@ msgid ""
219219
":class:`CodecInfo` object. In case a search function cannot find a given "
220220
"encoding, it should return ``None``."
221221
msgstr ""
222+
"注册一个编解码器搜索函数。 搜索函数预期接收一个参数,即全部以小写字母表示的编码名称,并返回一个 :class:`CodecInfo` 对象。 "
223+
"在搜索函数无法找到给定编码的情况下,它应当返回 ``None``。"
222224

223225
#: ../../library/codecs.rst:168
224226
msgid ""
225227
"Search function registration is not currently reversible, which may cause "
226228
"problems in some cases, such as unit testing or module reloading."
227-
msgstr ""
229+
msgstr "搜索函数的注册目前是不可逆的,这在某些情况下可能导致问题,例如单元测试或模块重载等。"
228230

229231
#: ../../library/codecs.rst:172
230232
msgid ""
@@ -233,6 +235,8 @@ msgid ""
233235
"provides additional utility functions and classes that allow the use of a "
234236
"wider range of codecs when working with binary files:"
235237
msgstr ""
238+
"虽然内置的 :func:`open` 和相关联的 :mod:`io` "
239+
"模块是操作已编码文本文件的推荐方式,但本模块也提供了额外的工具函数和类,允许在操作二进制文件时使用更多各类的编解码器:"
236240

237241
#: ../../library/codecs.rst:179
238242
msgid ""

library/importlib.po

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# Zombie110year <[email protected]>, 2019
1010
# Meng Du <[email protected]>, 2019
1111
# Shengjing Zhu <[email protected]>, 2019
12-
# Freesand Leo <[email protected]>, 2019
1312
# Yixin Qian <[email protected]>, 2019
13+
# Freesand Leo <[email protected]>, 2019
1414
# leollon <[email protected]>, 2019
1515
#
1616
#, fuzzy
@@ -792,7 +792,9 @@ msgid ""
792792
" with this ABC should only be returned when the specified module is a "
793793
"package."
794794
msgstr ""
795-
"想支持资源读取的加载器需要提供一个返回实现了抽象类ABC接口的对象的``get_resource_reader(fullname)``方法。如果通过fullname指定的模块不是一个包,这个方法应该返回:const:`None`。当指定的模块是一个包时,应该只返回一个兼容这个抽象类ABC的对象。"
795+
"想支持资源读取的加载器需要提供一个返回实现了此 ABC 的接口的 ``get_resource_reader(fullname)`` "
796+
"方法。如果通过全名指定的模块不是一个包,这个方法应该返回 :const:`None`。 "
797+
"当指定的模块是一个包时,应该只返回一个与这个抽象类ABC兼容的对象。"
796798

797799
#: ../../library/importlib.rst:513
798800
msgid ""
@@ -827,6 +829,7 @@ msgid ""
827829
"actual resources, e.g. it is acceptable to return names for which "
828830
":meth:`is_resource` would be false."
829831
msgstr ""
832+
"返回一个字符串的:term:`可迭代对象`覆盖这个包的内容。需要注意的是不要求通过迭代器返回的所有名字都是实际的资源,例如,返回名字的::meth:`is_resource`的返回值为false是可以接受的。"
830833

831834
#: ../../library/importlib.rst:539
832835
msgid ""
@@ -837,6 +840,7 @@ msgid ""
837840
"stored on the file system then those subdirectory names can be used "
838841
"directly."
839842
msgstr ""
843+
"允许非资源名字被返回是为了允许存储的一个包和它的资源的方式是已知先验的并且非资源名字会有用的情况。比如,允许返回子目录名字,目的是当得知包和资源存储在文件系统上面的时候,能够直接使用子目录的名字。"
840844

841845
#: ../../library/importlib.rst:547
842846
msgid "The abstract method returns an iterable of no items."
@@ -847,7 +851,7 @@ msgid ""
847851
"An abstract base class for a :term:`loader` which implements the optional "
848852
":pep:`302` protocol for loading arbitrary resources from the storage back-"
849853
"end."
850-
msgstr ""
854+
msgstr "实现可选的用于从存储后端加载任意资源的:pep:`302`协议的加载器的一个抽象基类。"
851855

852856
#: ../../library/importlib.rst:556
853857
msgid ""

0 commit comments

Comments
 (0)