Skip to content

Commit 7611282

Browse files
author
github-actions
committed
Merge 3.11 into 3.10
1 parent 3b41cb7 commit 7611282

File tree

2 files changed

+48
-12
lines changed

2 files changed

+48
-12
lines changed

library/importlib.metadata.po

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ msgstr ":mod:`!importlib.metadata` を使う"
2828

2929
#: ../../library/importlib.metadata.rst:11
3030
msgid "``importlib.metadata`` is no longer provisional."
31-
msgstr ""
31+
msgstr "``importlib.metadata`` は、暫定的なものではなくなりました。"
3232

3333
#: ../../library/importlib.metadata.rst:14
3434
msgid "**Source code:** :source:`Lib/importlib/metadata/__init__.py`"
35-
msgstr ""
35+
msgstr "**ソースコード:** :source:`Lib/importlib/metadata/__init__.py`"
3636

3737
#: ../../library/importlib.metadata.rst:16
3838
msgid ""
@@ -71,7 +71,7 @@ msgstr ""
7171
msgid "You can get the version string for ``wheel`` by running the following:"
7272
msgstr ""
7373
"以下のように実行することで、``wheel`` のバージョン文字列を取得することができ"
74-
"ます"
74+
"ます::"
7575

7676
#: ../../library/importlib.metadata.rst:57
7777
msgid ""
@@ -83,8 +83,8 @@ msgstr ""
8383
#: ../../library/importlib.metadata.rst:61
8484
msgid "You can get the :ref:`metadata for a distribution <metadata>`::"
8585
msgstr ""
86-
":ref:`ディストリビューションのメタデータ <metadata>`:: を取得することができま"
87-
"す。"
86+
":ref:`ディストリビューションのメタデータ <metadata>` を取得することができま"
87+
"す。::"
8888

8989
#: ../../library/importlib.metadata.rst:66
9090
msgid ""
@@ -116,10 +116,14 @@ msgid ""
116116
"to resolve the value. There are also ``.module``, ``.attr``, and ``."
117117
"extras`` attributes for getting the components of the ``.value`` attribute."
118118
msgstr ""
119+
"``entry_points()`` 関数は、エントリポイントの集合を返します。各 "
120+
"``EntryPoint`` は ``.name``, ``.group``, ``.value`` 属性と値を解決する ``."
121+
"load() `` メソッドを持っています。 また、``.value`` 属性の構成要素を取得する"
122+
"ための ``.module``, ``.attr``, ``.extras`` 属性が存在します。"
119123

120124
#: ../../library/importlib.metadata.rst:89
121125
msgid "Query all entry points::"
122-
msgstr ""
126+
msgstr "すべてのエントリポイントに問い合わせる::"
123127

124128
#: ../../library/importlib.metadata.rst:93
125129
msgid ""
@@ -133,6 +137,9 @@ msgid ""
133137
"``EntryPoints`` has a ``select`` method to select entry points matching "
134138
"specific properties. Select entry points in the ``console_scripts`` group::"
135139
msgstr ""
140+
"``EntryPoints`` には、特定のプロパティに一致するエントリポイントを選択するた"
141+
"めの ``select`` メソッドがあります。``console_scripts`` グループ内のエントリ"
142+
"ポイントを選択する::"
136143

137144
#: ../../library/importlib.metadata.rst:106
138145
msgid ""
@@ -144,14 +151,16 @@ msgstr ""
144151
msgid ""
145152
"Pick out a specific script named \"wheel\" (found in the wheel project)::"
146153
msgstr ""
154+
"\"wheel\" という名前の特定のスクリプトを選択します。(wheelプロジェクトにあり"
155+
"ます)::"
147156

148157
#: ../../library/importlib.metadata.rst:117
149158
msgid "Equivalently, query for that entry point during selection::"
150-
msgstr ""
159+
msgstr "同様に、選択時にそのエントリポイントを問い合わせます::"
151160

152161
#: ../../library/importlib.metadata.rst:122
153162
msgid "Inspect the resolved entry point::"
154-
msgstr ""
163+
msgstr "解決したエントリポイントを検証する::"
155164

156165
#: ../../library/importlib.metadata.rst:136
157166
msgid ""
@@ -161,10 +170,15 @@ msgid ""
161170
"latest/userguide/entry_point.html>`_ for more information on entry points, "
162171
"their definition, and usage."
163172
msgstr ""
173+
"``group`` と ``name`` はパッケージの作者によって定義された任意の値で、通常ク"
174+
"ライアントは特定のグループのエントリポイントを解決したいと思うでしょう。エン"
175+
"トリポイント、その他の定義、使用方法についての詳細は `setuptoolsのドキュメン"
176+
"ト <https://setuptools.pypa.io/en/latest/userguide/entry_point.html>`_ を参照"
177+
"してください。"
164178

165179
#: ../../library/importlib.metadata.rst:142
166180
msgid "*Compatibility Note*"
167-
msgstr ""
181+
msgstr "*互換性に関する注意*"
168182

169183
#: ../../library/importlib.metadata.rst:144
170184
msgid ""
@@ -177,6 +191,14 @@ msgid ""
177191
"``EntryPoints`` object. Users should rely on the selection interface to "
178192
"retrieve entry points by group."
179193
msgstr ""
194+
"\"選択可能\" なエントリポイントは ``importlib_metadata`` 3.6 と Python 3.10 "
195+
"で導入されました。これらの変更以前は、 ``entry_points`` はパラメータを受け付"
196+
"けず、常にグループ名をキーとするエントリポイントの辞書を返していました。互換"
197+
"性のため、entry_points にパラメータが渡されない場合、その dict インターフェー"
198+
"スを実装した ``SelectableGroups`` オブジェクトが返されます。将来的には、パラ"
199+
"メータを指定せずに ``entry_points`` を呼び出すと、 ``EntryPoints`` オブジェク"
200+
"トが返されるようになります。ユーザーは、グループごとにエントリポイントを取得"
201+
"するために、選択インターフェースに依存する必要があります。"
180202

181203
#: ../../library/importlib.metadata.rst:157
182204
msgid "Distribution metadata"
@@ -194,22 +216,28 @@ msgid ""
194216
"metadata keywords, and the values are returned unparsed from the "
195217
"distribution metadata::"
196218
msgstr ""
219+
"返されたデータ構造である ``PackageMetadata`` のキーはメタデータのキーワードを"
220+
"表し、値は配布パッケージのメタデータから解析されずに返されます::"
197221

198222
#: ../../library/importlib.metadata.rst:171
199223
msgid ""
200224
"``PackageMetadata`` also presents a ``json`` attribute that returns all the "
201225
"metadata in a JSON-compatible form per :PEP:`566`::"
202226
msgstr ""
227+
"``PackageMetadata``には ``json`` 属性があり、 :PEP:`566` に従ってすべてのメタ"
228+
"データをJSON互換の形式で返します::"
203229

204230
#: ../../library/importlib.metadata.rst:177
205231
msgid ""
206232
"The ``Description`` is now included in the metadata when presented through "
207233
"the payload. Line continuation characters have been removed."
208234
msgstr ""
235+
"ペイロードを通して提示されるとき、 ``Description`` がメタデータに含まれるよう"
236+
"になりました。行の継続文字は削除されました。"
209237

210238
#: ../../library/importlib.metadata.rst:181
211239
msgid "The ``json`` attribute was added."
212-
msgstr ""
240+
msgstr "``json`` 属性が追加されました。"
213241

214242
#: ../../library/importlib.metadata.rst:188
215243
msgid "Distribution versions"
@@ -259,7 +287,7 @@ msgstr ""
259287

260288
#: ../../library/importlib.metadata.rst:246
261289
msgid "Distribution requirements"
262-
msgstr ""
290+
msgstr "配布物の要件"
263291

264292
#: ../../library/importlib.metadata.rst:248
265293
msgid ""

tutorial/errors.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ msgid ""
357357
"To indicate that an exception is a direct consequence of another, the :"
358358
"keyword:`raise` statement allows an optional :keyword:`from<raise>` clause::"
359359
msgstr ""
360+
"ある例外が他の例外から直接影響されていることを示すために、:keyword:`raise` 文"
361+
"にオプションの :keyword:`from<raise>` 句を指定します::"
360362

361363
#: ../../tutorial/errors.rst:303
362364
msgid "This can be useful when you are transforming exceptions. For example::"
@@ -366,7 +368,7 @@ msgstr "これは例外を変換するときに便利です。例えば::"
366368
msgid ""
367369
"It also allows disabling automatic exception chaining using the ``from "
368370
"None`` idiom::"
369-
msgstr ""
371+
msgstr "また、自動的な例外の連鎖を無効にするには ``from None`` を指定します。"
370372

371373
#: ../../tutorial/errors.rst:336
372374
msgid ""
@@ -397,6 +399,10 @@ msgid ""
397399
"allow information about the error to be extracted by handlers for the "
398400
"exception."
399401
msgstr ""
402+
"例外クラスでは、普通のクラスができることなら何でも定義することができますが、"
403+
"通常は単純なものにしておきます。大抵は、いくつかの属性だけを提供し、例外が発"
404+
"生したときにハンドラがエラーに関する情報を取り出せるようにする程度にとどめま"
405+
"す。"
400406

401407
#: ../../tutorial/errors.rst:352
402408
msgid ""
@@ -469,6 +475,8 @@ msgid ""
469475
"If the :keyword:`!finally` clause executes a :keyword:`break`, :keyword:"
470476
"`continue` or :keyword:`return` statement, exceptions are not re-raised."
471477
msgstr ""
478+
":keyword:`!finally` 節で :keyword:`break`、:keyword:`continue` または :"
479+
"keyword:`return` 文が実行された場合、例外は再送出されません。"
472480

473481
#: ../../tutorial/errors.rst:399
474482
msgid ""

0 commit comments

Comments
 (0)