Skip to content

Commit d68d2c2

Browse files
sync with cpython 0f02dbe4
1 parent 097cccc commit d68d2c2

File tree

2 files changed

+383
-376
lines changed

2 files changed

+383
-376
lines changed

library/importlib.resources.abc.po

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.14\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-02-22 08:51+0000\n"
10+
"POT-Creation-Date: 2026-01-09 00:15+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -91,19 +91,23 @@ msgstr ""
9191

9292
#: ../../library/importlib.resources.abc.rst:69
9393
msgid ""
94-
"Returns ``True`` if the named *name* is considered a resource. :exc:"
95-
"`FileNotFoundError` is raised if *name* does not exist."
94+
"Returns ``True`` if the named *path* is considered a resource. :exc:"
95+
"`FileNotFoundError` is raised if *path* does not exist."
9696
msgstr ""
9797

98-
#: ../../library/importlib.resources.abc.rst:75
98+
#: ../../library/importlib.resources.abc.rst:72
99+
msgid "The argument *name* was renamed to *path*."
100+
msgstr ""
101+
102+
#: ../../library/importlib.resources.abc.rst:78
99103
msgid ""
100104
"Returns an :term:`iterable` of strings over the contents of the package. Do "
101105
"note that it is not required that all names returned by the iterator be "
102106
"actual resources, e.g. it is acceptable to return names for which :meth:"
103107
"`is_resource` would be false."
104108
msgstr ""
105109

106-
#: ../../library/importlib.resources.abc.rst:81
110+
#: ../../library/importlib.resources.abc.rst:84
107111
msgid ""
108112
"Allowing non-resource names to be returned is to allow for situations where "
109113
"how a package and its resources are stored are known a priori and the non-"
@@ -112,103 +116,103 @@ msgid ""
112116
"stored on the file system then those subdirectory names can be used directly."
113117
msgstr ""
114118

115-
#: ../../library/importlib.resources.abc.rst:89
119+
#: ../../library/importlib.resources.abc.rst:92
116120
msgid "The abstract method returns an iterable of no items."
117121
msgstr ""
118122

119-
#: ../../library/importlib.resources.abc.rst:94
123+
#: ../../library/importlib.resources.abc.rst:97
120124
msgid ""
121125
"An object with a subset of :class:`pathlib.Path` methods suitable for "
122126
"traversing directories and opening files."
123127
msgstr ""
124128

125-
#: ../../library/importlib.resources.abc.rst:97
129+
#: ../../library/importlib.resources.abc.rst:100
126130
msgid ""
127131
"For a representation of the object on the file-system, use :meth:`importlib."
128132
"resources.as_file`."
129133
msgstr ""
130134

131-
#: ../../library/importlib.resources.abc.rst:102
135+
#: ../../library/importlib.resources.abc.rst:105
132136
msgid "Abstract. The base name of this object without any parent references."
133137
msgstr ""
134138

135-
#: ../../library/importlib.resources.abc.rst:107
139+
#: ../../library/importlib.resources.abc.rst:110
136140
msgid "Yield Traversable objects in self."
137141
msgstr ""
138142

139-
#: ../../library/importlib.resources.abc.rst:112
143+
#: ../../library/importlib.resources.abc.rst:115
140144
msgid "Return ``True`` if self is a directory."
141145
msgstr ""
142146

143-
#: ../../library/importlib.resources.abc.rst:117
147+
#: ../../library/importlib.resources.abc.rst:120
144148
msgid "Return ``True`` if self is a file."
145149
msgstr ""
146150

147-
#: ../../library/importlib.resources.abc.rst:122
151+
#: ../../library/importlib.resources.abc.rst:125
148152
msgid ""
149153
"Traverse directories according to *pathsegments* and return the result as :"
150154
"class:`!Traversable`."
151155
msgstr ""
152156

153-
#: ../../library/importlib.resources.abc.rst:125
157+
#: ../../library/importlib.resources.abc.rst:128
154158
msgid ""
155159
"Each *pathsegments* argument may contain multiple names separated by forward "
156160
"slashes (``/``, ``posixpath.sep`` ). For example, the following are "
157161
"equivalent::"
158162
msgstr ""
159163

160-
#: ../../library/importlib.resources.abc.rst:129
164+
#: ../../library/importlib.resources.abc.rst:132
161165
msgid ""
162166
"files.joinpath('subdir', 'subsuddir', 'file.txt')\n"
163167
"files.joinpath('subdir/subsuddir/file.txt')"
164168
msgstr ""
165169
"files.joinpath('subdir', 'subsuddir', 'file.txt')\n"
166170
"files.joinpath('subdir/subsuddir/file.txt')"
167171

168-
#: ../../library/importlib.resources.abc.rst:132
172+
#: ../../library/importlib.resources.abc.rst:135
169173
msgid ""
170174
"Note that some :class:`!Traversable` implementations might not be updated to "
171175
"the latest version of the protocol. For compatibility with such "
172176
"implementations, provide a single argument without path separators to each "
173177
"call to ``joinpath``. For example::"
174178
msgstr ""
175179

176-
#: ../../library/importlib.resources.abc.rst:137
180+
#: ../../library/importlib.resources.abc.rst:140
177181
msgid "files.joinpath('subdir').joinpath('subsubdir').joinpath('file.txt')"
178182
msgstr "files.joinpath('subdir').joinpath('subsubdir').joinpath('file.txt')"
179183

180-
#: ../../library/importlib.resources.abc.rst:141
184+
#: ../../library/importlib.resources.abc.rst:144
181185
msgid ""
182186
"``joinpath`` accepts multiple *pathsegments*, and these segments may contain "
183187
"forward slashes as path separators. Previously, only a single *child* "
184188
"argument was accepted."
185189
msgstr ""
186190

187-
#: ../../library/importlib.resources.abc.rst:148
191+
#: ../../library/importlib.resources.abc.rst:151
188192
msgid "Return Traversable child in self. Equivalent to ``joinpath(child)``."
189193
msgstr ""
190194

191-
#: ../../library/importlib.resources.abc.rst:154
195+
#: ../../library/importlib.resources.abc.rst:157
192196
msgid ""
193197
"*mode* may be 'r' or 'rb' to open as text or binary. Return a handle "
194198
"suitable for reading (same as :attr:`pathlib.Path.open`)."
195199
msgstr ""
196200

197-
#: ../../library/importlib.resources.abc.rst:157
201+
#: ../../library/importlib.resources.abc.rst:160
198202
msgid ""
199203
"When opening as text, accepts encoding parameters such as those accepted by :"
200204
"class:`io.TextIOWrapper`."
201205
msgstr ""
202206

203-
#: ../../library/importlib.resources.abc.rst:162
207+
#: ../../library/importlib.resources.abc.rst:165
204208
msgid "Read contents of self as bytes."
205209
msgstr ""
206210

207-
#: ../../library/importlib.resources.abc.rst:166
211+
#: ../../library/importlib.resources.abc.rst:169
208212
msgid "Read contents of self as text."
209213
msgstr ""
210214

211-
#: ../../library/importlib.resources.abc.rst:171
215+
#: ../../library/importlib.resources.abc.rst:174
212216
msgid ""
213217
"An abstract base class for resource readers capable of serving the :meth:"
214218
"`importlib.resources.files` interface. Subclasses :class:`ResourceReader` "
@@ -217,13 +221,13 @@ msgid ""
217221
"TraversableResources` also supplies :class:`!ResourceReader`."
218222
msgstr ""
219223

220-
#: ../../library/importlib.resources.abc.rst:178
224+
#: ../../library/importlib.resources.abc.rst:181
221225
msgid ""
222226
"Loaders that wish to support resource reading are expected to implement this "
223227
"interface."
224228
msgstr ""
225229

226-
#: ../../library/importlib.resources.abc.rst:184
230+
#: ../../library/importlib.resources.abc.rst:187
227231
msgid ""
228232
"Returns a :class:`importlib.resources.abc.Traversable` object for the loaded "
229233
"package."

0 commit comments

Comments
 (0)