I installed: translation framwork, google_translation and node translation, but cannot get translations working.

One year ago I used V1.0 of these modules, after changing the google url (http://drupal.org/node/342764) this worked fine!

I now installed V1.2, there was no translation, after that, I tested versions 1.1, 1.0 and dev. For all these version there was no translation of the main text, or the translated language was the same as the default language. It looks like there is no connection with the Google server.

I have no errors in the log file(s), I tried Translation framework with the Get and Post request method, Google url: "http://translate.google.nl/translate_t?langpair=" (default). With and without mappings set (what does this do?). Node translation setting source language is dutch (= default site language).

Is this a bug or a wrong Google url, I don't think it is a setting problem, it worked in V1.0.
I looked in the issues, but cannot find the sollution for this.

Comments

darren.ferguson’s picture

Sometimes if there have been errors the drupal_http_request function will always return nothing kinda a failsafe that is not very good.

Can you check that function and make sure the site is no longer having the issues.

Anonymous’s picture

Drupal update is working, it uses drupal_http_request.

I used the module HTTP Request Fail Send to reset the variable "drupal_http_request_fails" on cron.
Testing with V1.2 and dev, I cannot get it working.

I noticed a time out error in the Drupal log file: "Google Translation Failed: Code: -110, Error: Connection timed out", also 404 errors: "Google Translation Failed: Code: 404, Error: Not Found"

There is a feedback string when clicking on "translation" in the node translation pop up window:

{ "title": "\x3ch3\x3eTranslation from Nederlands to Engels\x3c/h3\x3e", "body": "\x3ctable class=\"sticky-enabled\"\x3e \x3cthead\x3e\x3ctr\x3e\x3cth\x3e\x3ca href=\"/nl/node_translation/translate/61/en?sort=asc\x26amp;order=Element\" title=\"volgens Element sorteren\" class=\"active\"\x3eElement\x3c/a\x3e\x3c/th\x3e\x3cth\x3e\x3ca href=\"/nl/node_translation/translate/61/en?sort=asc\x26amp;order=Source\" title=\"volgens Source sorteren\" class=\"active\"\x3eSource\x3c/a\x3e\x3c/th\x3e\x3cth class=\"active\"\x3e\x3ca href=\"/nl/node_translation/translate/61/en?sort=desc\x26amp;order=Translation\" title=\"volgens Translation sorteren\" class=\"active\"\x3eTranslation\x3cimg src=\"/misc/arrow-desc.png\" alt=\"sorteerpictogram\" title=\"aflopend sorteren\" width=\"13\" height=\"13\" /\x3e\x3c/a\x3e\x3c/th\x3e \x3c/tr\x3e\x3c/thead\x3e\n\x3ctbody\x3e \x3ctr class=\"odd\"\x3e\x3ctd\x3eTitel\x3c/td\x3e\x3ctd\x3etest translate\x3c/td\x3e\x3ctd class=\"active\"\x3e\x3c/td\x3e \x3c/tr\x3e \x3ctr class=\"even\"\x3e\x3ctd\x3eBerichttekst\x3c/td\x3e\x3ctd\x3e\x3cp\x3eDit is een test voor de node translate module\x3c/p\x3e\x3c/td\x3e\x3ctd class=\"active\"\x3e\x3c/td\x3e \x3c/tr\x3e\n\x3c/tbody\x3e\n\x3c/table\x3e\n", "footer": "\x3cdiv style=\"text-align: center;\"\x3e\x3ca href=\"/nl/node/add/page?translation=61\x26amp;language=en\"\x3eCreate Translation\x3c/a\x3e\x3c/div\x3e" }
strae’s picture

Version: 6.x-1.x-dev » 6.x-1.2

I have the same problem here, when i click the language to translate the node, appear another pop-up showing the original text, but the translation column is empty.

In this page, every click except the 'Create translation' link show me a blank page with an json array.

Im using the version 6.x-1.2

Edit: i've tryed to switch both the Translation Framework and Node Translation modules to the 6.x-1.1 version, but doesnt works anyway.
Couldnt be that google changed the parameters for the request (url, args)?

darren.ferguson’s picture

Priority: Critical » Normal

google have altered their web api so the google translation module cannot get any information from it, until this can be resolved the translation framework and hence node translation will not be working.

strae’s picture

I thought something similar, thanks.. hope will be fixed soon (i'll be glad to give an hand, but im pretty new in drupal)