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

Skip to content

Commit a792598

Browse files
committed
[po] auto sync bot
1 parent 60cc1c6 commit a792598

1 file changed

Lines changed: 16 additions & 13 deletions

File tree

library/codecs.po

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,12 +1096,14 @@ msgid ""
10961096
" much as possible. This parameter is intended to prevent having to decode "
10971097
"huge files in one step."
10981098
msgstr ""
1099+
"*size* 参数指明要读取并解码的已编码字节或码位的最大数量近似值。 解码器可以适当地修改此设置。 默认值 -1 表示尽可能多地读取并解码。 "
1100+
"此形参的目的是防止一次性解码过于巨大的文件。"
10991101

11001102
#: ../../library/codecs.rst:757
11011103
msgid ""
11021104
"The *firstline* flag indicates that it would be sufficient to only return "
11031105
"the first line, if there are decoding errors on later lines."
1104-
msgstr ""
1106+
msgstr "*firstline* 旗标指明如果在后续行发生解码错误,则仅返回第一行就足够了。"
11051107

11061108
#: ../../library/codecs.rst:761
11071109
msgid ""
@@ -1110,72 +1112,73 @@ msgid ""
11101112
"size, e.g. if optional encoding endings or state markers are available on "
11111113
"the stream, these should be read too."
11121114
msgstr ""
1115+
"此方法应当使用“贪婪”读取策略,这意味着它应当在编码格式定义和给定大小所允许的情况下尽可能多地读取数据,例如,如果在流上存在可选的编码结束或状态标记,这些内容也应当被读取。"
11131116

11141117
#: ../../library/codecs.rst:769
11151118
msgid "Read one line from the input stream and return the decoded data."
1116-
msgstr ""
1119+
msgstr "从输入流读取一行并返回解码后的数据。"
11171120

11181121
#: ../../library/codecs.rst:771
11191122
msgid ""
11201123
"*size*, if given, is passed as size argument to the stream's :meth:`read` "
11211124
"method."
1122-
msgstr ""
1125+
msgstr "如果给定了 *size*,则将其作为 size 参数传递给流的 :meth:`read` 方法。"
11231126

11241127
#: ../../library/codecs.rst:774
11251128
msgid ""
11261129
"If *keepends* is false line-endings will be stripped from the lines "
11271130
"returned."
1128-
msgstr ""
1131+
msgstr "如果 *keepends* 为假值,则行结束符将从返回的行中去除。"
11291132

11301133
#: ../../library/codecs.rst:780
11311134
msgid ""
11321135
"Read all lines available on the input stream and return them as a list of "
11331136
"lines."
1134-
msgstr ""
1137+
msgstr "从输入流读取所有行并将其作为一个行列表返回。"
11351138

11361139
#: ../../library/codecs.rst:783
11371140
msgid ""
11381141
"Line-endings are implemented using the codec's decoder method and are "
11391142
"included in the list entries if *keepends* is true."
1140-
msgstr ""
1143+
msgstr "行结束符会使用编解码器的解码器方法来实现,并且如果 *keepends* 为真值则会将其包含在列表条目中。"
11411144

11421145
#: ../../library/codecs.rst:786
11431146
msgid ""
11441147
"*sizehint*, if given, is passed as the *size* argument to the stream's "
11451148
":meth:`read` method."
1146-
msgstr ""
1149+
msgstr "如果给定了 *sizehint*,则将其作为 *size* 参数传递给流的 :meth:`read` 方法。"
11471150

11481151
#: ../../library/codecs.rst:792
11491152
msgid "Resets the codec buffers used for keeping state."
1150-
msgstr ""
1153+
msgstr "重置用于保持状态的编解码器缓冲区。"
11511154

11521155
#: ../../library/codecs.rst:794
11531156
msgid ""
11541157
"Note that no stream repositioning should take place. This method is "
11551158
"primarily intended to be able to recover from decoding errors."
1156-
msgstr ""
1159+
msgstr "请注意不应当对流进行重定位。 使用此方法的主要目的是为了能够从解码错误中恢复。"
11571160

11581161
#: ../../library/codecs.rst:798
11591162
msgid ""
11601163
"In addition to the above methods, the :class:`StreamReader` must also "
11611164
"inherit all other methods and attributes from the underlying stream."
1162-
msgstr ""
1165+
msgstr "除了上述的方法,:class:`StreamReader` 还必须继承来自下层流的所有其他方法和属性。"
11631166

11641167
#: ../../library/codecs.rst:804
11651168
msgid "StreamReaderWriter Objects"
1166-
msgstr ""
1169+
msgstr "StreamReaderWriter 对象"
11671170

11681171
#: ../../library/codecs.rst:806
11691172
msgid ""
11701173
"The :class:`StreamReaderWriter` is a convenience class that allows wrapping "
11711174
"streams which work in both read and write modes."
1172-
msgstr ""
1175+
msgstr ":class:`StreamReaderWriter` 是一个方便的类,允许对同时工作于读取和写入模式的流进行包装。"
11731176

11741177
#: ../../library/codecs.rst:809 ../../library/codecs.rst:833
11751178
msgid ""
11761179
"The design is such that one can use the factory functions returned by the "
11771180
":func:`lookup` function to construct the instance."
1178-
msgstr ""
1181+
msgstr "其设计使得开发者可以使用 :func:`lookup` 函数所返回的工厂函数来构造实例。"
11791182

11801183
#: ../../library/codecs.rst:815
11811184
msgid ""

0 commit comments

Comments
 (0)