Si tot estava funcionant bé i de sobte no llavors una possibilitat és que vostè té problema amb el proveïdor de traducció (els altres són: algun tipus de configuració s'ha canviat, nou mod afegit, un programari actualitzat).
No hi ha manera molt fàcil de veure què tens problema amb API de Google v1 o està en un altre lloc. Per comprovar que si us plau n'hi ha prou amb crear nou arxiu php amb aquest contingut:
Aquest arxiu es pot trobar a VBET pack de do-not-upload/tools/googletest.php
PHP Code:
<?php
echo "Starting translation test for Google API v1<br/>\n";
$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&format=html&langpair=pl|en&q=witaj');
curl_setopt($connection, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)');
//curl_setopt($connection, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, 1);
$time = microtime(true) * 1000;
$result = curl_exec($connection);
$time = microtime(true) * 1000 - $time;
echo 'Test result: '.$result."<br/>\n";
echo 'Test error: '.curl_error($connection)."<br/>\n";
curl_close($connection);
echo 'Connection time (ms): '.$time;
?>
En cas d'usar google API v2 utilitzar aquest codi - També aquest fitxer s'han d'incloure en la propera versió:
PHP Code:
<?php
require_once('./global.php');
echo "Starting translation test for Google API v2<br/>\n";
$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, 'https://www.googleapis.com/language/translate/v2?key='.$vbulletin->options['vbenterprisetranslator_googleapikeyv2'].'&format=html&q=witaj&target=en');
curl_setopt($connection, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)');
//curl_setopt($connection, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, 1);
$time = microtime(true) * 1000;
$result = curl_exec($connection);
$time = microtime(true) * 1000 - $time;
echo 'Test result: '.$result."<br/>\n";
echo 'Test error: '.curl_error($connection)."<br/>\n";
curl_close($connection);
echo 'Connection time (ms): '.$time;
?>
Sols carregueu-lo al teu servidor (l'arrel del seu fòrum) i posar la URL a ell al seu navegador. Si tot és correcte vostè rebrà resposta:
Code:
Starting transaltion test
Test result: {"responseData": {"translatedText":"Welcome"}, "responseDetails": null, "responseStatus": 200}
Test error:
Com es pot veure l'error no tenen cap valor i el resultat ha estat 200. Això vol dir: tot està bé.
Si on van bloquejar la resposta de Google s'assembla al següent:
Code:
{"responseData": null, "responseDetails": "Suspected Terms of Service Abuse, please contact ajaxapis-support@google.com.", "responseStatus": 403}
Si en el bloqueig - només escriure a Google, com diu el missatge. Que permetrà trobar la nostra la raó, potser és un error, potser vostè haurà de canviar alguna cosa que s'ajusti millor a la TOS de Google. De tota manera Google ofereix un accés fàcil tornar quan el problema es resol 
Si vostè té problema a la xarxa llavors obtindrem un resultat buit i l'error li dirà el que està passant (és a dir: No s'ha pogut resoldre el host 'ajax.googleapis.com'). Tingueu en compte, en aquest cas pot ser un temps abans d'obtenir un resultat (fins que la connexió es mesura el temps cap amunt).
Exemple de xarxa problema:
Code:
Starting translation test
Test result:
Test error: Failed to connect to 74.125.95.95: Network is unreachable
Connection time (ms): 70.96484375
Què ha de fer?
En primer lloc: comprovar que el tallafocs no bloqueja l'accés a Google.
en segon lloc, s'ha de posar en contacte amb el proveïdor d'allotjament i li pregunto per problema amb la connexió
Si només veu "Iniciant prova de traducció" o gens en absolut el més probable és que vostè no té instal lat el mòdul CURL en PHP.
Si utilitzeu Microsoft API, crear nous arxius php i posar aquest codi en el seu interior.:
PHP Code:
<?php
require_once('./global.php');
echo "Starting translation test MS<br/>\n";
$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, 'http://api.microsofttranslator.com/V2/Ajax.svc/Translate?appId='.$vbulletin->options['vbenterprisetranslator_microsoftappid'].'&from=pl&to=en&options={%22ContentType%22:%22text/html%22}&text=witaj');
curl_setopt($connection, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)');
//curl_setopt($connection, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, 1);
$time = microtime(true) * 1000;
$result = curl_exec($connection);
$time = microtime(true) * 1000 - $time;
echo 'Test result: '.$result."<br/>\n";
echo 'Test error: '.curl_error($connection)."<br/>\n";
curl_close($connection);
echo 'Connection time (ms): '.$time;
?>
Que pujar al teu servidor, a la carpeta arrel del fòrum, i indicar un enllaç al seu navegador.
Heu de veure alguna cosa com això:
PHP Code:
Starting translation test
Test result: "Hello"
Test error:
Connection time (ms): 272.083984375
Si alguna cosa surt malament vostè rebrà un error, és a dir, si vostè posa mal Microsoft ID:
PHP Code:
Starting translation test
Test result: "ArgumentException: Invalid appId Parameter name: appId xxx"
Test error:
Connection time (ms): 416.24194335938
Del que ha de enganxar la seva identificació Microsoft acuradament una vegada més
També pot obtenir aquest missatge d'error (amb un valor de ID diferent), el que significa que es bloquejada per Microsoft:
PHP Code:
Starting translation test MS
Test result: "InvalidOperationException: : ID=3641.V2_Json.Translate.365033CA"
Test error:
Connection time (ms): 237.756103516
En aquest cas vostè haurà d'enviar un correu a suport tècnic de Microsoft: mtcont@microsoft.com
la inclusió d'aquest contingut:
-Traductor de Microsoft API Identificació
-Completa el codi d'error, és a dir: InvalidOperationException:: ID = 3641.V2_Json.Translate.365033CA
-Descriure el problema, - quan apareix, etc