@@ -24,7 +24,7 @@ msgstr ""
24
24
25
25
#: ../../library/importlib.metadata.rst:5
26
26
msgid "Using :mod:`!importlib.metadata`"
27
- msgstr ""
27
+ msgstr ":mod:`!importlib.metadata` を使う "
28
28
29
29
#: ../../library/importlib.metadata.rst:10
30
30
msgid "**Source code:** :source:`Lib/importlib/metadata.py`"
@@ -72,6 +72,8 @@ msgstr ""
72
72
#: ../../library/importlib.metadata.rst:50
73
73
msgid "You can get the version string for ``wheel`` by running the following:"
74
74
msgstr ""
75
+ "以下のように実行することで、``wheel`` のバージョン文字列を取得することができ"
76
+ "ます:"
75
77
76
78
#: ../../library/importlib.metadata.rst:59
77
79
msgid ""
@@ -83,25 +85,30 @@ msgstr ""
83
85
#: ../../library/importlib.metadata.rst:63
84
86
msgid "You can get the :ref:`metadata for a distribution <metadata>`::"
85
87
msgstr ""
88
+ ":ref:`ディストリビューションのメタデータ <metadata>`:: を取得することができま"
89
+ "す。"
86
90
87
91
#: ../../library/importlib.metadata.rst:68
88
92
msgid ""
89
93
"You can also get a :ref:`distribution's version number <version>`, list its :"
90
94
"ref:`constituent files <files>`, and get a list of the distribution's :ref:"
91
95
"`requirements`."
92
96
msgstr ""
97
+ "また、 :ref:`配布物のバージョン番号 <version>` を取得し、 :ref:`構成ファイル "
98
+ "<files>` をリストアップし、配布物の :ref:`requirements` のリストを取得するこ"
99
+ "とができます。"
93
100
94
101
#: ../../library/importlib.metadata.rst:74
95
102
msgid "Functional API"
96
103
msgstr "機能 API"
97
104
98
105
#: ../../library/importlib.metadata.rst:76
99
106
msgid "This package provides the following functionality via its public API."
100
- msgstr ""
107
+ msgstr "本パッケージは、公開APIを通じて以下の機能を提供します。 "
101
108
102
109
#: ../../library/importlib.metadata.rst:82
103
110
msgid "Entry points"
104
- msgstr ""
111
+ msgstr "エントリポイント "
105
112
106
113
#: ../../library/importlib.metadata.rst:84
107
114
msgid ""
@@ -124,7 +131,7 @@ msgstr ""
124
131
125
132
#: ../../library/importlib.metadata.rst:118
126
133
msgid "Distribution metadata"
127
- msgstr ""
134
+ msgstr "配布物メタデータ "
128
135
129
136
#: ../../library/importlib.metadata.rst:120
130
137
msgid ""
@@ -140,7 +147,7 @@ msgstr ""
140
147
141
148
#: ../../library/importlib.metadata.rst:135
142
149
msgid "Distribution versions"
143
- msgstr ""
150
+ msgstr "配布物バージョン "
144
151
145
152
#: ../../library/importlib.metadata.rst:137
146
153
msgid ""
@@ -150,7 +157,7 @@ msgstr ""
150
157
151
158
#: ../../library/importlib.metadata.rst:147
152
159
msgid "Distribution files"
153
- msgstr ""
160
+ msgstr "配布物ファイル "
154
161
155
162
#: ../../library/importlib.metadata.rst:149
156
163
msgid ""
@@ -164,13 +171,15 @@ msgstr ""
164
171
165
172
#: ../../library/importlib.metadata.rst:165
166
173
msgid "Once you have the file, you can also read its contents::"
167
- msgstr ""
174
+ msgstr "ファイルを取得したら、その内容を読むこともできます:: "
168
175
169
176
#: ../../library/importlib.metadata.rst:176
170
177
msgid ""
171
178
"You can also use the ``locate`` method to get a the absolute path to the "
172
179
"file::"
173
180
msgstr ""
181
+ "また、 ``locate`` メソッドを使用すると、ファイルへの絶対パスを取得することが"
182
+ "できます::"
174
183
175
184
#: ../../library/importlib.metadata.rst:182
176
185
msgid ""
@@ -209,12 +218,16 @@ msgid ""
209
218
"Thus, an alternative way to get the version number is through the "
210
219
"``Distribution`` instance::"
211
220
msgstr ""
221
+ "したがって、バージョン情報を取得する別の方法として、 ``Distribution`` インス"
222
+ "タンスを使用します::"
212
223
213
224
#: ../../library/importlib.metadata.rst:219
214
225
msgid ""
215
226
"There are all kinds of additional metadata available on the ``Distribution`` "
216
227
"instance::"
217
228
msgstr ""
229
+ "``Distribution`` インスタンスには、あらゆる種類の追加メタデータが用意されてい"
230
+ "ます::"
218
231
219
232
#: ../../library/importlib.metadata.rst:227
220
233
msgid ""
@@ -224,7 +237,7 @@ msgstr ""
224
237
225
238
#: ../../library/importlib.metadata.rst:232
226
239
msgid "Extending the search algorithm"
227
- msgstr ""
240
+ msgstr "検索アルゴリズムの拡張 "
228
241
229
242
#: ../../library/importlib.metadata.rst:234
230
243
msgid ""
@@ -251,13 +264,22 @@ msgid ""
251
264
"and presents this extended interface as the ``DistributionFinder`` abstract "
252
265
"base class, which defines this abstract method::"
253
266
msgstr ""
267
+ "抽象クラス :py:class:`importlib.abc.MetaPathFinder` はPythonの importシステム"
268
+ "によってファインダーに期待されるインターフェイスを定義しています。 "
269
+ "``importlib.metadata`` はこのプロトコルを拡張し、 :data:`sys.meta_path` から"
270
+ "ファインダーにオプションの ``find_distributions`` を呼び出すことができるよう"
271
+ "にし、この拡張インターフェースを ``DistributionFinder`` 抽象基底クラスとして"
272
+ "提示し、この抽象メソッドを定義しています::"
254
273
255
274
#: ../../library/importlib.metadata.rst:258
256
275
msgid ""
257
276
"The ``DistributionFinder.Context`` object provides ``.path`` and ``.name`` "
258
277
"properties indicating the path to search and name to match and may supply "
259
278
"other relevant context."
260
279
msgstr ""
280
+ "``DistributionFinder.Context`` オブジェクトは、検索するパスと一致する名前を示"
281
+ "す ``.path`` と ``.name`` のプロパティを提供し、その他の関連するコンテキスト"
282
+ "を提供することもできます。"
261
283
262
284
#: ../../library/importlib.metadata.rst:262
263
285
msgid ""
@@ -267,6 +289,10 @@ msgid ""
267
289
"instances of this derived ``Distribution`` in the ``find_distributions()`` "
268
290
"method."
269
291
msgstr ""
292
+ "つまり、ファイルシステム以外の場所にある配布パッケージのメタデータを見つける"
293
+ "には、 ``Distribution`` をサブクラス化して抽象メソッドを実装します。そして、"
294
+ "カスタムファインダーから ``find_distributions()`` メソッドで、派生した "
295
+ "``Distribution`` のインスタンスを返します。"
270
296
271
297
#: ../../library/importlib.metadata.rst:275
272
298
msgid "Footnotes"
0 commit comments