Hi.

So I tried to plop Google's code for translation directly onto my site and, since everything is set to restricted to authenticated, I get access denied (as expected I suppose). I am not sure how this module works, but I hope it sends the page out to the translator and then retrieves the updated version such that an authenticated user won't appear to be "booted" and will have access to the rest of the site as normal.

In any case, when will this be available for Drupal 6?

Thanks,

Dan

CommentFileSizeAuthor
#24 gtranslate 2.zip6.22 KBdmcfaul
#1 gtrans-6.x-1.0.zip9.87 KBjereme.guenther
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jereme.guenther’s picture

Status: Active » Needs work
FileSize
9.87 KB

I've been working on porting this module to Drupal 6.

I've got it working on my site but haven't done extensive testing with it, so it is definitely a development version; however I would be interested to see if it works for you. It does have issues keeping a user logged in through the translation process; it wasn't an issue for me site my whole site is public currently.

It's a self contained module so if it breaks your site just turn it off and delete the files (it doesn't translate the admin area so even if it breaks your site you should be able to get into the admin area).

I send an email to this module maintainer about my work but haven't heard back.

grub’s picture

Hi Jereme,

I just installed your 6.x version and have it working, I had to update the IP address though, it looks like this is a common problem: http://drupal.org/node/229073

update: i got some strange behaviour, on user logging out, the site was stuck in the google translated version and administrative tasks were failing. disabling the module fixed things though.

webdrips’s picture

Hi Jereme.

I agree with Grub.

The module works the first time, but then starts giving validation errors and gets stuck in the other language until the module is disabled.

Still I think this will be a GREAT module once the known issues and this issue gets resolved.

Regards,

Dan

jereme.guenther’s picture

Good point, I hadn't noticed that problem, shows how much time I spent troubleshooting it.
The translation reverting should be a simple session state issue; When I get some time and fix the issue I will post the updated version here.

jereme.guenther’s picture

Actually after going back and looking at it I realize I did know about the issue.
For some reason Drupal is having trouble validating the form on post back. It works the first time but successive attempts through validation errors which prevent the form's submit method from being called. I haven't figured out how to fix that.

However, there is a sort of work around. One of the options in the admin area is to turn it into a list of hyperlinks instead of a dropdown list. The hyperlinks work correctly as near as I can tell.

kenorb’s picture

Tested and after IP change it almost working fine.

UPDATE:
After some testing, when I'm clicking language, it have wrong link (to different that's correctly). After disabled cache, it working better.
But another issue is that some paths are invalid and it redirecting to the main site (i.e. gtrans/he%3Fdestination%3Dsome-page%253Fgtrans%253Dtrue). URL is wrong coded.
And sometimes when you click specified language, nothing happen.
But I don't know if it's related to 5.x as well, or after conversion.

UPDATE2:
On other web site, when I'm changing language, nothing happen, it still the old version. I've tried clear and disable cache and it's the same.

scott859’s picture

Subscribing

OFF’s picture

not working with russian language

green monkey’s picture

Subscribing

Anonymous’s picture

subscribing

doomed’s picture

I would love to see this ported to Drupal 6.

jereme.guenther, if the original author doesnt say anything, i suggest you create your own Drupal project page and post the latest version there.

It will be easier for everyone.

matteoraggi’s picture

Why not use directly the google translator code?

What it change ?
http://translate.google.com/translate_tools

artatac’s picture

watching

mrgoltra’s picture

any updates?

pescetti’s picture

subscribing

ethosophical’s picture

Watching.

mojoinst’s picture

Hoping :)

Summit’s picture

Subscribing, greetings, Martijn

dmcfaul’s picture

Hey guys, I wrote a version of this module to work with Drupal 6 a few months ago, but there is quite a bit of cleanup needed to be done to it before I would be comfortable releasing it here. Is there still interest in this module? If there is I'd hopefully be able to get something submitted in the next few weeks.

belekas’s picture

I think there are plenty. Including me.

Summit’s picture

Yes please, submit it, great!
Greetings, Martijn

dmcfaul’s picture

Ok, well I'm in progress then. I'll keep you updated here, and probably create a new project node in the near future.

dmcfaul’s picture

Hey guys, quick update here.

Quite a bit more work to be done here than I thought. I have the basic framework done and translation is working, but I need to add support for CCK and other types of nodes to be translated that don't only have a title, teaser, and body fields.
I have a few more bugs to work out as well.
Once I'm finished with it, I'll probably just host it somewhere so that those of you who want it right away can grab it.
Due to the Drupal process of module dev, I still need to apply to take over the google translation module and then I'll be able to update it with my code...so until that happens this won't be hosted by drupal.org
I'm working as fast as possible, I'll try to get v1 out as soon as I can!

dmcfaul’s picture

FileSize
6.22 KB

To anyone interested:
I've attached a working version of this module to this post which works for Drupal 6.
I have not fully tested this module so use at your own risk.
There is a readme file included.

I have done it this way as me becoming a maintainer of this module may take a long time or may not work at all, depending on how "Omar" decides...Seeing as he is never present here and hasn't done any work on this in over a year, this may be the only way for me to submit updates.

Good luck!

belekas’s picture

Thanks you for the update. However, I can't figure how to use it. I have locale, content translation and gtranslate enabled. Choosed "Enabled, with translation" under workflow. Then readme says - "then select the check box for google translate under workflow". Where should I find that (under content-type workflow, there are no google translate checkbox)?

dmcfaul’s picture

Do you have the gtranslate module enabled under admin/build/modules ?
I just tried this on a fresh install and it is working properly.

belekas’s picture

Yes, I have enabled it. However, I can't understand how to switch between languages. There is no such block that allows that. Could you explain where should I do this part - "then select the check box for google translate under workflow"? I will try to enable it on a fresh install also, maybe it is conflicting with some of the modules of my current install.

rbkemp’s picture

I also cannot locate the check box for google translate in the workflow settings for each content type.

dmcfaul’s picture

What content types are you trying to use this with? I've tested it with blog, page, and story node types.

dmcfaul’s picture

as for switching between languages, in the links that are printed out for a node you should see a link that says something like "view in spanish", etc. Also, say you create a node and it's id is 5. Go to this page /node/5/translate and you'll see the translations available for this node. This is an administrative function and not a public function though.

rbkemp’s picture

I've looked at the Workflow section for each of those content types (and others) and do not see the "google translate" option.

I do have several translation modules turned on: Internationalization, Language Icons, Localization client, Translation overview, Translation table. So is there a potential conflict between the manual translation options and the automatic gtranslate?

rbkemp’s picture

When I view a /node/%/translate page, it shows two tables. 1) All the enabled languages (at admin -> settings -> language), Title, Status (published, not translated), and Operations (edit, translate). 2) For each enabled language, add the title of the node which is a translation of the main node.

If I have a translation of a node, then below the post in normal view is a flag/language which, when clicked, displays the manually translated page.

The above description seems to line up with your comment in #30. The inability to automatically translate is still missing from the node (and as an option in the Workflow in the content types).

edo888’s picture

Status: Needs work » Fixed

Available for Drupal 6.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

priyanka.salunke’s picture

plz provide help in translation

which module u hv used?????/

plz atleast guide me

m using internationalization