For some (most) translated languages, a lot of strings are missing in the translated versions on my forum. You can check this as a guest. What's the deal?
For some (most) translated languages, a lot of strings are missing in the translated versions on my forum. You can check this as a guest. What's the deal?
Changed API key to one with just my domain and it works now.
Ok, now I'm getting this problem again, with and without a key. It only works from time to time. At what e-mail can I contact Google?
I found the e-mail and contacted google. They advised me that a new 'userip' parameter has been added to the API and should be used by large sites.
I thus changed line 214 in vBet_functions.php to: return 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&langpair='.$from.'|'.$to.'&key='.$vbulletin->options['vbenterprisetranslator_googleapikey'].'&userip='.IP ADDRESS;
While requiring global.php to get the IP ADDRESS.
We have it already implemented - waiting for new release. userip is not obligatory that is why we have no hurry with that. We will made new vBET 3.x release after vBET4.x will be stable and we will be able to move algorithm enhancements to vBET 3.x
If you want to have it faster, then please change function vbet_getTranslationURL in /includes/vbenterprisetranslator_functions.php to this one:
PHP Code:
function vbet_getTranslationURL($from,$to) {
global $vbulletin;
if ($vbulletin->options['vbenterprisetranslator_googleapikey']) {
return 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&langpair='.$from.'|'.$to.'&key='.$vbulletin->options['vbenterprisetranslator_googleapikey'].'&userip='.$_SERVER['REMOTE_ADDR'];
} else {
return 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&langpair='.$from.'|'.$to.'&userip='.$_SERVER['REMOTE_ADDR'];
}
}
Last edited by vBET; 17-03-10 at 02:02.
Thanks! Due to size of my site, requests without userip were mostly being blocked.
Sorry for confusion - I checked code from old version. In vBET3.3.1 userip is already included in request![]()