Skip to content

Commit 0853e3a

Browse files
committed
wip: 進捗率 40 % くらい
1 parent 7e52b9f commit 0853e3a

File tree

1 file changed

+29
-30
lines changed

1 file changed

+29
-30
lines changed

reference/curl/constants_curl_setopt.xml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,20 +1982,20 @@
19821982
<term><parameter>passwordPrompt</parameter></term>
19831983
<listitem>
19841984
<simpara>
1985-
A password prompt.
1985+
パスワードプロンプト。
19861986
</simpara>
19871987
</listitem>
19881988
</varlistentry>
19891989
<varlistentry>
19901990
<term><parameter>maximumPasswordLength</parameter></term>
19911991
<listitem>
19921992
<simpara>
1993-
The maximum length of the password.
1993+
パスワードの最大長。
19941994
</simpara>
19951995
</listitem>
19961996
</varlistentry>
19971997
</variablelist>
1998-
The callback should return a <type>string</type> containing the password.
1998+
このコールバックは、パスワードが入った <type>string</type> を返さなければなりません。
19991999
cURL 7.4.2 以降で利用可能でしたが、cURL 7.11.1 からは非推奨となっており、
20002000
cURL 7.15.5 を最後に削除されました。
20012001
PHP 7.3.0 で削除されました。
@@ -2219,45 +2219,45 @@
22192219
<term><parameter>bytesToDownload</parameter></term>
22202220
<listitem>
22212221
<simpara>
2222-
The total number of bytes expected to be downloaded in this transfer.
2222+
この転送でダウンロードされようとしている総バイト数。
22232223
</simpara>
22242224
</listitem>
22252225
</varlistentry>
22262226
<varlistentry>
22272227
<term><parameter>bytesDownloaded</parameter></term>
22282228
<listitem>
22292229
<simpara>
2230-
The number of bytes downloaded so far.
2230+
これまでにダウンロードされたバイト数。
22312231
</simpara>
22322232
</listitem>
22332233
</varlistentry>
22342234
<varlistentry>
22352235
<term><parameter>bytesToUpload</parameter></term>
22362236
<listitem>
22372237
<simpara>
2238-
The total number of bytes expected to be uploaded in this transfer.
2238+
この転送でアップロードされようとしている総バイト数。
22392239
</simpara>
22402240
</listitem>
22412241
</varlistentry>
22422242
<varlistentry>
22432243
<term><parameter>bytesUploaded</parameter></term>
22442244
<listitem>
22452245
<simpara>
2246-
The number of bytes uploaded so far.
2246+
これまでにアップロードされたバイト数。
22472247
</simpara>
22482248
</listitem>
22492249
</varlistentry>
22502250
</variablelist>
2251-
The callback should return an <type>int</type> with a non-zero value to abort the transfer
2252-
and set a <constant>CURLE_ABORTED_BY_CALLBACK</constant> error.
2251+
転送を中断し、<constant>CURLE_ABORTED_BY_CALLBACK</constant> エラーをセットするには、
2252+
このコールバックから非ゼロの <type>int</type> を返してください。
22532253
<note>
22542254
<para>
2255-
The callback is only called when the <constant>CURLOPT_NOPROGRESS</constant>
2256-
option is set to &false;.
2255+
このコールバックが呼ばれるのは、<constant>CURLOPT_NOPROGRESS</constant> オプションが
2256+
&false; に設定されている場合のみです。
22572257
</para>
22582258
</note>
22592259
cURL 7.1.0 以降で利用可能ですが、cURL 7.32.0 以降は非推奨となりました。
2260-
Use <constant>CURLOPT_XFERINFOFUNCTION</constant> instead.
2260+
代わりに <constant>CURLOPT_XFERINFOFUNCTION</constant> を用いてください。
22612261
</para>
22622262
</listitem>
22632263
</varlistentry>
@@ -2937,24 +2937,24 @@
29372937
<term><parameter>streamResource</parameter></term>
29382938
<listitem>
29392939
<simpara>
2940-
Stream <type>resource</type> provided to cURL through the option
2941-
<constant>CURLOPT_READDATA</constant>.
2940+
<constant>CURLOPT_READDATA</constant> オプションを通して
2941+
cURL へと渡されたストリーム <type>resource</type>。
29422942
</simpara>
29432943
</listitem>
29442944
</varlistentry>
29452945
<varlistentry>
29462946
<term><parameter>maxAmountOfDataToRead</parameter></term>
29472947
<listitem>
29482948
<simpara>
2949-
The maximum amount of data to be read.
2949+
読み出すべきデータの最大長。
29502950
</simpara>
29512951
</listitem>
29522952
</varlistentry>
29532953
</variablelist>
2954-
The callback should return a <type>string</type>
2955-
with a length equal or smaller than the amount of data requested,
2956-
typically by reading it from the passed stream <type>resource</type>. It should
2957-
return an empty <type>string</type> to signal <literal>EOF</literal>.
2954+
このコールバックは、要求されたデータ長以下の <type>string</type>
2955+
返さなければなりません。
2956+
典型的には、渡されたストリーム <type>resource</type> からデータを読み出して返します。
2957+
<literal>EOF</literal> を伝えるためには空の <type>string</type> を返してください。
29582958
cURL 7.1.0 以降で利用可能です。
29592959
</para>
29602960
</listitem>
@@ -4343,14 +4343,13 @@
43434343
<term><parameter>data</parameter></term>
43444344
<listitem>
43454345
<simpara>
4346-
The data to be written.
4346+
書き込むべきデータ。
43474347
</simpara>
43484348
</listitem>
43494349
</varlistentry>
43504350
</variablelist>
4351-
The data must be saved by the callback
4352-
and the callback must return the exact number of bytes written
4353-
or the transfer will be aborted with an error.
4351+
このコールバックは、データを保存して書き込んだバイト数を返さなければなりません。
4352+
そうしないなら、転送はエラーで中止されます (訳注: 一度にすべてのデータを書き込む必要があり、部分的な書き込みはできません。つまり、返り値は渡されたデータ長と一致しなければなりません)。
43544353
cURL 7.1.0 以降で利用可能です。
43554354
</para>
43564355
</listitem>
@@ -4410,37 +4409,37 @@
44104409
<term><parameter>bytesToDownload</parameter></term>
44114410
<listitem>
44124411
<simpara>
4413-
The total number of bytes expected to be downloaded in this transfer.
4412+
この転送でダウンロードされようとしている総バイト数。
44144413
</simpara>
44154414
</listitem>
44164415
</varlistentry>
44174416
<varlistentry>
44184417
<term><parameter>bytesDownloaded</parameter></term>
44194418
<listitem>
44204419
<simpara>
4421-
The number of bytes downloaded so far.
4420+
これまでにダウンロードされたバイト数。
44224421
</simpara>
44234422
</listitem>
44244423
</varlistentry>
44254424
<varlistentry>
44264425
<term><parameter>bytesToUpload</parameter></term>
44274426
<listitem>
44284427
<simpara>
4429-
The total number of bytes expected to be uploaded in this transfer.
4428+
この転送でアップロードされようとしている総バイト数。
44304429
</simpara>
44314430
</listitem>
44324431
</varlistentry>
44334432
<varlistentry>
44344433
<term><parameter>bytesUploaded</parameter></term>
44354434
<listitem>
44364435
<simpara>
4437-
The number of bytes uploaded so far.
4436+
これまでにアップロードされたバイト数。
44384437
</simpara>
44394438
</listitem>
44404439
</varlistentry>
44414440
</variablelist>
4442-
Return <literal>1</literal> to abort the transfer
4443-
and set a <constant>CURLE_ABORTED_BY_CALLBACK</constant> error.
4441+
転送を中断し、<constant>CURLE_ABORTED_BY_CALLBACK</constant> エラーをセットするには、
4442+
<literal>1</literal> を返してください。
44444443
PHP 8.2.0 以降かつ cURL 7.32.0 以降で利用可能です。
44454444
</para>
44464445
</listitem>
@@ -4557,7 +4556,7 @@
45574556
<listitem>
45584557
<para>
45594558
PHP 8.4.0 以降で利用可能です。
4560-
This option requires <constant>CURLOPT_VERBOSE</constant> option enabled.
4559+
このオプションを利用するには <constant>CURLOPT_VERBOSE</constant> オプションを有効にする必要があります。
45614560
A <type>callable</type> to replace the standard cURL verbose output.
45624561
This callback gets called during various stages of the request with verbose debug information.
45634562
このコールバックは、以下のシグニチャである必要があります。

0 commit comments

Comments
 (0)