55#
66# Translators:
77# python-doc bot, 2025
8+ # qqfunc, 2025
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version : Python 3.14\n "
1314"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-10-27 14:15 +0000\n "
15+ "POT-Creation-Date : 2025-11-09 14:13 +0000\n "
1516"PO-Revision-Date : 2025-09-16 00:00+0000\n "
16- "Last-Translator : python-doc bot , 2025\n "
17+ "Last-Translator : qqfunc , 2025\n "
1718"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
1819"ja/)\n "
1920"MIME-Version : 1.0\n "
@@ -24,7 +25,7 @@ msgstr ""
2425
2526#: ../../c-api/extension-modules.rst:6
2627msgid "Defining extension modules"
27- msgstr ""
28+ msgstr "拡張モジュールの定義 "
2829
2930#: ../../c-api/extension-modules.rst:8
3031msgid ""
@@ -33,6 +34,10 @@ msgid ""
3334"process (for example, it is compiled with compatible compiler settings), and "
3435"which exports an :ref:`initialization function <extension-export-hook>`."
3536msgstr ""
37+ "CPython の C 拡張は、共有ライブラリ (例えば、 Linux では ``.so`` ファイル、 "
38+ "Windows では ``.pyd`` DLL) であり、 Python プロセスで読み込み可能 (例えば、互"
39+ "換性のあるコンパイラ設定でコンパイルされている) で、 :ref:`初期化関数 "
40+ "<extension-export-hook>` をエクスポートするものです。"
3641
3742#: ../../c-api/extension-modules.rst:13
3843msgid ""
@@ -49,6 +54,10 @@ msgid ""
4954"is Setuptools, whose documentation can be found at https://setuptools.pypa."
5055"io/en/latest/setuptools.html."
5156msgstr ""
57+ "拡張モジュールのビルド、パッケージ化および配布には、サードパーティのツールが"
58+ "最適であり、このドキュメントの範囲外です。適切なツールの一つは Setuptools で"
59+ "あり、ドキュメントは https://setuptools.pypa.io/en/latest/setuptools.html に"
60+ "あります。"
5261
5362#: ../../c-api/extension-modules.rst:26
5463msgid ""
@@ -138,19 +147,21 @@ msgstr ""
138147
139148#: ../../c-api/extension-modules.rst:89
140149msgid "Initialization function"
141- msgstr ""
150+ msgstr "初期化関数 "
142151
143152#: ../../c-api/extension-modules.rst:91
144153msgid ""
145154"The initialization function defined by an extension module has the following "
146155"signature:"
147156msgstr ""
157+ "拡張モジュールによって定義された初期化関数は、次のシグネチャを持ちます:"
148158
149159#: ../../c-api/extension-modules.rst:96
150160msgid ""
151161"Its name should be :samp:`PyInit_{<name>}`, with ``<name>`` replaced by the "
152162"name of the module."
153163msgstr ""
164+ "名前が :samp:`PyInit_{<name>}` であり、 ``<name>`` はモジュール名です。"
154165
155166#: ../../c-api/extension-modules.rst:99
156167msgid ""
@@ -171,6 +182,12 @@ msgid ""
171182" suffix = b'U_' + name.encode('punycode').replace(b'-', b'_')\n"
172183" return b'PyInit' + suffix"
173184msgstr ""
185+ "def initfunc_name(name):\n"
186+ " try:\n"
187+ " suffix = b'_' + name.encode('ascii')\n"
188+ " except UnicodeEncodeError:\n"
189+ " suffix = b'U_' + name.encode('punycode').replace(b'-', b'_')\n"
190+ " return b'PyInit' + suffix"
174191
175192#: ../../c-api/extension-modules.rst:115
176193msgid ""
0 commit comments