11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2023 , Python Software Foundation
2+ # Copyright (C) 2001-2024 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
@@ -16,7 +16,7 @@ msgid ""
1616msgstr ""
1717"Project-Id-Version : Python 3.12\n "
1818"Report-Msgid-Bugs-To : \n "
19- "POT-Creation-Date : 2023-09-15 14:13 +0000\n "
19+ "POT-Creation-Date : 2024-04-12 14:14 +0000\n "
2020"PO-Revision-Date : 2022-11-05 19:49+0000\n "
2121"
Last-Translator :
Freesand Leo <[email protected] >, 2023\n "
2222"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -169,33 +169,60 @@ msgid "Return True if self is a file."
169169msgstr "如果自身是一个文件则返回 True。"
170170
171171#: ../../library/importlib.resources.abc.rst:114
172- #: ../../library/importlib.resources.abc.rst:118
173- msgid "Return Traversable child in self."
174- msgstr "返回自身中可遍历的子对象。"
172+ msgid ""
173+ "Traverse directories according to *pathsegments* and return the result as "
174+ ":class:`!Traversable`."
175+ msgstr ""
176+
177+ #: ../../library/importlib.resources.abc.rst:117
178+ msgid ""
179+ "Each *pathsegments* argument may contain multiple names separated by forward"
180+ " slashes (``/``, ``posixpath.sep`` ). For example, the following are "
181+ "equivalent::"
182+ msgstr ""
183+
184+ #: ../../library/importlib.resources.abc.rst:124
185+ msgid ""
186+ "Note that some :class:`!Traversable` implementations might not be updated to"
187+ " the latest version of the protocol. For compatibility with such "
188+ "implementations, provide a single argument without path separators to each "
189+ "call to ``joinpath``. For example::"
190+ msgstr ""
175191
176- #: ../../library/importlib.resources.abc.rst:122
192+ #: ../../library/importlib.resources.abc.rst:133
193+ msgid ""
194+ "``joinpath`` accepts multiple *pathsegments*, and these segments may contain"
195+ " forward slashes as path separators. Previously, only a single *child* "
196+ "argument was accepted."
197+ msgstr ""
198+
199+ #: ../../library/importlib.resources.abc.rst:139
200+ msgid "Return Traversable child in self. Equivalent to ``joinpath(child)``."
201+ msgstr ""
202+
203+ #: ../../library/importlib.resources.abc.rst:144
177204msgid ""
178205"*mode* may be 'r' or 'rb' to open as text or binary. Return a handle "
179206"suitable for reading (same as :attr:`pathlib.Path.open`)."
180207msgstr ""
181208"*mode* 可以为 'r' 或 'rb' 即以文本或二进制模式打开。 返回一个适用于读取的句柄(与 :attr:`pathlib.Path.open`"
182209" 样同)。"
183210
184- #: ../../library/importlib.resources.abc.rst:125
211+ #: ../../library/importlib.resources.abc.rst:147
185212msgid ""
186213"When opening as text, accepts encoding parameters such as those accepted by "
187214":class:`io.TextIOWrapper`."
188215msgstr "当以文件模式打开时,接受与 :class:`io.TextIOWrapper` 所接受的相同编码格式形参。"
189216
190- #: ../../library/importlib.resources.abc.rst:130
217+ #: ../../library/importlib.resources.abc.rst:152
191218msgid "Read contents of self as bytes."
192219msgstr "以字节串形式读取自身的内容。"
193220
194- #: ../../library/importlib.resources.abc.rst:134
221+ #: ../../library/importlib.resources.abc.rst:156
195222msgid "Read contents of self as text."
196223msgstr "以文本形式读取自身的内容。"
197224
198- #: ../../library/importlib.resources.abc.rst:139
225+ #: ../../library/importlib.resources.abc.rst:161
199226msgid ""
200227"An abstract base class for resource readers capable of serving the "
201228":meth:`importlib.resources.files` interface. Subclasses "
@@ -207,13 +234,13 @@ msgstr ""
207234":class:`ResourceReader` 并为 :class:`!ResourceReader` 的抽象方法提供具体实现。 因此 ,任何提供了 "
208235":class:`!TraversableResources` 的加载器也会提供 :class:`!ResourceReader`。"
209236
210- #: ../../library/importlib.resources.abc.rst:146
237+ #: ../../library/importlib.resources.abc.rst:168
211238msgid ""
212239"Loaders that wish to support resource reading are expected to implement this"
213240" interface."
214241msgstr "需要支持资源读取的加载器应实现此接口。"
215242
216- #: ../../library/importlib.resources.abc.rst:151
243+ #: ../../library/importlib.resources.abc.rst:173
217244msgid ""
218245"Returns a :class:`importlib.resources.abc.Traversable` object for the loaded"
219246" package."
0 commit comments