When will this be available for Drupal 6?

daneesia - July 29, 2008 - 21:23
Project:Google Translate
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:fixed
Description

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

#1

jereme.guenther - August 1, 2008 - 21:38
Status:active» needs work

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.

AttachmentSize
gtrans-6.x-1.0.zip 9.87 KB

#2

grub - August 8, 2008 - 19:39

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.

#3

daneesia - August 23, 2008 - 02:34

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

#4

jereme.guenther - September 14, 2008 - 20:52

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.

#5

jereme.guenther - September 17, 2008 - 02:59

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.

#6

kenorb - December 19, 2008 - 16:14

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.

#7

scott859 - December 24, 2008 - 03:10

Subscribing

#8

OFF - January 29, 2009 - 22:00

not working with russian language

#9

jwells - February 21, 2009 - 00:59

Subscribing

#10

pearlbear - March 25, 2009 - 22:55

subscribing

#11

doomed - March 31, 2009 - 17:01

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.

#12

matteoraggi - May 10, 2009 - 18:36

Why not use directly the google translator code?

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

#13

artatac - May 31, 2009 - 12:21

watching

#14

mrgoltra - August 12, 2009 - 06:29

any updates?

#15

pescetti - August 13, 2009 - 21:00

subscribing

#16

l33tpolicywonk - September 8, 2009 - 00:23

Watching.

#17

mojoinst - September 16, 2009 - 11:55

Hoping :)

#18

Summit - September 23, 2009 - 20:30

Subscribing, greetings, Martijn

#19

dmcfaul - October 12, 2009 - 20:33

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.

#20

belekas - October 13, 2009 - 07:56

I think there are plenty. Including me.

#21

Summit - October 13, 2009 - 08:45

Yes please, submit it, great!
Greetings, Martijn

#22

dmcfaul - October 13, 2009 - 17:57

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

#23

dmcfaul - October 23, 2009 - 18:13

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!

#24

dmcfaul - October 30, 2009 - 17:06

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!

AttachmentSize
gtranslate 2.zip 6.22 KB

#25

belekas - October 31, 2009 - 12:23

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)?

#26

dmcfaul - November 5, 2009 - 21:32

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

#27

belekas - November 8, 2009 - 07:29

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.

#28

rbkemp - November 12, 2009 - 18:46

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

#29

dmcfaul - November 16, 2009 - 02:36

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

#30

dmcfaul - November 16, 2009 - 02:38

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.

#31

rbkemp - November 18, 2009 - 21:50

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?

#32

rbkemp - November 18, 2009 - 22:02

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).

#33

edo888 - November 23, 2009 - 11:36
Status:needs work» fixed

Available for Drupal 6.x

 
 

Drupal is a registered trademark of Dries Buytaert.