Doc #54554 [Opn]: translation of some CURLOPT in simplifed chinese is wrong.

From: Date: Mon, 18 Apr 2011 01:29:02 +0000
Subject: Doc #54554 [Opn]: translation of some CURLOPT in simplifed chinese is wrong.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6242@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54554&edit=1 ID: 54554 User updated by: xiezhenye at gmail dot com Reported by: xiezhenye at gmail dot com -Summary: translation of CURLOPT_READFUNCTION description in simplifed chinese is wrong. +Summary: translation of some CURLOPT in simplifed chinese is wrong. Status: Open Type: Documentation Problem Package: Translation problem Operating System: any PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: translation of curl_setopt CURLOPT_WRITEFUNCTION description in simplifed chinese is wrong. in english: The name of a callback function where the callback function takes two parameters. The first is the cURL resource, and the second is a string with the data to be written. The data must be saved by using this callback function. It must return the exact number of bytes written or the transfer will be aborted with an error. the correct chinese translation should be: 回调函数名。该函数应接受两个参数。第一个是 cURL resource;第二个是要写入的数据字符串。数 据必须在函数中被保存。函数必须返回准确的传入的要写入数据的字节数,否则传输会被一个错误所中 断。 Previous Comments: ------------------------------------------------------------------------ [2011-04-18 03:19:14] xiezhenye at gmail dot com Description: ------------ translation of curl_setopt CURLOPT_READFUNCTION description in simplifed chinese is wrong. in english: The name of a callback function where the callback function takes three parameters. The first is the cURL resource, the second is a stream resource provided to cURL through the option CURLOPT_INFILE, and the third is the maximum amount of data to be read. The callback function must return a string with a length equal or smaller than the amount of data requested, typically by reading it from the passed stream resource. It should return an empty string to signal EOF. the correct chinese translation should be: 回调函数名。该函数应接受三个参数。第一个是 cURL resource;第二个是通过选项 CURLOPT_INFILE 传给 cURL 的 stream resource;第三个参数是最大可以读取的数据的数量。回 调函数必须返回一个字符串,长度小于或等于请求的数据量(第三个参数)。一般从传入的 stream resource 读取。返回空字符串作为 EOF(文件结束) 信号。 Test script: --------------- none Expected result: ---------------- none Actual result: -------------- none ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54554&edit=1

« previous php.doc.bugs (#6242) next »