Skip to content

Commit 296774c

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent 4289988 commit 296774c

36 files changed

Lines changed: 539 additions & 9 deletions

‎c-api/init_config.po‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ msgstr ""
276276
"て取得します。"
277277

278278
msgid "Set *\\*length* and *\\*items*, and return ``0`` on success."
279-
msgstr ""
279+
msgstr "成功すると *\\*length* と *\\*items* を設定し、``0`` を返します。"
280280

281281
msgid ""
282282
"On success, the string list must be released with "
@@ -2870,6 +2870,7 @@ msgstr "ゼロの場合、:ref:`環境変数 <using-on-envvars>` を無視しま
28702870

28712871
msgid "Set to ``0`` by the :option:`-E` command-line option."
28722872
msgstr ""
2873+
":option:`-E` コマンドラインオプションを指定すると ``0`` に設定されます。"
28732874

28742875
msgid ""
28752876
"If non-zero, ``stdout`` and ``stderr`` will be redirected to the system log."

‎c-api/interp-lifecycle.po‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,14 @@ msgid ""
14291429
"into static storage; the caller should not modify its value. The value is "
14301430
"available to Python code as ``sys.platform``."
14311431
msgstr ""
1432+
"現在のプラットフォームの識別子を返します。\n"
1433+
"Unix では、オペレーティングシステムの「正式な」名前を小文字に変換し、メジャー"
1434+
"リビジョン番号を付けたものです。\n"
1435+
"例えば、SunOS 5.x とも呼ばれる Solaris 2.x では ``'sunos5'`` になります。\n"
1436+
"macOS では ``'darwin'``、Windows では ``'win32'`` です。\n"
1437+
"返される文字列は静的な記憶領域を指しているため、呼び出し元で変更してはいけま"
1438+
"せん。\n"
1439+
"この値は Python のコードから ``sys.platform`` として参照できます。"
14321440

14331441
#: ../../c-api/interp-lifecycle.rst:842
14341442
msgid ""

‎c-api/long.po‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,9 @@ msgid ""
874874
"to :c:func:`PyLong_AsLong`, :c:func:`PyLong_AsLongLong`, "
875875
"or :c:func:`PyLong_AsInt`, depending on the size of the system's PID type."
876876
msgstr ""
877+
"システムの PID 型のサイズに応じ"
878+
"て、:c:func:`PyLong_AsLong`、:c:func:`PyLong_AsLongLong`、また"
879+
"は :c:func:`PyLong_AsInt` の別名として定義される場合があります。"
877880

878881
msgid "Get the sign of the integer object *obj*."
879882
msgstr "整数オブジェクト *obj* の符号を取得します。"

‎c-api/module.po‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,10 @@ msgid ""
511511
"true :py:class:`~importlib.machinery.ModuleSpec` instance. Note that "
512512
"previous versions of CPython did not enforce this."
513513
msgstr ""
514+
"*spec* 引数には、実際の :py:class:`~importlib.machinery.ModuleSpec` インスタ"
515+
"ンスの代わりに ``ModuleSpec`` に似たオブジェクトも指定できます。\n"
516+
"以前のバージョンの CPython では、この条件を強制していなかった点に注意してくだ"
517+
"さい。"
514518

515519
msgid ""
516520
"The *def* argument may now be ``NULL``, since modules are not necessarily "

‎c-api/type.po‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,8 @@ msgid ""
10881088
":c:member:`Slot ID <PySlot.sl_id>` for base types, used to "
10891089
"set :c:member:`PyTypeObject.tp_bases`."
10901090
msgstr ""
1091+
"基底型を指定するための :c:member:`スロット ID <PySlot.sl_id>` です。\n"
1092+
":c:member:`PyTypeObject.tp_bases` の設定に使います。"
10911093

10921094
msgid ""
10931095
"The slot can be set to a tuple of type objects which the newly created type "
@@ -1308,6 +1310,9 @@ msgid ""
13081310
"slot, and takes precedence over :c:data:`Py_tp_base` "
13091311
"and :c:data:`Py_tp_bases` slots."
13101312
msgstr ""
1313+
"``NULL`` でない *bases* 引数は :c:data:`Py_tp_bases` スロットに対応"
1314+
"し、:c:data:`Py_tp_base` スロットと :c:data:`Py_tp_bases` スロットより優先さ"
1315+
"れます。"
13111316

13121317
msgid ""
13131318
"A non-``NULL`` *module* argument corresponds to the :c:macro:`Py_tp_module` "

‎extending/newtypes.po‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,9 @@ msgid ""
837837
"As with the :c:member:`~PyTypeObject.tp_methods` table, a sentinel entry "
838838
"with a :c:member:`~PyMemberDef.name` value of ``NULL`` is required."
839839
msgstr ""
840+
":c:member:`~PyTypeObject.tp_methods` テーブルと同様"
841+
"に、:c:member:`~PyMemberDef.name` の値が ``NULL`` の番兵エントリーが必要で"
842+
"す。"
840843

841844
#: ../../extending/newtypes.rst:321
842845
msgid "Type-specific Attribute Management"

‎howto/annotations.po‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,12 @@ msgid ""
497497
"using :func:`annotationlib.get_annotations` on Python 3.14+ "
498498
"or :func:`inspect.get_annotations` on Python 3.10+."
499499
msgstr ""
500+
"独自のメタクラスを持つクラスで ``__annotations__`` にアクセスすると、予期しな"
501+
"い動作が起こる場合があります。\n"
502+
"例については :pep:`749 <749#pep749-metaclasses>` を参照してください。\n"
503+
"Python 3.14 以降では :func:`annotationlib.get_annotations`、Python 3.10 以降"
504+
"では :func:`inspect.get_annotations` を使うことで、このような動作を避けられま"
505+
"す。"
500506

501507
msgid ""
502508
"On Python 3.14 and later, annotations are evaluated lazily (see :pep:`649` "
@@ -508,13 +514,26 @@ msgid ""
508514
"(or :func:`inspect.get_annotations`) rather than "
509515
"accessing :attr:`~type.__dict__` directly."
510516
msgstr ""
517+
"Python 3.14 以降ではアノテーションは遅延評価されます (:pep:`649` "
518+
"と :pep:`749` を参照)。\n"
519+
"アノテーションの辞書をクラスの :attr:`~type.__dict__` にどのように格納するか"
520+
"は、非公開の実装詳細です。\n"
521+
"そのため、クラスにアノテーションがあっても "
522+
"``cls.__dict__.get('__annotations__', None)`` が ``None`` を返す場合がありま"
523+
"す。\n"
524+
"これらのバージョンでは :attr:`~type.__dict__` に直接アクセスせず、必"
525+
"ず :func:`annotationlib.get_annotations` (また"
526+
"は :func:`inspect.get_annotations`) を使ってください。"
511527

512528
msgid ""
513529
"Only on Python 3.9 and earlier, where neither function is available, can you "
514530
"avoid these bugs by reading the annotations from the "
515531
"class's :attr:`~type.__dict__` (for example, "
516532
"``cls.__dict__.get('__annotations__', None)``)."
517533
msgstr ""
534+
"どちらの関数も利用できない Python 3.9 以前に限り、クラス"
535+
"の :attr:`~type.__dict__` からアノテーションを読み取ることで (例えば "
536+
"``cls.__dict__.get('__annotations__', None)``)、これらのバグを回避できます。"
518537

519538
msgid ""
520539
"In some versions of Python, instances of classes may have an "

‎howto/instrumentation.po‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,9 @@ msgid ""
813813
"that execution of a Python function has ended (either via ``return``, or via "
814814
"an exception). It is only triggered for pure-Python (bytecode) functions."
815815
msgstr ""
816+
"このプローブポイントは ``python.function.entry`` と対になるもので、Python 関"
817+
"数の実行が (``return`` または例外によって) 終了したことを示します。\n"
818+
"ピュア Python (バイトコード) の関数に対してのみ発火します。"
816819

817820
#: ../../howto/instrumentation.rst:467
818821
msgid "Examples"

‎howto/urllib2.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ msgid "Introduction"
3232
msgstr "はじめに"
3333

3434
msgid "Related Articles"
35-
msgstr ""
35+
msgstr "関連記事"
3636

3737
#: ../../howto/urllib2.rst:12
3838
msgid ""

‎library/asyncio-protocol.po‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,6 +1314,39 @@ msgid ""
13141314
"\n"
13151315
"asyncio.run(main())"
13161316
msgstr ""
1317+
"import asyncio\n"
1318+
"\n"
1319+
"\n"
1320+
"class EchoServerProtocol(asyncio.Protocol):\n"
1321+
" def connection_made(self, transport):\n"
1322+
" peername = transport.get_extra_info('peername')\n"
1323+
" print(f'Connection from {peername}')\n"
1324+
" self.transport = transport\n"
1325+
"\n"
1326+
" def data_received(self, data):\n"
1327+
" message = data.decode()\n"
1328+
" print(f'Data received: {message!r}')\n"
1329+
"\n"
1330+
" print(f'Send: {message!r}')\n"
1331+
" self.transport.write(data)\n"
1332+
"\n"
1333+
" print('Close the client socket')\n"
1334+
" self.transport.close()\n"
1335+
"\n"
1336+
"\n"
1337+
"async def main():\n"
1338+
" # 低水準 API を使うため、イベントループへの参照を取得する。\n"
1339+
" loop = asyncio.get_running_loop()\n"
1340+
"\n"
1341+
" server = await loop.create_server(\n"
1342+
" EchoServerProtocol,\n"
1343+
" '127.0.0.1', 8888)\n"
1344+
"\n"
1345+
" async with server:\n"
1346+
" await server.serve_forever()\n"
1347+
"\n"
1348+
"\n"
1349+
"asyncio.run(main())"
13171350

13181351
#: ../../library/asyncio-protocol.rst:769
13191352
msgid ""

0 commit comments

Comments
 (0)