Closed GoogleCodeExporter closed 8 years ago
I added a new public method, I guess it got dropped accidentally - I believe it
should look like this:
/**
* Define request type
* @access public
* @param string $request_type
* return boolean
*/
public function setRequestType($request_type) {
if (!empty($request_type)) {
$this->request_type = $request_type;
return true;
}
return false;
}
Works for me. I put it in right after the setAPIKey() method.
Original comment by greg.har...@gmail.com
on 13 Jan 2010 at 6:00
It works like a charm.
Original comment by tiago.du...@googlemail.com
on 22 Jan 2010 at 1:38
Thanks for feeding back. Unfortunately, it seems using cURL doesn't make any
difference to the Google Translate API's refusal to accept longer strings. I
suspect
that's why it was dropped. No need to be able to POST if Google can't accept
longer
strings anyway!
We handled this in a slightly ugly way, but you can check the code here - it's a
Drupal module: http://drupal.org/project/i18n_auto
Original comment by greg.har...@gmail.com
on 22 Jan 2010 at 8:16
Can't reproduce this.
Original comment by josedasilva
on 8 Mar 2010 at 7:03
@josedasilva, if you actually check out the latest code from SVN, you'll see the
whole method is missing from the class! It's difficult *not* to reproduce. ;-)
Original comment by greg.har...@gmail.com
on 8 Mar 2010 at 8:58
Original issue reported on code.google.com by
greg.har...@gmail.com
on 13 Jan 2010 at 5:52