Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4be701f

Browse files
author
github-actions
committed
Merge 3.14 into 3.12
1 parent1aa3046 commit4be701f

File tree

5 files changed

+106
-24
lines changed

5 files changed

+106
-24
lines changed

‎c-api/init_config.po‎

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,19 @@ msgstr "Python 初期化設定 "
3232

3333
#:../../c-api/init_config.rst:13
3434
msgid"PyInitConfig C API"
35-
msgstr""
35+
msgstr"PyInitConfig C API"
3636

3737
#:../../c-api/init_config.rst:17
3838
msgid"Python can be initialized with :c:func:`Py_InitializeFromInitConfig`."
39-
msgstr""
39+
msgstr"Python は :c:func:`Py_InitializeFromInitConfig` で初期化できます。"
4040

4141
#:../../c-api/init_config.rst:19../../c-api/init_config.rst:650
4242
msgid""
4343
"The :c:func:`Py_RunMain` function can be used to write a customized Python "
4444
"program."
4545
msgstr""
46+
":c:func:`Py_RunMain` 関数は、カスタマイズされた Python プログラムを書くために"
47+
"使用できます。"
4648

4749
#:../../c-api/init_config.rst:22../../c-api/init_config.rst:653
4850
msgid""
@@ -53,7 +55,7 @@ msgstr ""
5355

5456
#:../../c-api/init_config.rst:25
5557
msgid":pep:`741`\"Python Configuration C API\"."
56-
msgstr""
58+
msgstr":pep:`741`\"Python Configuration C API\"."
5759

5860
#:../../c-api/init_config.rst:29../../c-api/init_config.rst:660
5961
msgid"Example"
@@ -64,6 +66,8 @@ msgid ""
6466
"Example of customized Python always running with the :ref:`Python "
6567
"Development Mode <devmode>` enabled; return ``-1`` on error:"
6668
msgstr""
69+
"常に :ref:`Python 開発モード <devmode>` が有効化された状態で実行されるカスタ"
70+
"マイズされた Python の例。エラー時は ``-1`` を返します:"
6771

6872
#:../../c-api/init_config.rst:34
6973
msgid""
@@ -101,14 +105,48 @@ msgid ""
101105
" }\n"
102106
"}"
103107
msgstr""
108+
"int init_python(void)\n"
109+
"{\n"
110+
" PyInitConfig *config = PyInitConfig_Create();\n"
111+
" if (config == NULL) {\n"
112+
" printf(\"PYTHON INIT ERROR: memory allocation failed\\n\");\n"
113+
" return -1;\n"
114+
" }\n"
115+
"\n"
116+
" // Python 開発モードを有効化\n"
117+
" if (PyInitConfig_SetInt(config,\"dev_mode\", 1) < 0) {\n"
118+
" goto error;\n"
119+
" }\n"
120+
"\n"
121+
" // Python を設定付きで初期化\n"
122+
" if (Py_InitializeFromInitConfig(config) < 0) {\n"
123+
" goto error;\n"
124+
" }\n"
125+
" PyInitConfig_Free(config);\n"
126+
" return 0;\n"
127+
"\n"
128+
"error:\n"
129+
" {\n"
130+
" // エラーメッセージを表示する。\n"
131+
" //\n"
132+
" // この稀な括弧スタイルは、変数宣言を指す goto ターゲットを\n"
133+
" // 作ることができないために使用されています。\n"
134+
"\n"
135+
" const char *err_msg;\n"
136+
" (void)PyInitConfig_GetError(config, &err_msg);\n"
137+
" printf(\"PYTHON INIT ERROR: %s\\n\", err_msg);\n"
138+
" PyInitConfig_Free(config);\n"
139+
" return -1;\n"
140+
" }\n"
141+
"}"
104142

105143
#:../../c-api/init_config.rst:71
106144
msgid"Create Config"
107-
msgstr""
145+
msgstr"設定の作成"
108146

109147
#:../../c-api/init_config.rst:75
110148
msgid"Opaque structure to configure the Python initialization."
111-
msgstr""
149+
msgstr"Python の初期化を構成するための不透明な構造体です。"
112150

113151
#:../../c-api/init_config.rst:80
114152
msgid""

‎c-api/intro.po‎

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,12 @@ msgstr ""
8484

8585
#:../../c-api/intro.rst:34
8686
msgid"Language version compatibility"
87-
msgstr""
87+
msgstr"言語バージョン互換性"
8888

8989
#:../../c-api/intro.rst:36
9090
msgid"Python's C API is compatible with C11 and C++11 versions of C and C++."
9191
msgstr""
92+
"Pythonの C API は C11 や C++11 バージョンの C と C++ に互換性があります。"
9293

9394
#:../../c-api/intro.rst:38
9495
msgid""
@@ -132,6 +133,8 @@ msgid ""
132133
"#define PY_SSIZE_T_CLEAN\n"
133134
"#include <Python.h>"
134135
msgstr""
136+
"#define PY_SSIZE_T_CLEAN\n"
137+
"#include <Python.h>"
135138

136139
#:../../c-api/intro.rst:64
137140
msgid""
@@ -317,7 +320,7 @@ msgstr ""
317320

318321
#:../../c-api/intro.rst:166
319322
msgid"static inline Py_ALWAYS_INLINE int random(void) { return 4; }"
320-
msgstr""
323+
msgstr"static inline Py_ALWAYS_INLINE int random(void) { return 4; }"
321324

322325
#:../../c-api/intro.rst:172
323326
msgid""
@@ -333,6 +336,8 @@ msgid ""
333336
"Use this for deprecated declarations. The macro must be placed before the "
334337
"symbol name."
335338
msgstr""
339+
"非推奨な宣言に使用してください。このマクロはシンボル名の前に置かれなければな"
340+
"りません。"
336341

337342
#:../../c-api/intro.rst:180../../c-api/intro.rst:266
338343
#:../../c-api/intro.rst:284
@@ -341,7 +346,7 @@ msgstr "以下はプログラム例です::"
341346

342347
#:../../c-api/intro.rst:182
343348
msgid"Py_DEPRECATED(3.8) PyAPI_FUNC(int) Py_OldFunction(void);"
344-
msgstr""
349+
msgstr"Py_DEPRECATED(3.8) PyAPI_FUNC(int) Py_OldFunction(void);"
345350

346351
#:../../c-api/intro.rst:184
347352
msgid"MSVC support was added."
@@ -352,6 +357,8 @@ msgid ""
352357
"Like ``getenv(s)``, but returns ``NULL`` if :option:`-E` was passed on the "
353358
"command line (see :c:member:`PyConfig.use_environment`)."
354359
msgstr""
360+
"``getenv(s)`` に似ていますが、コマンドラインで :option:`-E` が渡された場合は "
361+
"(:c:member:`PyConfig.use_environment` を参照) ``NULL`` を返します。"
355362

356363
#:../../c-api/intro.rst:194
357364
msgid"Return the maximum value between ``x`` and ``y``."
@@ -378,7 +385,7 @@ msgstr "使い方::"
378385

379386
#:../../c-api/intro.rst:218
380387
msgid"Py_NO_INLINE static int random(void) { return 4; }"
381-
msgstr""
388+
msgstr"Py_NO_INLINE static int random(void) { return 4; }"
382389

383390
#:../../c-api/intro.rst:224
384391
msgid""
@@ -422,6 +429,8 @@ msgid ""
422429
"Use this for unused arguments in a function definition to silence compiler "
423430
"warnings. Example: ``int func(int a, int Py_UNUSED(b)) { return a; }``."
424431
msgstr""
432+
"コンパイラ警告を抑えるために関数定義の使用されない引数に使用してください。例"
433+
"えば: ``int func(int a, int Py_UNUSED(b)) { return a; }`` 。"
425434

426435
#:../../c-api/intro.rst:260
427436
msgid""
@@ -445,6 +454,13 @@ msgid ""
445454
" // ...\n"
446455
"}"
447456
msgstr""
457+
"PyDoc_STRVAR(pop_doc,\"Remove and return the rightmost element.\");\n"
458+
"\n"
459+
"static PyMethodDef deque_methods[] = {\n"
460+
" // ...\n"
461+
" {\"pop\", (PyCFunction)deque_pop, METH_NOARGS, pop_doc},\n"
462+
" // ...\n"
463+
"}"
448464

449465
#:../../c-api/intro.rst:278
450466
msgid""
@@ -466,6 +482,11 @@ msgid ""
466482
" {NULL, NULL}\n"
467483
"};"
468484
msgstr""
485+
"static PyMethodDef pysqlite_row_methods[] = {\n"
486+
" {\"keys\", (PyCFunction)pysqlite_row_keys, METH_NOARGS,\n"
487+
" PyDoc_STR(\"Returns the keys of the row.\")},\n"
488+
" {NULL, NULL}\n"
489+
"};"
469490

470491
#:../../c-api/intro.rst:296
471492
msgid"Objects, Types and Reference Counts"
@@ -710,6 +731,10 @@ msgid ""
710731
"tuple = Py_BuildValue(\"(iis)\", 1, 2,\"three\");\n"
711732
"list = Py_BuildValue(\"[iis]\", 1, 2,\"three\");"
712733
msgstr""
734+
"PyObject *tuple, *list;\n"
735+
"\n"
736+
"tuple = Py_BuildValue(\"(iis)\", 1, 2,\"three\");\n"
737+
"list = Py_BuildValue(\"[iis]\", 1, 2,\"three\");"
713738

714739
#:../../c-api/intro.rst:456
715740
msgid""

‎extending/extending.po‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ msgid ""
131131
"#define PY_SSIZE_T_CLEAN\n"
132132
"#include <Python.h>"
133133
msgstr""
134+
"#define PY_SSIZE_T_CLEAN\n"
135+
"#include <Python.h>"
134136

135137
#:../../extending/extending.rst:63
136138
msgid""

‎using/ios.po‎

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ msgid ""
7272
msgstr""
7373
"このため、 Python を iOS 上で使うただ一つの方法は、埋め込みモード、つまり、ネ"
7474
"イティブ iOS アプリケーションを書き、 ``libPython`` を使用して Python イン"
75-
"タープリターを埋め込み、そして :ref:`Python 埋め込み API <embedding>`を使用"
76-
"して Python コードを呼び出すことです。 それにより、完全な Python インタープリ"
77-
"ター、標準ライブラリ、 及び Python のコードが、 iOS App Storeを経由して配布"
78-
"可能なスタンドアローンなバンドルとしてパッケージ化されます。"
75+
"タープリタを埋め込み、そして :ref:`Python 埋め込み API <embedding>`を使用し"
76+
" Python コードを呼び出すことです。 それにより、完全な Python インタープリ"
77+
"、標準ライブラリ、 及び Python のコードが、 iOS App Storeを経由して配布可"
78+
"能なスタンドアローンなバンドルとしてパッケージ化されます。"
7979

8080
#:../../using/ios.rst:27
8181
msgid""
@@ -138,12 +138,18 @@ msgid ""
138138
"obtained using :func:`platform.ios_ver`. :func:`platform.system` will report "
139139
"``iOS`` or ``iPadOS``, depending on the device."
140140
msgstr""
141+
"iOS バージョンやデバイスのモデル、デバイスがシミュレーターであるかどうかを含"
142+
"めた、特定のランタイム環境についての情報は、 :func:`platform.ios_ver` を使用"
143+
"して取得できます。 :func:`platform.system` は、デバイスにより ``iOS`` または "
144+
"``iPadOS`` を報告します。"
141145

142146
#:../../using/ios.rst:59
143147
msgid""
144148
":func:`os.uname` reports kernel-level details; it will report a name of "
145149
"``Darwin``."
146150
msgstr""
151+
":func:`os.uname` は、カーネルレベルの詳細を報告します。これは ``Darwin`` の名"
152+
"前を報告します。"
147153

148154
#:../../using/ios.rst:63
149155
msgid"Standard library availability"
@@ -155,6 +161,9 @@ msgid ""
155161
"iOS. See the :ref:`API availability guide for iOS <mobile-availability>` for "
156162
"details."
157163
msgstr""
164+
"Python の 標準ライブラリには、 iOS におけるいくつかの重要な省略や制限がありま"
165+
"す。詳細は :ref:`iOS 向けの API 利用可能性ガイド <mobile-availability>` を参"
166+
"照してください。"
158167

159168
#:../../using/ios.rst:70
160169
msgid"Binary extension modules"
@@ -256,8 +265,8 @@ msgid ""
256265
"class:`~importlib.machinery.ModuleSpec` for the loaded module will report "
257266
"the ``origin`` as the location of the binary in the framework folder."
258267
msgstr""
259-
"iOS 上で実行している場合、 Pythonインタープリターは ``.fwork``ファイルを読"
260-
"み込んでインポートすることができる :class:`~importlib.machinery."
268+
"iOS 上で実行している場合、 Pythonインタープリタは ``.fwork``ファイルを読み"
269+
"込んでインポートすることができる :class:`~importlib.machinery."
261270
"AppleFrameworkLoader` をインストールします。インポートされると、バイナリモ"
262271
"ジュールの ``__file__`` 属性は ``.fwork`` ファイルの場所を返します。一方、読"
263272
"み込まれたモジュールの :class:`~importlib.machinery.ModuleSpec` はフレーム"
@@ -274,18 +283,18 @@ msgid ""
274283
"iphoneos clang`` to get the ``clang`` for an iPhone device). However, using "
275284
"this script poses two problems:"
276285
msgstr""
277-
"Xcode は、 iOS用の明示的なコンパイラーを提供していません。代わりに、完全なコ"
278-
"ンパイラーのパスを解決する ``xcrun`` スクリプトを使用します (たとえば "
279-
"``xcrun --sdk iphoneos clang`` は iPhone デバイス用の ``clang``を取得しま"
280-
"す) 。しかし、これは2つの問題を引き起こします: "
286+
"Xcode は、 iOS用の明示的なコンパイラを提供していません。代わりに、完全なコン"
287+
"パイラのパスを解決する ``xcrun`` スクリプトを使用します (たとえば``xcrun --"
288+
"sdk iphoneos clang`` は iPhone デバイス用の ``clang``を取得します) 。しか"
289+
"、これは2つの問題を引き起こします: "
281290

282291
#:../../using/ios.rst:125
283292
msgid""
284293
"The output of ``xcrun`` includes paths that are machine specific, resulting "
285294
"in a sysconfig module that cannot be shared between users; and"
286295
msgstr""
287296
"``xcrun`` の出力はマシン固有のパスを含み、ユーザー間で共有できない sysconfig "
288-
"モジュールとなります。"
297+
"モジュールにつながり、"
289298

290299
#:../../using/ios.rst:128
291300
msgid""
@@ -296,8 +305,8 @@ msgid ""
296305
msgstr""
297306
"これにより、 ``CC``/``CPP``/``LD``/``AR`` 定義にスペースが含まれることになり"
298307
"ます。多くの C エコシステムツールが、最初のスペースでコマンドラインを分割し、"
299-
"コンパイラー実行ファイルを取得できることを前提としています。しかし、 "
300-
"``xcrun``を使用する場合はそうではありません。"
308+
"コンパイラ実行ファイルを取得できることを前提としています。しかし、 ``xcrun`` "
309+
"を使用する場合はそうではありません。"
301310

302311
#:../../using/ios.rst:133
303312
msgid""
@@ -606,26 +615,34 @@ msgstr ""
606615
#:../../using/ios.rst:295
607616
msgid"UTF-8 mode (:c:member:`PyPreConfig.utf8_mode`) is *enabled*;"
608617
msgstr""
609-
"UTF-8 モード (:c:member:`PyPreConfig.utf8_mode`)が有効になっていること"
618+
"UTF-8 モード (:c:member:`PyPreConfig.utf8_mode`)が *有効* になっていること"
610619

611620
#:../../using/ios.rst:296
612621
msgid"Buffered stdio (:c:member:`PyConfig.buffered_stdio`) is *disabled*;"
613622
msgstr""
623+
"Buffered stdio (:c:member:`PyConfig.buffered_stdio`) が *無効* になっているこ"
624+
"と"
614625

615626
#:../../using/ios.rst:297
616627
msgid"Writing bytecode (:c:member:`PyConfig.write_bytecode`) is *disabled*;"
617628
msgstr""
629+
"バイトコードの書き込み (:c:member:`PyConfig.write_bytecode`) が *無効* になっ"
630+
"ていること"
618631

619632
#:../../using/ios.rst:298
620633
msgid""
621634
"Signal handlers (:c:member:`PyConfig.install_signal_handlers`) are *enabled*;"
622635
msgstr""
636+
"シグナルハンドラ (:c:member:`PyConfig.install_signal_handlers`) が *有効* に"
637+
"なっていること"
623638

624639
#:../../using/ios.rst:299
625640
msgid""
626641
"System logging (:c:member:`PyConfig.use_system_logger`) is *enabled* "
627642
"(optional, but strongly recommended; this is enabled by default);"
628643
msgstr""
644+
"システムログ (:c:member:`PyConfig.use_system_logger`) が *有効* になっている"
645+
"こと (オプションですが、強く推奨され、デフォルトで有効化されています)"
629646

630647
#:../../using/ios.rst:301
631648
msgid""

‎whatsnew/3.8.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,7 @@ msgstr ""
33933393

33943394
#:../../whatsnew/3.8.rst:2109
33953395
msgid"Py_DEPRECATED(3.8) PyAPI_FUNC(int) Py_OldFunction(void);"
3396-
msgstr""
3396+
msgstr"Py_DEPRECATED(3.8) PyAPI_FUNC(int) Py_OldFunction(void);"
33973397

33983398
#:../../whatsnew/3.8.rst:2113
33993399
msgid"(Contributed by Zackery Spytz in :issue:`33407`.)"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp