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

Skip to content

Commit 041fa69

Browse files
[po] auto sync
1 parent 95a964d commit 041fa69

1 file changed

Lines changed: 29 additions & 21 deletions

File tree

library/plistlib.po

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,20 @@ msgid ""
7777
"Support added for reading and writing :class:`UID` tokens in binary plists "
7878
"as used by NSKeyedArchiver and NSKeyedUnarchiver."
7979
msgstr ""
80+
"添加了在二进制 plist 中读写 :class:`UID` 令牌的支持,例如用于 NSKeyedArchiver 和 "
81+
"NSKeyedUnarchiver。"
8082

8183
#: ../../library/plistlib.rst:45
8284
msgid ""
8385
"`PList manual page "
8486
"<https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/PropertyLists/>`_"
8587
msgstr ""
88+
"`PList 指南页面 "
89+
"<https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/PropertyLists/>`_"
8690

8791
#: ../../library/plistlib.rst:46
8892
msgid "Apple's documentation of the file format."
89-
msgstr ""
93+
msgstr "针对该文件格式的 Apple 文档。"
9094

9195
#: ../../library/plistlib.rst:49
9296
msgid "This module defines the following functions:"
@@ -96,37 +100,39 @@ msgstr "这个模块定义了以下函数:"
96100
msgid ""
97101
"Read a plist file. *fp* should be a readable and binary file object. Return "
98102
"the unpacked root object (which usually is a dictionary)."
99-
msgstr ""
103+
msgstr "读取 plist 文件。 *fp* 应当可读并且为二进制文件对象。 返回已解包的根对象(通常是一个字典)。"
100104

101105
#: ../../library/plistlib.rst:57
102106
msgid ""
103107
"The *fmt* is the format of the file and the following values are valid:"
104-
msgstr ""
108+
msgstr "*fmt* 为文件的格式,有效的值如下:"
105109

106110
#: ../../library/plistlib.rst:59
107111
msgid ":data:`None`: Autodetect the file format"
108-
msgstr ""
112+
msgstr ":data:`None`: 自动检测文件格式"
109113

110114
#: ../../library/plistlib.rst:61
111115
msgid ":data:`FMT_XML`: XML file format"
112-
msgstr ""
116+
msgstr ":data:`FMT_XML`: XML 文件格式"
113117

114118
#: ../../library/plistlib.rst:63
115119
msgid ":data:`FMT_BINARY`: Binary plist format"
116-
msgstr ""
120+
msgstr ":data:`FMT_BINARY`: 二进制 plist 格式"
117121

118122
#: ../../library/plistlib.rst:65
119123
msgid ""
120124
"If *use_builtin_types* is true (the default) binary data will be returned as"
121125
" instances of :class:`bytes`, otherwise it is returned as instances of "
122126
":class:`Data`."
123127
msgstr ""
128+
"如果 *use_builtin_types* 为真值(默认)则将以 :class:`bytes` 实例的形式返回二进制数据,否则将以 "
129+
":class:`Data` 实例的形式返回。"
124130

125131
#: ../../library/plistlib.rst:69
126132
msgid ""
127133
"The *dict_type* is the type used for dictionaries that are read from the "
128134
"plist file."
129-
msgstr ""
135+
msgstr "*dict_type* 为字典用来从 plist 文件读取的类型。"
130136

131137
#: ../../library/plistlib.rst:72
132138
msgid ""
@@ -135,87 +141,89 @@ msgid ""
135141
"exceptions on ill-formed XML. Unknown elements will simply be ignored by "
136142
"the plist parser."
137143
msgstr ""
144+
":data:`FMT_XML` 格式的 XML 数据 会使用来自 :mod:`xml.parsers.expat` 的 Expat 解析器 -- "
145+
"请参阅其文档了解错误格式 XML 可能引发的异常。 未知元素将被 plist 解析器直接略过。"
138146

139147
#: ../../library/plistlib.rst:77
140148
msgid ""
141149
"The parser for the binary format raises :exc:`InvalidFileException` when the"
142150
" file cannot be parsed."
143-
msgstr ""
151+
msgstr "当文件无法被解析时二进制格式的解析器将引发 :exc:`InvalidFileException`。"
144152

145153
#: ../../library/plistlib.rst:85
146154
msgid ""
147155
"Load a plist from a bytes object. See :func:`load` for an explanation of the"
148156
" keyword arguments."
149-
msgstr ""
157+
msgstr "从一个 bytes 对象加载 plist。 参阅 :func:`load` 获取相应关键字参数的说明。"
150158

151159
#: ../../library/plistlib.rst:93
152160
msgid ""
153161
"Write *value* to a plist file. *Fp* should be a writable, binary file "
154162
"object."
155-
msgstr ""
163+
msgstr "将 *value* 写入 plist 文件。 *Fp* 应当可写并且为二进制文件对象。"
156164

157165
#: ../../library/plistlib.rst:96
158166
msgid ""
159167
"The *fmt* argument specifies the format of the plist file and can be one of "
160168
"the following values:"
161-
msgstr ""
169+
msgstr "*fmt* 参数指定 plist 文件的格式,可以是以下值之一:"
162170

163171
#: ../../library/plistlib.rst:99
164172
msgid ":data:`FMT_XML`: XML formatted plist file"
165-
msgstr ""
173+
msgstr ":data:`FMT_XML`: XML 格式的 plist 文件"
166174

167175
#: ../../library/plistlib.rst:101
168176
msgid ":data:`FMT_BINARY`: Binary formatted plist file"
169-
msgstr ""
177+
msgstr ":data:`FMT_BINARY`: 二进制格式的 plist 文件"
170178

171179
#: ../../library/plistlib.rst:103
172180
msgid ""
173181
"When *sort_keys* is true (the default) the keys for dictionaries will be "
174182
"written to the plist in sorted order, otherwise they will be written in the "
175183
"iteration order of the dictionary."
176-
msgstr ""
184+
msgstr "当 *sort_keys* 为真值(默认)时字典的键将经过排序再写入 plist,否则将按字典的迭代顺序写入。"
177185

178186
#: ../../library/plistlib.rst:107
179187
msgid ""
180188
"When *skipkeys* is false (the default) the function raises :exc:`TypeError` "
181189
"when a key of a dictionary is not a string, otherwise such keys are skipped."
182-
msgstr ""
190+
msgstr "当 *skipkeys* 为假值(默认)时该函数将在字典的键不为字符串时引发 :exc:`TypeError`,否则将跳过这样的键。"
183191

184192
#: ../../library/plistlib.rst:110
185193
msgid ""
186194
"A :exc:`TypeError` will be raised if the object is of an unsupported type or"
187195
" a container that contains objects of unsupported types."
188-
msgstr ""
196+
msgstr "如果对象是不受支持的类型或者是包含不受支持类型的对象的容器则将引发 :exc:`TypeError`。"
189197

190198
#: ../../library/plistlib.rst:113
191199
msgid ""
192200
"An :exc:`OverflowError` will be raised for integer values that cannot be "
193201
"represented in (binary) plist files."
194-
msgstr ""
202+
msgstr "对于无法在(二进制)plist 文件中表示的整数值,将会引发 :exc:`OverflowError`。"
195203

196204
#: ../../library/plistlib.rst:121
197205
msgid ""
198206
"Return *value* as a plist-formatted bytes object. See the documentation for "
199207
":func:`dump` for an explanation of the keyword arguments of this function."
200-
msgstr ""
208+
msgstr "将 *value* 以 plist 格式字节串对象的形式返回。 参阅 :func:`dump` 的文档获取此函数的关键字参数的说明。"
201209

202210
#: ../../library/plistlib.rst:127
203211
msgid "The following functions are deprecated:"
204-
msgstr ""
212+
msgstr "以下函数已被弃用:"
205213

206214
#: ../../library/plistlib.rst:131
207215
msgid ""
208216
"Read a plist file. *pathOrFile* may be either a file name or a (readable and"
209217
" binary) file object. Returns the unpacked root object (which usually is a "
210218
"dictionary)."
211-
msgstr ""
219+
msgstr "读取 plist 文件。 *pathOrFile* 可以是文件名或(可读并且为二进制的)文件对象。 返回已解包的根对象(通常是一个字典)。"
212220

213221
#: ../../library/plistlib.rst:135
214222
msgid ""
215223
"This function calls :func:`load` to do the actual work, see the "
216224
"documentation of :func:`that function <load>` for an explanation of the "
217225
"keyword arguments."
218-
msgstr ""
226+
msgstr "此函数会调用 :func:`load` 来完成实际操作,请参阅 :func:`该函数 <load>` 的文档获取相应关键字参数的说明。"
219227

220228
#: ../../library/plistlib.rst:138
221229
msgid "Use :func:`load` instead."

0 commit comments

Comments
 (0)