Skip to content

Commit 1d0c41f

Browse files
author
github-actions
committed
Update translations from Transifex
1 parent dd5a0ad commit 1d0c41f

Some content is hidden

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

51 files changed

+5382
-6309
lines changed

c-api/exceptions.po

+306-315
Large diffs are not rendered by default.

c-api/function.po

+40-41
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# Arihiro TAKASE, 2023
87
# tomo, 2023
98
#
109
#, fuzzy
1110
msgid ""
1211
msgstr ""
1312
"Project-Id-Version: Python 3.12\n"
1413
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
14+
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
1615
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1716
"Last-Translator: tomo, 2023\n"
1817
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -65,82 +64,82 @@ msgstr ""
6564

6665
#: ../../c-api/function.rst:37
6766
msgid ""
68-
"The function's docstring and name are retrieved from the code object. "
69-
"*__module__* is retrieved from *globals*. The argument defaults, annotations "
70-
"and closure are set to ``NULL``. *__qualname__* is set to the same value as "
71-
"the code object's :attr:`~codeobject.co_qualname` field."
67+
"The function's docstring and name are retrieved from the code object. :attr:"
68+
"`~function.__module__` is retrieved from *globals*. The argument defaults, "
69+
"annotations and closure are set to ``NULL``. :attr:`~function.__qualname__` "
70+
"is set to the same value as the code object's :attr:`~codeobject."
71+
"co_qualname` field."
7272
msgstr ""
7373

74-
#: ../../c-api/function.rst:45
74+
#: ../../c-api/function.rst:46
7575
msgid ""
76-
"As :c:func:`PyFunction_New`, but also allows setting the function object's "
77-
"``__qualname__`` attribute. *qualname* should be a unicode object or "
78-
"``NULL``; if ``NULL``, the ``__qualname__`` attribute is set to the same "
79-
"value as the code object's :attr:`~codeobject.co_qualname` field."
76+
"As :c:func:`PyFunction_New`, but also allows setting the function object's :"
77+
"attr:`~function.__qualname__` attribute. *qualname* should be a unicode "
78+
"object or ``NULL``; if ``NULL``, the :attr:`!__qualname__` attribute is set "
79+
"to the same value as the code object's :attr:`~codeobject.co_qualname` field."
8080
msgstr ""
8181

82-
#: ../../c-api/function.rst:55
82+
#: ../../c-api/function.rst:57
8383
msgid "Return the code object associated with the function object *op*."
8484
msgstr "関数オブジェクト *op* に関連付けられたコードオブジェクトを返します。"
8585

86-
#: ../../c-api/function.rst:60
86+
#: ../../c-api/function.rst:62
8787
msgid "Return the globals dictionary associated with the function object *op*."
8888
msgstr "関数オブジェクト *op* に関連付けられたglobals辞書を返します。"
8989

90-
#: ../../c-api/function.rst:65
90+
#: ../../c-api/function.rst:67
9191
msgid ""
92-
"Return a :term:`borrowed reference` to the *__module__* attribute of the "
93-
"function object *op*. It can be *NULL*."
92+
"Return a :term:`borrowed reference` to the :attr:`~function.__module__` "
93+
"attribute of the :ref:`function object <user-defined-funcs>` *op*. It can be "
94+
"*NULL*."
9495
msgstr ""
9596

96-
#: ../../c-api/function.rst:68
97+
#: ../../c-api/function.rst:71
9798
msgid ""
98-
"This is normally a string containing the module name, but can be set to any "
99-
"other object by Python code."
99+
"This is normally a :class:`string <str>` containing the module name, but can "
100+
"be set to any other object by Python code."
100101
msgstr ""
101-
"これには普通はモジュール名の文字列が入っていますが、Python コードから他のオブ"
102-
"ジェクトをセットされることもあります。"
103102

104-
#: ../../c-api/function.rst:74
103+
#: ../../c-api/function.rst:77
105104
msgid ""
106105
"Return the argument default values of the function object *op*. This can be "
107106
"a tuple of arguments or ``NULL``."
108107
msgstr ""
109108
"関数オブジェクト *op* の引数のデフォルト値を返します。\n"
110109
"引数のタプルか ``NULL`` になります。"
111110

112-
#: ../../c-api/function.rst:80
111+
#: ../../c-api/function.rst:83
113112
msgid ""
114113
"Set the argument default values for the function object *op*. *defaults* "
115114
"must be ``Py_None`` or a tuple."
116115
msgstr ""
117116
"関数オブジェクト *op* の引数のデフォルト値を設定します。\n"
118117
"*defaults* は ``Py_None`` かタプルでなければいけません。"
119118

120-
#: ../../c-api/function.rst:83 ../../c-api/function.rst:106
121-
#: ../../c-api/function.rst:120
119+
#: ../../c-api/function.rst:86 ../../c-api/function.rst:109
120+
#: ../../c-api/function.rst:123
122121
msgid "Raises :exc:`SystemError` and returns ``-1`` on failure."
123122
msgstr "失敗した時は、 :exc:`SystemError` を発生させ、 ``-1`` を返します。"
124123

125-
#: ../../c-api/function.rst:88
124+
#: ../../c-api/function.rst:91
126125
msgid "Set the vectorcall field of a given function object *func*."
127126
msgstr ""
128127

129-
#: ../../c-api/function.rst:90
128+
#: ../../c-api/function.rst:93
130129
msgid ""
131130
"Warning: extensions using this API must preserve the behavior of the "
132131
"unaltered (default) vectorcall function!"
133132
msgstr ""
134133

135-
#: ../../c-api/function.rst:97
134+
#: ../../c-api/function.rst:100
136135
msgid ""
137136
"Return the closure associated with the function object *op*. This can be "
138137
"``NULL`` or a tuple of cell objects."
139138
msgstr ""
140139
"関数オブジェクト *op* に設定されたクロージャを返します。\n"
141140
"``NULL`` か cell オブジェクトのタプルです。"
142141

143-
#: ../../c-api/function.rst:103
142+
#: ../../c-api/function.rst:106
144143
msgid ""
145144
"Set the closure associated with the function object *op*. *closure* must be "
146145
"``Py_None`` or a tuple of cell objects."
@@ -149,65 +148,65 @@ msgstr ""
149148
"*closure* は、``Py_None`` もしくは cell オブジェクトのタプルでなければなりま"
150149
"せん。"
151150

152-
#: ../../c-api/function.rst:111
151+
#: ../../c-api/function.rst:114
153152
msgid ""
154153
"Return the annotations of the function object *op*. This can be a mutable "
155154
"dictionary or ``NULL``."
156155
msgstr ""
157156
"関数オブジェクト *op* のアノテーションを返します。\n"
158157
"返り値は修正可能な辞書か ``NULL`` になります。"
159158

160-
#: ../../c-api/function.rst:117
159+
#: ../../c-api/function.rst:120
161160
msgid ""
162161
"Set the annotations for the function object *op*. *annotations* must be a "
163162
"dictionary or ``Py_None``."
164163
msgstr ""
165164
"関数オブジェクト *op* のアノテーションを設定します。\n"
166165
"*annotations* は辞書か、``Py_None`` でなければなりません。"
167166

168-
#: ../../c-api/function.rst:125
167+
#: ../../c-api/function.rst:128
169168
msgid ""
170169
"Register *callback* as a function watcher for the current interpreter. "
171170
"Return an ID which may be passed to :c:func:`PyFunction_ClearWatcher`. In "
172171
"case of error (e.g. no more watcher IDs available), return ``-1`` and set an "
173172
"exception."
174173
msgstr ""
175174

176-
#: ../../c-api/function.rst:135
175+
#: ../../c-api/function.rst:138
177176
msgid ""
178177
"Clear watcher identified by *watcher_id* previously returned from :c:func:"
179178
"`PyFunction_AddWatcher` for the current interpreter. Return ``0`` on "
180179
"success, or ``-1`` and set an exception on error (e.g. if the given "
181180
"*watcher_id* was never registered.)"
182181
msgstr ""
183182

184-
#: ../../c-api/function.rst:145
183+
#: ../../c-api/function.rst:148
185184
msgid ""
186185
"Enumeration of possible function watcher events: - "
187186
"``PyFunction_EVENT_CREATE`` - ``PyFunction_EVENT_DESTROY`` - "
188187
"``PyFunction_EVENT_MODIFY_CODE`` - ``PyFunction_EVENT_MODIFY_DEFAULTS`` - "
189188
"``PyFunction_EVENT_MODIFY_KWDEFAULTS``"
190189
msgstr ""
191190

192-
#: ../../c-api/function.rst:157
191+
#: ../../c-api/function.rst:160
193192
msgid "Type of a function watcher callback function."
194193
msgstr ""
195194

196-
#: ../../c-api/function.rst:159
195+
#: ../../c-api/function.rst:162
197196
msgid ""
198197
"If *event* is ``PyFunction_EVENT_CREATE`` or ``PyFunction_EVENT_DESTROY`` "
199198
"then *new_value* will be ``NULL``. Otherwise, *new_value* will hold a :term:"
200199
"`borrowed reference` to the new value that is about to be stored in *func* "
201200
"for the attribute that is being modified."
202201
msgstr ""
203202

204-
#: ../../c-api/function.rst:164
203+
#: ../../c-api/function.rst:167
205204
msgid ""
206205
"The callback may inspect but must not modify *func*; doing so could have "
207206
"unpredictable effects, including infinite recursion."
208207
msgstr ""
209208

210-
#: ../../c-api/function.rst:167
209+
#: ../../c-api/function.rst:170
211210
msgid ""
212211
"If *event* is ``PyFunction_EVENT_CREATE``, then the callback is invoked "
213212
"after `func` has been fully initialized. Otherwise, the callback is invoked "
@@ -219,22 +218,22 @@ msgid ""
219218
"semantics of the Python code being executed."
220219
msgstr ""
221220

222-
#: ../../c-api/function.rst:176
221+
#: ../../c-api/function.rst:179
223222
msgid ""
224223
"If *event* is ``PyFunction_EVENT_DESTROY``, Taking a reference in the "
225224
"callback to the about-to-be-destroyed function will resurrect it, preventing "
226225
"it from being freed at this time. When the resurrected object is destroyed "
227226
"later, any watcher callbacks active at that time will be called again."
228227
msgstr ""
229228

230-
#: ../../c-api/function.rst:181
229+
#: ../../c-api/function.rst:184
231230
msgid ""
232231
"If the callback sets an exception, it must return ``-1``; this exception "
233232
"will be printed as an unraisable exception using :c:func:"
234233
"`PyErr_WriteUnraisable`. Otherwise it should return ``0``."
235234
msgstr ""
236235

237-
#: ../../c-api/function.rst:185
236+
#: ../../c-api/function.rst:188
238237
msgid ""
239238
"There may already be a pending exception set on entry to the callback. In "
240239
"this case, the callback should return ``0`` with the same exception still "

c-api/structures.po

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.12\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2023-12-08 14:14+0000\n"
18+
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
1919
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
2020
"Last-Translator: tomo, 2023\n"
2121
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -478,13 +478,13 @@ msgstr ""
478478

479479
#: ../../c-api/structures.rst:424
480480
msgid ""
481-
"The offset in bytes that the member is located on the type’s object struct."
481+
"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the "
482+
"possible values."
482483
msgstr ""
483484

484-
#: ../../c-api/structures.rst:428
485+
#: ../../c-api/structures.rst:429
485486
msgid ""
486-
"The type of the member in the C struct. See :ref:`PyMemberDef-types` for the "
487-
"possible values."
487+
"The offset in bytes that the member is located on the type’s object struct."
488488
msgstr ""
489489

490490
#: ../../c-api/structures.rst:433

howto/annotations.po

+19-19
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-11-24 14:13+0000\n"
14+
"POT-Creation-Date: 2023-12-15 14:14+0000\n"
1515
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
1616
"Last-Translator: tomo, 2021\n"
1717
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -217,11 +217,11 @@ msgstr ""
217217

218218
#: ../../howto/annotations.rst:155
219219
msgid ""
220-
"If ``o`` is a callable (but not a class), use ``o.__globals__`` as the "
221-
"globals when calling :func:`eval`."
220+
"If ``o`` is a callable (but not a class), use :attr:`o.__globals__ <function."
221+
"__globals__>` as the globals when calling :func:`eval`."
222222
msgstr ""
223223

224-
#: ../../howto/annotations.rst:158
224+
#: ../../howto/annotations.rst:159
225225
msgid ""
226226
"However, not all string values used as annotations can be successfully "
227227
"turned into Python values by :func:`eval`. String values could theoretically "
@@ -230,63 +230,63 @@ msgid ""
230230
"be evaluated. For example:"
231231
msgstr ""
232232

233-
#: ../../howto/annotations.rst:165
233+
#: ../../howto/annotations.rst:166
234234
msgid ""
235235
":pep:`604` union types using ``|``, before support for this was added to "
236236
"Python 3.10."
237237
msgstr ""
238238

239-
#: ../../howto/annotations.rst:167
239+
#: ../../howto/annotations.rst:168
240240
msgid ""
241241
"Definitions that aren't needed at runtime, only imported when :const:`typing."
242242
"TYPE_CHECKING` is true."
243243
msgstr ""
244244

245-
#: ../../howto/annotations.rst:170
245+
#: ../../howto/annotations.rst:171
246246
msgid ""
247247
"If :func:`eval` attempts to evaluate such values, it will fail and raise an "
248248
"exception. So, when designing a library API that works with annotations, "
249249
"it's recommended to only attempt to evaluate string values when explicitly "
250250
"requested to by the caller."
251251
msgstr ""
252252

253-
#: ../../howto/annotations.rst:178
253+
#: ../../howto/annotations.rst:179
254254
msgid "Best Practices For ``__annotations__`` In Any Python Version"
255255
msgstr ""
256256

257-
#: ../../howto/annotations.rst:180
257+
#: ../../howto/annotations.rst:181
258258
msgid ""
259259
"You should avoid assigning to the ``__annotations__`` member of objects "
260260
"directly. Let Python manage setting ``__annotations__``."
261261
msgstr ""
262262

263-
#: ../../howto/annotations.rst:183
263+
#: ../../howto/annotations.rst:184
264264
msgid ""
265265
"If you do assign directly to the ``__annotations__`` member of an object, "
266266
"you should always set it to a ``dict`` object."
267267
msgstr ""
268268

269-
#: ../../howto/annotations.rst:186
269+
#: ../../howto/annotations.rst:187
270270
msgid ""
271271
"If you directly access the ``__annotations__`` member of an object, you "
272272
"should ensure that it's a dictionary before attempting to examine its "
273273
"contents."
274274
msgstr ""
275275

276-
#: ../../howto/annotations.rst:190
276+
#: ../../howto/annotations.rst:191
277277
msgid "You should avoid modifying ``__annotations__`` dicts."
278278
msgstr ""
279279

280-
#: ../../howto/annotations.rst:192
280+
#: ../../howto/annotations.rst:193
281281
msgid ""
282282
"You should avoid deleting the ``__annotations__`` attribute of an object."
283283
msgstr ""
284284

285-
#: ../../howto/annotations.rst:197
285+
#: ../../howto/annotations.rst:198
286286
msgid "``__annotations__`` Quirks"
287287
msgstr ""
288288

289-
#: ../../howto/annotations.rst:199
289+
#: ../../howto/annotations.rst:200
290290
msgid ""
291291
"In all versions of Python 3, function objects lazy-create an annotations "
292292
"dict if no annotations are defined on that object. You can delete the "
@@ -298,13 +298,13 @@ msgid ""
298298
"guaranteed to always throw an ``AttributeError``."
299299
msgstr ""
300300

301-
#: ../../howto/annotations.rst:209
301+
#: ../../howto/annotations.rst:210
302302
msgid ""
303303
"Everything in the above paragraph also applies to class and module objects "
304304
"in Python 3.10 and newer."
305305
msgstr ""
306306

307-
#: ../../howto/annotations.rst:212
307+
#: ../../howto/annotations.rst:213
308308
msgid ""
309309
"In all versions of Python 3, you can set ``__annotations__`` on a function "
310310
"object to ``None``. However, subsequently accessing the annotations on that "
@@ -315,15 +315,15 @@ msgid ""
315315
"set."
316316
msgstr ""
317317

318-
#: ../../howto/annotations.rst:220
318+
#: ../../howto/annotations.rst:221
319319
msgid ""
320320
"If Python stringizes your annotations for you (using ``from __future__ "
321321
"import annotations``), and you specify a string as an annotation, the string "
322322
"will itself be quoted. In effect the annotation is quoted *twice.* For "
323323
"example::"
324324
msgstr ""
325325

326-
#: ../../howto/annotations.rst:231
326+
#: ../../howto/annotations.rst:232
327327
msgid ""
328328
"This prints ``{'a': \"'str'\"}``. This shouldn't really be considered a "
329329
"\"quirk\"; it's mentioned here simply because it might be surprising."

0 commit comments

Comments
 (0)