FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update translations from Transifex · python/python-docs-ja@ccc5437 · GitHub

Repository navigation

Commit ccc5437

Browse files
github-actions
committed
Update translations from Transifex
1 parent dba84ec commit ccc5437

22 files changed

Lines changed: 1507 additions & 882 deletions

‎c-api/extension-modules.po‎

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.15\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2026-10-03 17:41+0000\n"
15+
"POT-Creation-Date: 2026-10-21 18:18+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1717
"Last-Translator: python-doc bot, 2026\n"
1818
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -457,21 +457,40 @@ msgid ""
457457
"initialization>` in the following ways:"
458458
msgstr ""
459459

460-
#: ../../c-api/extension-modules.rst:316
461-
msgid "Single-phase modules are, or rather *contain*, “singletons”."
460+
msgid ""
461+
"Single-phase modules with :c:member:`PyModuleDef.m_size` set to -1 are, or "
462+
"rather *contain*, “singletons”."
462463
msgstr ""
463464

464-
#: ../../c-api/extension-modules.rst:318
465465
msgid ""
466-
"When the module is first initialized, Python saves the contents of the "
466+
"When such a module is first initialized, Python saves the contents of the "
467467
"module's ``__dict__`` (that is, typically, the module's functions and types)."
468468
msgstr ""
469469

470-
#: ../../c-api/extension-modules.rst:322
471470
msgid ""
472471
"For subsequent imports, Python does not call the initialization function "
473472
"again. Instead, it creates a new module object with a new ``__dict__``, and "
474-
"copies the saved contents to it. For example, given a single-phase module "
473+
"copies the saved contents to it. Modules are matched to the saved contents "
474+
"by a (*module_name*, *file_name*) tuple where:"
475+
msgstr ""
476+
477+
msgid ""
478+
"*module_name* is the module's full dotted name, taken from :py:attr:"
479+
"`ModuleSpec.name <importlib.machinery.ModuleSpec.name>` (or the equivalent "
480+
"argument of the importing function). Note that names that the initialization "
481+
"function uses to create the module (for example, :c:member:`PyModuleDef."
482+
"m_name`) are not taken into account."
483+
msgstr ""
484+
485+
msgid ""
486+
"*file_name* is the extension's file name. It is unset for modules not loaded "
487+
"from a file, such as built-ins and modules added with :c:func:"
488+
"`PyImport_CreateModuleFromInitfunc` or :c:func:`PyImport_AppendInittab`."
489+
msgstr ""
490+
491+
msgid ""
492+
"As part of the first initialization, Python also adds the module to :data:"
493+
"`sys.modules` under its name. For example, given a single-phase module "
475494
"``_testsinglephase`` [#testsinglephase]_ that defines a function ``sum`` and "
476495
"an exception class ``error``:"
477496
msgstr ""
@@ -497,6 +516,23 @@ msgid ""
497516
"The exact behavior should be considered a CPython implementation detail."
498517
msgstr ""
499518

519+
msgid ""
520+
"For single-phase modules with non-negative :c:member:`PyModuleDef.m_size`, "
521+
"Python may cache a pointer to the initialization function under the "
522+
"(*module_name*, *file_name*) key as for ``m_size == -1``."
523+
msgstr ""
524+
525+
msgid ""
526+
"Subsequent imports that specify a different initialization function (for "
527+
"example, using :c:func:`PyImport_CreateModuleFromInitfunc`) may call either "
528+
"the cached function or the provided \"new\" one."
529+
msgstr ""
530+
531+
msgid ""
532+
"The exact behavior should again be considered a CPython implementation "
533+
"detail."
534+
msgstr ""
535+
500536
#: ../../c-api/extension-modules.rst:347
501537
msgid ""
502538
"To work around the fact that ``PyInit_modulename`` does not take a *spec* "

‎c-api/file.po‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-10-01 19:07+0000\n"
14+
"POT-Creation-Date: 2026-10-21 18:18+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -114,6 +114,31 @@ msgstr ""
114114
"ます。 *n* が ``0`` より小さければ、長さに関わらず 1 行だけを 読み出します"
115115
"が、すぐにファイルの終端に到達した場合には :exc:`EOFError` を送出します。"
116116

117+
msgid ""
118+
"Read a line from the C stream *stream* into the buffer *buf*, like the C "
119+
"standard library function :c:func:`!fgets`, but treating all of ``\\n``, "
120+
"``\\r`` and ``\\r\\n`` as line endings (see :term:`universal newlines`). Any "
121+
"``\\r`` or ``\\r\\n`` read from the stream is stored in *buf* as a single "
122+
"``\\n``."
123+
msgstr ""
124+
125+
msgid ""
126+
"At most ``n - 1`` characters are stored in *buf*; reading stops after a "
127+
"newline has been stored or when the end of the file is reached. The result "
128+
"is always null-terminated. *stream* should be opened in binary mode, so that "
129+
"the C library does not perform its own newline translation."
130+
msgstr ""
131+
132+
msgid ""
133+
"Return *buf* on success. Return ``NULL`` if no characters could be read, "
134+
"because *stream* is at end of file, a read error occurred, or *n* is less "
135+
"than 2. Like :c:func:`!fgets`, this function does not distinguish between "
136+
"end of file and a read error, and it does not set an exception."
137+
msgstr ""
138+
139+
msgid "*fobj* exists only for backward compatibility and must be ``NULL``."
140+
msgstr ""
141+
117142
#: ../../c-api/file.rst:65
118143
msgid ""
119144
"Overrides the normal behavior of :func:`io.open_code` to pass its parameter "

‎c-api/float.po‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-29 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-21 18:18+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -270,14 +270,13 @@ msgstr ""
270270
msgid "Pack functions"
271271
msgstr ""
272272

273-
#: ../../c-api/float.rst:214
274273
msgid ""
275274
"The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an :c:expr:"
276275
"`int` argument, non-zero if you want the bytes string in little-endian "
277276
"format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` and ``p+7``), zero if "
278-
"you want big-endian format (exponent first, at *p*). Use the :c:macro:`!"
279-
"PY_LITTLE_ENDIAN` constant to select the native endian: it is equal to ``0`` "
280-
"on big endian processor, or ``1`` on little endian processor."
277+
"you want big-endian format (exponent first, at *p*). Use the :c:macro:"
278+
"`PY_LITTLE_ENDIAN` constant to select the native endian: it is equal to "
279+
"``0`` on big endian processor, or ``1`` on little endian processor."
281280
msgstr ""
282281

283282
#: ../../c-api/float.rst:221
@@ -302,12 +301,11 @@ msgstr ""
302301
msgid "Unpack functions"
303302
msgstr ""
304303

305-
#: ../../c-api/float.rst:240
306304
msgid ""
307305
"The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an :c:"
308306
"expr:`int` argument, non-zero if the bytes string is in little-endian format "
309307
"(exponent last, at ``p+1``, ``p+3`` or ``p+6`` and ``p+7``), zero if big-"
310-
"endian (exponent first, at *p*). Use the :c:macro:`!PY_LITTLE_ENDIAN` "
308+
"endian (exponent first, at *p*). Use the :c:macro:`PY_LITTLE_ENDIAN` "
311309
"constant to select the native endian: it is equal to ``0`` on big endian "
312310
"processor, or ``1`` on little endian processor."
313311
msgstr ""

‎c-api/import.po‎

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-10-15 17:56+0000\n"
14+
"POT-Creation-Date: 2026-10-21 18:18+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -347,26 +347,20 @@ msgstr ""
347347
"エンコードされた文字列の代わりに、 Unicode オブジェクトを使用する点が異なりま"
348348
"す。"
349349

350-
#: ../../c-api/import.rst:257
351350
msgid ""
352351
"This is the structure type definition for frozen module descriptors, as "
353352
"generated by the :program:`freeze` utility (see :file:`Tools/freeze/` in the "
354353
"Python source distribution). Its definition, found in :file:`Include/import."
355-
"h`, is::"
354+
"h`, is:"
356355
msgstr ""
357-
":program:`freeze` ユーティリティが生成するようなフリーズ化モジュールデスクリ"
358-
"プタの構造体型定義です。 (Python ソース配布物の :file:`Tools/freeze/` を参照"
359-
"してください) この構造体の定義は :file:`Include/import.h` にあり、以下のよう"
360-
"になっています::"
361356

362-
#: ../../c-api/import.rst:262
363357
msgid ""
364358
"struct _frozen {\n"
365-
" const char *name;\n"
359+
" const char *name; /* ASCII encoded string */\n"
366360
" const unsigned char *code;\n"
367361
" int size;\n"
368-
" bool is_package;\n"
369-
"};"
362+
" int is_package;\n"
363+
"};\n"
370364
msgstr ""
371365

372366
#: ../../c-api/import.rst:269
@@ -528,10 +522,9 @@ msgstr ""
528522
msgid "*spec* must be a :class:`~importlib.machinery.ModuleSpec` object."
529523
msgstr ""
530524

531-
#: ../../c-api/import.rst:411
532525
msgid ""
533-
"*initfunc* must be an :ref:`initialization function <extension-export-"
534-
"hook>`, the same as for :c:func:`PyImport_AppendInittab`."
526+
"*initfunc* must be an :ref:`initialization function <extension-pyinit>`, the "
527+
"same as for :c:func:`PyImport_AppendInittab`."
535528
msgstr ""
536529

537530
#: ../../c-api/import.rst:414
@@ -542,15 +535,40 @@ msgid ""
542535
"exec_module` method.)"
543536
msgstr ""
544537

545-
#: ../../c-api/import.rst:420
538+
#: ../../c-api/import.rst:424
539+
msgid "On error, return NULL with an exception set."
540+
msgstr ""
541+
546542
msgid ""
547-
"If the spec's name is dotted and *initfunc* creates the module using only "
548-
"the last component of the name, the module's :attr:`~module.__name__` is set "
549-
"to the full name from the spec."
543+
"For modules using :ref:`legacy single-phase initialization <single-phase-"
544+
"initialization>`, most of the import process is done in this function, "
545+
"rather than in extra steps that importers typically take after :py:meth:"
546+
"`~importlib.abc.Loader.create_module`. Specifically:"
550547
msgstr ""
551548

552-
#: ../../c-api/import.rst:424
553-
msgid "On error, return NULL with an exception set."
549+
msgid ""
550+
"The module is added to :data:`sys.modules` under the *spec*'s :py:attr:"
551+
"`~importlib.machinery.ModuleSpec.name` as part of initialization."
552+
msgstr ""
553+
554+
msgid ""
555+
"If a single-phase module was previously imported under the same :py:attr:"
556+
"`~importlib.machinery.ModuleSpec.name` by this function or as a built-in "
557+
"module (for example, one registered with :c:func:`PyImport_AppendInittab`), "
558+
"Python may reuse the previous module's contents instead of calling "
559+
"*initfunc* again."
560+
msgstr ""
561+
562+
msgid ""
563+
"The module will be fully initialized by *initfunc*. Calling :c:func:"
564+
"`PyModule_Exec` on it will have no effect, though it is still recommended, "
565+
"in case the module later switches to :ref:`multi-phase initialization <multi-"
566+
"phase-initialization>`."
567+
msgstr ""
568+
569+
msgid ""
570+
"Also, if the *spec*'s :py:attr:`!name` contains dots, this name is used for "
571+
"prepending a parent package to the new module's :attr:`~module.__name__`."
554572
msgstr ""
555573

556574
#: ../../c-api/import.rst:11

‎c-api/init_config.po‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.15\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2026-09-29 18:58+0000\n"
16+
"POT-Creation-Date: 2026-10-21 18:18+0000\n"
1717
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1818
"Last-Translator: Cheesecake, 2025\n"
1919
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -2212,6 +2212,11 @@ msgstr ""
22122212
msgid "See also the :c:member:`~PyConfig.filesystem_errors` member."
22132213
msgstr ""
22142214

2215+
msgid ""
2216+
"See also :c:func:`PyUnicode_EncodeFSDefault` and :ref:`related functions "
2217+
"<capi-filesystem-encoding>` for encoding paths at runtime."
2218+
msgstr ""
2219+
22152220
#: ../../c-api/init_config.rst:1435
22162221
msgid ""
22172222
":term:`Filesystem error handler <filesystem encoding and error handler>`: :"

‎c-api/interp-lifecycle.po‎

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
# Translators:
77
# b785ccb154ea7c5e4722f287fb17d327_f3b4082, 2026
88
# python-doc bot, 2026
9+
# Rafael Fontenelle <rffontenelle@gmail.com>, 2026
910
#
1011
#, fuzzy
1112
msgid ""
1213
msgstr ""
1314
"Project-Id-Version: Python 3.15\n"
1415
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2026-10-01 19:07+0000\n"
16+
"POT-Creation-Date: 2026-10-21 18:18+0000\n"
1617
"PO-Revision-Date: 2026-02-25 14:46+0000\n"
17-
"Last-Translator: python-doc bot, 2026\n"
18+
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2026\n"
1819
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
1920
"ja/)\n"
2021
"MIME-Version: 1.0\n"
@@ -821,6 +822,48 @@ msgid ""
821822
"first initialized)."
822823
msgstr ""
823824

825+
msgid ""
826+
"The main program for a \"frozen\" Python program (an executable that embeds "
827+
"the interpreter together with the bytecode of the program's modules, as "
828+
"produced by the :program:`freeze` utility; see :source:`Tools/freeze`)."
829+
msgstr ""
830+
831+
msgid ""
832+
"This function initializes the interpreter, imports the frozen module named "
833+
"``__main__``, and finalizes the interpreter. The frozen modules must have "
834+
"been registered in :c:var:`PyImport_FrozenModules` before calling this "
835+
"function; it is a fatal error if ``__main__`` is not among them."
836+
msgstr ""
837+
838+
msgid ""
839+
"*argc* and *argv* are byte strings like the arguments of a C program's "
840+
"``main`` function, and are passed to the interpreter with :c:func:"
841+
"`PyConfig_SetBytesArgv`. Unlike :c:func:`Py_Main`, the arguments are not "
842+
"parsed as Python command line options (:c:member:`PyConfig.parse_argv` is "
843+
"``0``), so all of them are made available to the program in :data:`sys."
844+
"argv`. Apart from that, the interpreter uses the :ref:`Python Configuration "
845+
"<init-python-config>`, so environment variables such as :envvar:`PYTHONPATH` "
846+
"are honored. Warnings about the path configuration (:c:member:`PyConfig."
847+
"pathconfig_warnings`) are suppressed. If :envvar:`PYTHONINSPECT` is set and "
848+
"standard input is a terminal, an interactive prompt is run after "
849+
"``__main__`` has finished, as with the :option:`-i` option."
850+
msgstr ""
851+
852+
msgid ""
853+
"Return ``0`` if ``__main__`` ran without an unhandled exception, ``1`` "
854+
"otherwise, and ``120`` if finalizing the interpreter failed (see :c:func:"
855+
"`Py_FinalizeEx`). An unhandled :exc:`SystemExit` terminates the process. If "
856+
"the interpreter cannot be initialized, the process exits via :c:func:"
857+
"`Py_ExitStatusException`."
858+
msgstr ""
859+
860+
msgid ""
861+
"On Windows, this function is not exported by the Python DLL. The :program:"
862+
"`freeze` utility compiles :file:`Python/frozenmain.c` into the frozen "
863+
"program instead, together with the Windows-specific hooks that the function "
864+
"requires."
865+
msgstr ""
866+
824867
#: ../../c-api/interp-lifecycle.rst:541
825868
msgid "Executes the main module in a fully configured CPython runtime."
826869
msgstr ""
@@ -1409,6 +1452,9 @@ msgstr "パス"
14091452
msgid "Py_FinalizeEx (C function)"
14101453
msgstr ""
14111454

1455+
msgid "freeze utility"
1456+
msgstr "凍結ユーティリティ"
1457+
14121458
#: ../../c-api/interp-lifecycle.rst:785
14131459
msgid "Py_Initialize()"
14141460
msgstr "Py_Initialize()"

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL