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

Commitfb1461a

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent1f45eeb commitfb1461a

File tree

301 files changed

+63087
-564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+63087
-564
lines changed

‎c-api/arg.po

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version:Python 3.13\n"
1616
"Report-Msgid-Bugs-To:\n"
17-
"POT-Creation-Date:2024-08-23 14:16+0000\n"
17+
"POT-Creation-Date:2024-08-31 10:59+0000\n"
1818
"PO-Revision-Date:2021-06-28 00:47+0000\n"
1919
"Last-Translator:石井明久, 2024\n"
2020
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -759,6 +759,10 @@ msgstr ""
759759
"expr:`void *` 型に変換したものです。 *converter* は以下のようにして呼び出され"
760760
"ます::"
761761

762+
#:../../c-api/arg.rst:316
763+
msgid"status = converter(object, address);"
764+
msgstr""
765+
762766
#:../../c-api/arg.rst:318
763767
msgid""
764768
"where *object* is the Python object to be converted and *address* is the :c:"
@@ -1020,6 +1024,20 @@ msgstr ""
10201024
msgid"Example::"
10211025
msgstr"以下はプログラム例です::"
10221026

1027+
#:../../c-api/arg.rst:467
1028+
msgid""
1029+
"// Function using METH_O calling convention\n"
1030+
"static PyObject*\n"
1031+
"my_function(PyObject *module, PyObject *arg)\n"
1032+
"{\n"
1033+
" int value;\n"
1034+
" if (!PyArg_Parse(arg,\"i:my_function\", &value)) {\n"
1035+
" return NULL;\n"
1036+
" }\n"
1037+
" // ... use value ...\n"
1038+
"}"
1039+
msgstr""
1040+
10231041
#:../../c-api/arg.rst:481
10241042
msgid""
10251043
"A simpler form of parameter retrieval which does not use a format string to "
@@ -1044,6 +1062,22 @@ msgid ""
10441062
"the :mod:`!_weakref` helper module for weak references::"
10451063
msgstr""
10461064

1065+
#:../../c-api/arg.rst:499
1066+
msgid""
1067+
"static PyObject *\n"
1068+
"weakref_ref(PyObject *self, PyObject *args)\n"
1069+
"{\n"
1070+
" PyObject *object;\n"
1071+
" PyObject *callback = NULL;\n"
1072+
" PyObject *result = NULL;\n"
1073+
"\n"
1074+
" if (PyArg_UnpackTuple(args,\"ref\", 1, 2, &object, &callback)) {\n"
1075+
" result = PyWeakref_NewRef(object, callback);\n"
1076+
" }\n"
1077+
" return result;\n"
1078+
"}"
1079+
msgstr""
1080+
10471081
#:../../c-api/arg.rst:512
10481082
msgid""
10491083
"The call to :c:func:`PyArg_UnpackTuple` in this example is entirely "
@@ -1052,6 +1086,10 @@ msgstr ""
10521086
"この例における :c:func:`PyArg_UnpackTuple` 呼び出しは、 :c:func:"
10531087
"`PyArg_ParseTuple` を使った以下の呼び出しと全く等価です::"
10541088

1089+
#:../../c-api/arg.rst:515
1090+
msgid"PyArg_ParseTuple(args,\"O|O:ref\", &object, &callback)"
1091+
msgstr""
1092+
10551093
#:../../c-api/arg.rst:519
10561094
msgid""
10571095
"The value to be inserted, if any, before :c:expr:`char * const *` in the "

‎c-api/buffer.po

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ msgid ""
1717
msgstr ""
1818
"Project-Id-Version:Python 3.13\n"
1919
"Report-Msgid-Bugs-To:\n"
20-
"POT-Creation-Date:2024-08-23 14:16+0000\n"
20+
"POT-Creation-Date:2024-08-31 10:59+0000\n"
2121
"PO-Revision-Date:2021-06-28 00:47+0000\n"
2222
"Last-Translator:石井明久, 2024\n"
2323
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -703,6 +703,13 @@ msgstr ""
703703
"そうでない場合は、利用者は次のように n 次元配列にアクセスしなければなりませ"
704704
"ん:"
705705

706+
#:../../c-api/buffer.rst:368
707+
msgid""
708+
"ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
709+
"strides[n-1];\n"
710+
"item = *((typeof(item) *)ptr);"
711+
msgstr""
712+
706713
#:../../c-api/buffer.rst:374
707714
msgid""
708715
"As noted above, :c:member:`~Py_buffer.buf` can point to any location within "
@@ -713,6 +720,35 @@ msgstr ""
713720
"すことが可能です。エクスポーターはこの関数を使用することによってバッファの妥"
714721
"当性を確認出来ます。"
715722

723+
#:../../c-api/buffer.rst:378
724+
msgid""
725+
"def verify_structure(memlen, itemsize, ndim, shape, strides, offset):\n"
726+
"\"\"\"Verify that the parameters represent a valid array within\n"
727+
" the bounds of the allocated memory:\n"
728+
" char *mem: start of the physical memory block\n"
729+
" memlen: length of the physical memory block\n"
730+
" offset: (char *)buf - mem\n"
731+
"\"\"\"\n"
732+
" if offset % itemsize:\n"
733+
" return False\n"
734+
" if offset < 0 or offset+itemsize > memlen:\n"
735+
" return False\n"
736+
" if any(v % itemsize for v in strides):\n"
737+
" return False\n"
738+
"\n"
739+
" if ndim <= 0:\n"
740+
" return ndim == 0 and not shape and not strides\n"
741+
" if 0 in shape:\n"
742+
" return True\n"
743+
"\n"
744+
" imin = sum(strides[j]*(shape[j]-1) for j in range(ndim)\n"
745+
" if strides[j] <= 0)\n"
746+
" imax = sum(strides[j]*(shape[j]-1) for j in range(ndim)\n"
747+
" if strides[j] > 0)\n"
748+
"\n"
749+
" return 0 <= offset+imin and offset+imax+itemsize <= memlen"
750+
msgstr""
751+
716752
#:../../c-api/buffer.rst:408
717753
msgid"PIL-style: shape, strides and suboffsets"
718754
msgstr"PIL スタイル: shape, strides, suboffsets"
@@ -744,6 +780,22 @@ msgstr ""
744780
"次の例は、 strides も suboffsets も ``NULL`` でない場合の、N 次元インデックス"
745781
"によって指されている N 次元配列内の要素へのポインタを返す関数です::"
746782

783+
#:../../c-api/buffer.rst:423
784+
msgid""
785+
"void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,\n"
786+
" Py_ssize_t *suboffsets, Py_ssize_t *indices) {\n"
787+
" char *pointer = (char*)buf;\n"
788+
" int i;\n"
789+
" for (i = 0; i < ndim; i++) {\n"
790+
" pointer += strides[i] * indices[i];\n"
791+
" if (suboffsets[i] >=0 ) {\n"
792+
" pointer = *((char**)pointer) + suboffsets[i];\n"
793+
" }\n"
794+
" }\n"
795+
" return (void*)pointer;\n"
796+
"}"
797+
msgstr""
798+
747799
#:../../c-api/buffer.rst:438
748800
msgid"Buffer-related functions"
749801
msgstr"バッファ関連の関数"

‎c-api/call.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ msgid ""
1616
msgstr ""
1717
"Project-Id-Version:Python 3.13\n"
1818
"Report-Msgid-Bugs-To:\n"
19-
"POT-Creation-Date:2024-08-09 16:36+0000\n"
19+
"POT-Creation-Date:2024-08-31 10:59+0000\n"
2020
"PO-Revision-Date:2021-06-28 00:47+0000\n"
2121
"Last-Translator:Taichi Haradaguchi, 2024\n"
2222
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -46,6 +46,11 @@ msgid ""
4646
"callable. The signature of the slot is::"
4747
msgstr""
4848

49+
#:../../c-api/call.rst:17
50+
msgid""
51+
"PyObject *tp_call(PyObject *callable, PyObject *args, PyObject *kwargs);"
52+
msgstr""
53+
4954
#:../../c-api/call.rst:19
5055
msgid""
5156
"A call is made using a tuple for the positional arguments and a dict for the "
@@ -214,6 +219,10 @@ msgid ""
214219
"Currently equivalent to::"
215220
msgstr""
216221

222+
#:../../c-api/call.rst:140
223+
msgid"(Py_ssize_t)(nargsf & ~PY_VECTORCALL_ARGUMENTS_OFFSET)"
224+
msgstr""
225+
217226
#:../../c-api/call.rst:142
218227
msgid""
219228
"However, the function ``PyVectorcall_NARGS`` should be used to allow for "

‎c-api/capsule.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
#qqfunc, 2024
7+
#石井明久, 2024
88
# Arihiro TAKASE, 2024
99
# tomo, 2024
1010
#
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version:Python 3.13\n"
1515
"Report-Msgid-Bugs-To:\n"
16-
"POT-Creation-Date:2024-08-09 16:36+0000\n"
16+
"POT-Creation-Date:2024-08-31 10:59+0000\n"
1717
"PO-Revision-Date:2021-06-28 00:47+0000\n"
1818
"Last-Translator:tomo, 2024\n"
1919
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -55,6 +55,10 @@ msgstr ""
5555
msgid"The type of a destructor callback for a capsule. Defined as::"
5656
msgstr"カプセルに対するデストラクタコールバック型. 次のように定義されます::"
5757

58+
#:../../c-api/capsule.rst:29
59+
msgid"typedef void (*PyCapsule_Destructor)(PyObject *);"
60+
msgstr""
61+
5862
#:../../c-api/capsule.rst:31
5963
msgid""
6064
"See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor "

‎c-api/complex.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version:Python 3.13\n"
1515
"Report-Msgid-Bugs-To:\n"
16-
"POT-Creation-Date:2024-08-23 14:16+0000\n"
16+
"POT-Creation-Date:2024-08-31 10:59+0000\n"
1717
"PO-Revision-Date:2021-06-28 00:48+0000\n"
1818
"Last-Translator:Taichi Haradaguchi, 2024\n"
1919
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -66,6 +66,14 @@ msgstr ""
6666
msgid"The structure is defined as::"
6767
msgstr""
6868

69+
#:../../c-api/complex.rst:35
70+
msgid""
71+
"typedef struct {\n"
72+
" double real;\n"
73+
" double imag;\n"
74+
"} Py_complex;"
75+
msgstr""
76+
6977
#:../../c-api/complex.rst:43
7078
msgid""
7179
"Return the sum of two complex numbers, using the C :c:type:`Py_complex` "

‎c-api/contextvars.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version:Python 3.13\n"
1414
"Report-Msgid-Bugs-To:\n"
15-
"POT-Creation-Date:2024-08-16 14:15+0000\n"
15+
"POT-Creation-Date:2024-08-31 10:59+0000\n"
1616
"PO-Revision-Date:2021-06-28 00:48+0000\n"
1717
"Last-Translator:yaakiyu, 2023\n"
1818
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -37,6 +37,15 @@ msgstr ""
3737
"`PyContext`, :c:type:`PyContextVar`, :c:type:`PyContextToken` の代わりに :c:"
3838
"type:`PyObject` ポインタを使うように **変更** されました。例えば::"
3939

40+
#:../../c-api/contextvars.rst:20
41+
msgid""
42+
"// in 3.7.0:\n"
43+
"PyContext *PyContext_New(void);\n"
44+
"\n"
45+
"// in 3.7.1+:\n"
46+
"PyObject *PyContext_New(void);"
47+
msgstr""
48+
4049
#:../../c-api/contextvars.rst:26
4150
msgid"See :issue:`34762` for more details."
4251
msgstr"詳細は :issue:`34762` を参照してください。"

‎c-api/dict.po

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version:Python 3.13\n"
1515
"Report-Msgid-Bugs-To:\n"
16-
"POT-Creation-Date:2024-08-23 14:16+0000\n"
16+
"POT-Creation-Date:2024-08-31 10:59+0000\n"
1717
"PO-Revision-Date:2021-06-28 00:48+0000\n"
1818
"Last-Translator:tomo, 2024\n"
1919
"Language-Team:Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -334,6 +334,17 @@ msgstr ""
334334
msgid"For example::"
335335
msgstr"例えば::"
336336

337+
#:../../c-api/dict.rst:263
338+
msgid""
339+
"PyObject *key, *value;\n"
340+
"Py_ssize_t pos = 0;\n"
341+
"\n"
342+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
343+
" /* do something interesting with the values... */\n"
344+
" ...\n"
345+
"}"
346+
msgstr""
347+
337348
#:../../c-api/dict.rst:271
338349
msgid""
339350
"The dictionary *p* should not be mutated during iteration. It is safe to "
@@ -344,13 +355,43 @@ msgstr ""
344355
"応する値を変更しても大丈夫になりましたが、キーの集合を変更しないことが前提で"
345356
"す。以下に例を示します::"
346357

358+
#:../../c-api/dict.rst:275
359+
msgid""
360+
"PyObject *key, *value;\n"
361+
"Py_ssize_t pos = 0;\n"
362+
"\n"
363+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
364+
" long i = PyLong_AsLong(value);\n"
365+
" if (i == -1 && PyErr_Occurred()) {\n"
366+
" return -1;\n"
367+
" }\n"
368+
" PyObject *o = PyLong_FromLong(i + 1);\n"
369+
" if (o == NULL)\n"
370+
" return -1;\n"
371+
" if (PyDict_SetItem(self->dict, key, o) < 0) {\n"
372+
" Py_DECREF(o);\n"
373+
" return -1;\n"
374+
" }\n"
375+
" Py_DECREF(o);\n"
376+
"}"
377+
msgstr""
378+
347379
#:../../c-api/dict.rst:293
348380
msgid""
349381
"The function is not thread-safe in the :term:`free-threaded <free "
350382
"threading>` build without external synchronization. You can use :c:macro:"
351383
"`Py_BEGIN_CRITICAL_SECTION` to lock the dictionary while iterating over it::"
352384
msgstr""
353385

386+
#:../../c-api/dict.rst:298
387+
msgid""
388+
"Py_BEGIN_CRITICAL_SECTION(self->dict);\n"
389+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
390+
" ...\n"
391+
"}\n"
392+
"Py_END_CRITICAL_SECTION();"
393+
msgstr""
394+
354395
#:../../c-api/dict.rst:307
355396
msgid""
356397
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
@@ -397,6 +438,14 @@ msgstr ""
397438
"は ``-1`` を返します。(戻り値以外は) 等価な Python コードを書くと、以下のよう"
398439
"になります::"
399440

441+
#:../../c-api/dict.rst:333
442+
msgid""
443+
"def PyDict_MergeFromSeq2(a, seq2, override):\n"
444+
" for key, value in seq2:\n"
445+
" if override or key not in a:\n"
446+
" a[key] = value"
447+
msgstr""
448+
400449
#:../../c-api/dict.rst:340
401450
msgid""
402451
"Register *callback* as a dictionary watcher. Return a non-negative integer "

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp