4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # tomo, 2019
8
7
# Osamu NAKAMURA, 2019
9
8
# 永田 大和 <gey3933@gmail.com>, 2019
9
+ # tomo, 2020
10
10
#
11
11
#, fuzzy
12
12
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
15
15
"Report-Msgid-Bugs-To :\n "
16
16
"POT-Creation-Date :2020-01-01 04:28+0000\n "
17
17
"PO-Revision-Date :2019-09-01 03:38+0000\n "
18
- "Last-Translator :永田 大和 <gey3933@gmail.com>, 2019 \n "
18
+ "Last-Translator :tomo, 2020 \n "
19
19
"Language-Team :Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
20
20
"MIME-Version :1.0\n "
21
21
"Content-Type :text/plain; charset=UTF-8\n "
@@ -117,6 +117,10 @@ msgid ""
117
117
"object's :c:member:`PyBufferProcs.bf_releasebuffer` field is ``NULL``, which"
118
118
" disallows mutable objects such as :class:`bytearray`."
119
119
msgstr ""
120
+ "いくつかのフォーマットは読み込み専用の :term:`bytes-like オブジェクト <bytes-like object>` "
121
+ "を必要とし、バッファ構造体の代わりにポインタをセットします。それらは、オブジェクトの "
122
+ ":c:member:`PyBufferProcs.bf_releasebuffer` フィールドが ``NULL`` "
123
+ "であることをチェックして動きます。これは :class:`bytearray` などの変更可能オブジェクトを禁止します。"
120
124
121
125
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:58
122
126
msgid ""
@@ -216,6 +220,8 @@ msgid ""
216
220
"Like ``s``, but the Python object may also be ``None``, in which case the C "
217
221
"pointer is set to ``NULL``."
218
222
msgstr ""
223
+ "``s`` に似ていますが、Python オブジェクトは ``None`` でもよく、その場合には C のポインタは ``NULL`` "
224
+ "にセットされます。"
219
225
220
226
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:106
221
227
msgid ""
@@ -228,6 +234,8 @@ msgid ""
228
234
"Like ``s*``, but the Python object may also be ``None``, in which case the "
229
235
"``buf`` member of the :c:type:`Py_buffer` structure is set to ``NULL``."
230
236
msgstr ""
237
+ "``s*`` と同じですが、 Python の ``None`` オブジェクトを受け取ることができます。その場合、 "
238
+ ":c:type:`Py_buffer` 構造体の ``buf`` メンバーは ``NULL`` になります。"
231
239
232
240
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:110
233
241
msgid ""
@@ -242,6 +250,8 @@ msgid ""
242
250
"Like ``s#``, but the Python object may also be ``None``, in which case the C"
243
251
" pointer is set to ``NULL``."
244
252
msgstr ""
253
+ "``s#`` に似ていますが、Python オブジェクトは ``None`` でもよく、その場合には C のポインタは ``NULL`` "
254
+ "にセットされます。"
245
255
246
256
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:120
247
257
msgid "``y`` (read-only :term:`bytes-like object`) [const char\\ *]"
@@ -368,6 +378,8 @@ msgid ""
368
378
"Like ``u``, but the Python object may also be ``None``, in which case the "
369
379
":c:type:`Py_UNICODE` pointer is set to ``NULL``."
370
380
msgstr ""
381
+ "``u`` に似ていますが、Python オブジェクトは ``None`` でもよく、その場合には :c:type:`Py_UNICODE` ポインタは"
382
+ " ``NULL`` にセットされます。"
371
383
372
384
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:181
373
385
msgid "``Z#`` (:class:`str` or ``None``) [const Py_UNICODE\\ *, int]"
@@ -378,6 +390,8 @@ msgid ""
378
390
"Like ``u#``, but the Python object may also be ``None``, in which case the "
379
391
":c:type:`Py_UNICODE` pointer is set to ``NULL``."
380
392
msgstr ""
393
+ "``u#`` に似ていますが、 Python オブジェクトは ``None`` でもよく、その場合には :c:type:`Py_UNICODE` "
394
+ "ポインタは ``NULL`` にセットされます。"
381
395
382
396
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:186
383
397
msgid "``U`` (:class:`str`) [PyObject\\ *]"
@@ -431,6 +445,10 @@ msgid ""
431
445
"argument text. The text will be encoded in the encoding specified by the "
432
446
"first argument."
433
447
msgstr ""
448
+ "この書式には二つの引数が必要です。一つ目は入力にのみ用いられ、 NUL で終端されたエンコード名文字列を指す :c:type:`const "
449
+ "char\\ *` 型または、 ``'utf-8'`` が使われることを表す ``NULL`` でなければなりません。指定したエンコード名を Python"
450
+ " が理解できない場合には例外を送出します。第二の引数は :c:type:`char\\ *\\ *` でなければなりません; "
451
+ "この引数が参照しているポインタの値は、引数に指定したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。"
434
452
435
453
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:206
436
454
msgid ""
@@ -489,6 +507,12 @@ msgid ""
489
507
"The third argument must be a pointer to an integer; the referenced integer "
490
508
"will be set to the number of bytes in the output buffer."
491
509
msgstr ""
510
+ "この書式には三つの引数が必要です。一つ目は入力にのみ用いられ、 NUL で終端されたエンコード名文字列を指す :c:type:`const "
511
+ "char\\ *` 型か ``NULL`` でなければなりません。 ``NULL`` の場合には ``'utf-8'`` "
512
+ "を使います。指定したエンコード名を Python が理解できない場合には例外を送出します。第二の引数は :c:type:`char\\ *\\ *` "
513
+ "でなければなりません; "
514
+ "この引数が参照しているポインタの値は、引数に指定したテキストの内容が入ったバッファへのポインタになります。テキストは最初の引数に指定したエンコード方式でエンコードされます。第三の引数は整数へのポインタでなければなりません;"
515
+ " ポインタが参照している整数の値は出力バッファ内のバイト数にセットされます。"
492
516
493
517
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:231
494
518
msgid "There are two modes of operation:"
@@ -502,6 +526,10 @@ msgid ""
502
526
"responsible for calling :c:func:`PyMem_Free` to free the allocated buffer "
503
527
"after usage."
504
528
msgstr ""
529
+ "*\\ *buffer* が ``NULL`` "
530
+ "ポインタを指している場合、関数は必要なサイズのバッファを確保し、そのバッファにエンコード後のデータをコピーして、 *\\ *buffer* "
531
+ "がこの新たに確保された記憶領域を指すように変更します。呼び出し側には、確保されたバッファを使い終わった後に :c:func:`PyMem_Free` "
532
+ "で解放する責任があります。"
505
533
506
534
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:238
507
535
msgid ""
@@ -511,6 +539,10 @@ msgid ""
511
539
"will then copy the encoded data into the buffer and NUL-terminate it. If "
512
540
"the buffer is not large enough, a :exc:`ValueError` will be set."
513
541
msgstr ""
542
+ "*\\ *buffer* が非 ``NULL`` のポインタ (すでにメモリ確保済みのバッファ) を指している場合、 "
543
+ ":c:func:`PyArg_ParseTuple` はこのメモリ位置をバッファとして用い、 *\\ *buffer_length* "
544
+ "の初期値をバッファサイズとして用います。 PyArg_ParseTuple は次にエンコード済みのデータをバッファにコピーして、NUL "
545
+ "で終端します。バッファの大きさが足りなければ :exc:`ValueError` がセットされます。"
514
546
515
547
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:244
516
548
msgid ""
@@ -721,6 +753,9 @@ msgid ""
721
753
" program thus receives the actual object that was passed. The object's "
722
754
"reference count is not increased. The pointer stored is not ``NULL``."
723
755
msgstr ""
756
+ "Python オブジェクトを (一切変換を行わずに) C の Python オブジェクト型ポインタに保存します。これにより、C "
757
+ "プログラムは実際のオブジェクトを受け渡しされます。オブジェクトの参照カウントは増加しません。保存されるポインタが ``NULL`` "
758
+ "になることはありません。"
724
759
725
760
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:327
726
761
msgid "``O!`` (object) [*typeobject*, PyObject\\ *]"
@@ -951,6 +986,8 @@ msgid ""
951
986
"on success; on failure, it returns false and raises the appropriate "
952
987
"exception."
953
988
msgstr ""
989
+ "位置引数とキーワード引数の両者を取る関数の引数を解釈します。 *keywords* 引数は ``NULL`` で終端されたキーワード名の配列です。\n"
990
+ "空の名前は :ref:`位置引数のみ <positional-only_parameter>` を示します。成功した場合、真を返します。失敗した場合は偽を返し、また適切な例外を発生させます。"
954
991
955
992
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:445
956
993
msgid ""
@@ -1040,6 +1077,9 @@ msgid ""
1040
1077
"Returns the value or ``NULL`` in the case of an error; an exception will be "
1041
1078
"raised if ``NULL`` is returned."
1042
1079
msgstr ""
1080
+ ":c:func:`PyArg_Parse\\ *` "
1081
+ "ファミリの関数が受け取るのと似た形式の書式文字列および値列に基づいて、新たな値を生成します。生成した値を返します。エラーの場合には ``NULL`` "
1082
+ "を返します; ``NULL`` を返す場合、例外を送出するでしょう。"
1043
1083
1044
1084
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:526
1045
1085
msgid ""
@@ -1098,6 +1138,8 @@ msgid ""
1098
1138
"Convert a null-terminated C string to a Python :class:`str` object using "
1099
1139
"``'utf-8'`` encoding. If the C string pointer is ``NULL``, ``None`` is used."
1100
1140
msgstr ""
1141
+ "null終端された C 文字列を、 ``'utf-8'`` エンコーディングを用いて、 Python :class:`str` "
1142
+ "オブジェクトに変換します。もし C 文字列ポインタが ``NULL`` の場合、 ``None`` になります。"
1101
1143
1102
1144
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:555
1103
1145
msgid "``s#`` (:class:`str` or ``None``) [const char\\ *, int]"
@@ -1109,6 +1151,8 @@ msgid ""
1109
1151
"``'utf-8'`` encoding. If the C string pointer is ``NULL``, the length is "
1110
1152
"ignored and ``None`` is returned."
1111
1153
msgstr ""
1154
+ "C 文字列とその長さを ``'utf-8'`` エンコーディングを使って Python :class:`str` オブジェクトに変換します。C "
1155
+ "文字列ポインタが ``NULL`` の場合、長さは無視され、 ``None`` になります。"
1112
1156
1113
1157
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:559
1114
1158
msgid "``y`` (:class:`bytes`) [const char\\ *]"
@@ -1119,6 +1163,8 @@ msgid ""
1119
1163
"This converts a C string to a Python :class:`bytes` object. If the C string"
1120
1164
" pointer is ``NULL``, ``None`` is returned."
1121
1165
msgstr ""
1166
+ "C 文字列をPython :class:`bytes` オブジェクトに変換します。もしC 文字列ポインタが ``NULL`` "
1167
+ "だった場合、``None`` を返します。"
1122
1168
1123
1169
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:563
1124
1170
msgid "``y#`` (:class:`bytes`) [const char\\ *, int]"
@@ -1129,6 +1175,8 @@ msgid ""
1129
1175
"This converts a C string and its lengths to a Python object. If the C "
1130
1176
"string pointer is ``NULL``, ``None`` is returned."
1131
1177
msgstr ""
1178
+ "これは C 文字列とその長さから Python オブジェクトに変換します。C 文字列ポインタが ``NULL`` の場合、長さは無視され "
1179
+ "``None`` になります。"
1132
1180
1133
1181
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:566
1134
1182
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:582
@@ -1154,6 +1202,8 @@ msgid ""
1154
1202
"UCS-4) data to a Python Unicode object. If the Unicode buffer pointer is "
1155
1203
"``NULL``, ``None`` is returned."
1156
1204
msgstr ""
1205
+ "null 終端された Unicode (UTF-16 または UCS-4) データの :c:type:`wchar_t` バッファから Python "
1206
+ "Unicode オブジェクトに変換します。 Unicode バッファポインタが ``NULL`` の場合、 ``None`` になります。"
1157
1207
1158
1208
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:579
1159
1209
msgid "``u#`` (:class:`str`) [const wchar_t\\ *, int]"
@@ -1165,6 +1215,8 @@ msgid ""
1165
1215
"Unicode object. If the Unicode buffer pointer is ``NULL``, the length is "
1166
1216
"ignored and ``None`` is returned."
1167
1217
msgstr ""
1218
+ "Unicode (UTF-16 または UCS-4) データのバッファとその長さから Python Unicode オブジェクトに変換します。 "
1219
+ "Unicode バッファポインタが ``NULL`` の場合、長さは無視され ``None`` になります。"
1168
1220
1169
1221
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:582
1170
1222
msgid "``U`` (:class:`str` or ``None``) [const char\\ *]"
@@ -1265,6 +1317,10 @@ msgid ""
1265
1317
"return ``NULL`` but won't raise an exception. If no exception has been "
1266
1318
"raised yet, :exc:`SystemError` is set."
1267
1319
msgstr ""
1320
+ "Python オブジェクトを手を加えずに渡します (ただし、参照カウントは 1 インクリメントします)。渡したオブジェクトが ``NULL`` "
1321
+ "ポインタの場合、この引数を生成するのに使った何らかの呼び出しがエラーになったのが原因であると仮定して、例外をセットします。従ってこのとき "
1322
+ ":c:func:`Py_BuildValue` は ``NULL`` を返しますが例外は送出しません。例外をまだ送出していなければ "
1323
+ ":exc:`SystemError` をセットします。"
1268
1324
1269
1325
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:646
1270
1326
msgid "``S`` (object) [PyObject\\ *]"
@@ -1294,6 +1350,9 @@ msgid ""
1294
1350
":c:type:`void\\ *`) as its argument and should return a\" new\" Python "
1295
1351
"object, or ``NULL`` if an error occurred."
1296
1352
msgstr ""
1353
+ "*anything* を *converter* 関数を介して Python オブジェクトに変換します。この関数は *anything* "
1354
+ "(:c:type:`void\\ *` と互換の型でなければなりません) を引数にして呼び出され、\" 新たな\" オブジェクトを返すか、失敗した場合には"
1355
+ " ``NULL`` を返すようにしなければなりません。"
1297
1356
1298
1357
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:660
1299
1358
msgid ""
@@ -1326,7 +1385,7 @@ msgstr "C の値からなる配列を Python の辞書に変換します。一
1326
1385
msgid ""
1327
1386
"If there is an error in the format string, the :exc:`SystemError` exception "
1328
1387
"is set and ``NULL`` returned."
1329
- msgstr ""
1388
+ msgstr "書式文字列に関するエラーが生じると、 :exc:`SystemError` 例外をセットして ``NULL`` を返します。 "
1330
1389
1331
1390
#: /home/travis/build/python/cpython-doc-catalog/Doc/c-api/arg.rst:675
1332
1391
msgid ""