Forum Archive - [Solved] Gtranslate pro & google api 2.0

[Solved] Gtranslate pro & google api 2.0
Feb 3, 2012 5:48 pm by lakis21
hallo, I am using the gtranslate pro for 9 months now. I have the latest version installed. Because I 've change server I didn't copy the cache folder of gtranslate. after 15 days on the new server I have not translation for the serbian language. My site is http://www.makishouse.com. I think that serbian in not support form google free or bing. I register for Google translate API 2.0 I place the api key on the config file but it doesn't work... :( What I have to do to enable and work? I need the serbian translation. Thank you!
Re: Gtranslate pro & google api 2.0
Feb 3, 2012 7:24 pm by Yana
Hi, The translation isn't made because you don't have an appropriate certificate, so your host can verify google translator server. * About to connect() to www.googleapis.com port 443 (#0) * Trying 209.85.147.95... * connected * Connected to www.googleapis.com (209.85.147.95) port 443 (#0) * SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed * Closing connection #0 Please fix this issue with the Certificate Authority (CA). You can find logs here www.makishouse.com/gtranslate/debug.txt .
Re: Gtranslate pro & google api 2.0
Feb 4, 2012 5:57 am by lakis21
Hi Yana, I disable ssl define('SSL_VERIFY_PEER', false). But the api doesn't work no serbian... here is my config: <?php define('MAIN_LANG', 'en'); // Main language code: en, ar, bg, hr, cn, ct, cs, da, et, tl, fi, fr, gl, el, iw, hi, es, nl, id, ja, ca, ko, lt, lv, mt, de, no, pt, ru, ro, sr, sk, sl, sv, th, tr, uk, hu, vi, it, pl, sq define('API_KEY', 'AIzaSyDcsErJ73MB6ZTANH5w_WDUxxxxxxxx'); // You can get your Google Translate API key from https://code.google.com/apis/console/? api=translate define('AUTO_DETECT_LANG', false); // set to true if you have mixed language content, works with Google only define('CACHE_TIME', 365*24*60*60); // 1 year by default, no need to decrease define('LICENSE', 'license.dat'); define('SSL_VERIFY_PEER', false); // disable if you get CA certificate error and cannot reconfigure your server to solve the issue define('FOLLOW_LOCATION', false); // if your site have redirects for some URLs and for that reason you see blank pages, you need to enable this feature define('USE_BING_TRANSLATOR', false); // Enable it to use Bing Translotor instead of Google Translate define('BING_API_KEY', 'INSERT-YOUR-KEY'); // If the option above is enabled you need to get your Bing API key from http://www.bing.com/developers/createapp.aspx (PHP SOAP client is required) define('DEBUG', true); // turn on for debug mode // username and password to edit translations, please change for security reasons, // this is not your google login/pass, you need to think something new define('USER', 'xxxx'); define('PASS', 'xxxx'); Do I have to change anything else?
Re: Gtranslate pro & google api 2.0
Feb 4, 2012 6:32 pm by Yana
Hi, It is not the SSL server certificate, it is just Certificate Authority (CA). With it your host verifies the other party. You should check this with your hosting provider. The server doesn't configured properly. Please contact your hosting provider asking them to fix the issue and send this lines. * About to connect() to http://www.googleapis.com port 443 (#0) * Trying 209.85.147.95... * connected * Connected to http://www.googleapis.com (209.85.147.95) port 443 (#0) * SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed * Closing connection #0
Re: Gtranslate pro & google api 2.0
Feb 6, 2012 6:05 am by lakis21
thank you, the error was on Referers on the api access, i've change it to: Any referer allowed. and then It worked. I couldn't do anything on my windows 2008 r2, about the CA, so I left ssl define('SSL_VERIFY_PEER', false). Now everything is working and the google is charging... Thank you I have now Serbian Language back! Regards, Lakis
Re: [Solved] Gtranslate pro & google api 2.0
Feb 6, 2012 10:27 am by Yana
Good to hear that!

SIMILAR TOPICS

Google stopped providing website translator widgetsFeb 28, 2019 2:43 pmReplies: 0Post by: Edvard
Gtranslate MultisiteFeb 12, 2019 7:27 amReplies: 1Post by: infact_dat
Gtranslate: Error with numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not definedFeb 22, 2019 12:34 pmReplies: 1Post by: oase
Add-on gtranslate no longer worksFeb 2, 2019 6:01 amReplies: 1Post by: DarylDixon

Try GTranslate with a free 15 day trial