Hi,
We have a website that uses Gtranslate Pro as part of Wordpress. It has been working fine translating until recently, and for some reason it either doesn't translate or partially translate.
You can view a typical page here to see for yourself:
http://www.kitchoo.com/collection/cuisine-k1-mini-kitchens-compact-minicuisines-kitchenettes-bloccuisines/
We originally set it up with an google API key and this is placed with config.php and recently set it to debug mode.
Debug.txt gives:
< HTTP/1.1 200 OK
< Date: Wed, 19 Sep 2012 13:08:28 GMT
< Server: Apache/2.2.9 (Fedora)
< X-Powered-By: PHP/5.2.6
< X-Pingback: http://www.kitchoo.com/xmlrpc.php
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host http://www.kitchoo.com left intact
* Closing connection #0
* About to connect() to http://www.googleapis.com port 443 (#0)
* Trying 74.125.132.95... * connected
* Connected to http://www.googleapis.com (74.125.132.95) port 443 (#0)
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using SSL_RSA_WITH_RC4_128_MD5
* Server certificate:
* subject: CN=*.googleapis.com,O=Google Inc,L=Mountain View,ST=California,C=US
* start date: Aug 16 12:25:38 2012 GMT
* expire date: Jun 07 19:43:27 2013 GMT
* common name: *.googleapis.com
* issuer: CN=Google Internet Authority,O=Google Inc,C=US
> POST /language/translate/v2 HTTP/1.1
Host: http://www.googleapis.com
Accept: */*
X-HTTP-Method-Override: GET
Content-Length: 210
Content-Type: application/x-www-form-urlencoded
< HTTP/1.1 403 Forbidden
< Content-Type: application/json; charset=UTF-8
< Date: Wed, 19 Sep 2012 13:08:29 GMT
< Expires: Wed, 19 Sep 2012 13:08:29 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
* Connection #0 to host http://www.googleapis.com left intact
* Closing connection #0
Request: key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&q=%0D%0A%09cuisine+K1++%7C++compact+kitchens+%7C+mini+cuisine+%7C+kitchenette+%7C+bespoke+award-winning+design+%7C+kitchoo%09&userip=81.152.97.250&source=fr&target=en
Response: {
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceeded",
"message": "Daily Limit Exceeded"
}
],
"code": 403,
"message": "Daily Limit Exceeded"
}[/i]
Is it just a case that the daily limit is exceeded ? The problem with that is when i log into Google and view stats for that API, is says:
Daily quota: 0
28-day total: 0
Status: No known issues
To get this to work would you suggest we set up billing with Google (which we have never needed to do before) ?
Or i read on some posts in the support forum, we don't need to use an API in Pro as its optional. If that's the case how do we turn it off ? I tried changing the config/php line to:
define('API_KEY', '');
But that gave an error
< HTTP/1.1 400 Bad Request
< Content-Type: application/json; charset=UTF-8
< Date: Wed, 19 Sep 2012 12:55:26 GMT
< Expires: Wed, 19 Sep 2012 12:55:26 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Server: GSE
< Transfer-Encoding: chunked
<
* Connection #0 to host http://www.googleapis.com left intact
* Closing connection #0
Request: key=&q=k1_f02&userip=81.152.97.250&source=fr&target=en
Response: {
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "keyInvalid",
"message": "Bad Request"
}
],
"code": 400,
"message": "Bad Request"
}
}
Did i do this correctly, or how do i turn off the API ?
We aren't bothered to use API stats, we just want the translation to work. If we don't use API is there any down benefits we lose out on except API stats ?
I also tried to force a translation with ?force_translation=1 and i just get a list saying cannot translate
Please see:
http://www.kitchoo.com/en/collection/cuisine-k1-mini-kitchens-compact-minicuisines-kitchenettes-bloccuisines/?force_translation=1
Any suggestions as to whats happening with ALL of the above and more importantly how to solve it would be greatly appreciated.
GTranslate has been a fantastic plugin up to now.
ps if you need GTranslate Team require ftp details etc, please let me know where to send them to.
Thank you, Anton