Download & Extend

On the fly translation not working

Project:GTranslate
Version:7.x-1.7
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

Unfortunately, when I use "on fly" method, nothing happens when I select a language from the dropdown. Tested on English pages, trying to translate into various other ones. Using Zen 1.1 theme (if that matters).

Comments

#1

Make sure that you have jQuery library loaded (by default Drupal loads it).

#2

@edo888 -- jQuery is indeed loaded and running.

#3

subscribe

#4

Do you have a public URL? Can I see your website with the issue?

#5

Priority:critical» normal
Status:active» postponed (maintainer needs more info)

#6

Same problem. But it works, for example, on the page /admin/build/modules

"Make sure that you have jQuery library loaded" -- what should be done for this? If module works on some pages, then the problem might be not it jQuery.

#7

Also it works, if, for example, I edit a page with TinyMCE.

#8

For the time being I gave up on this module because of this problem.

However, I discovered that there were two Drupal 6 versions of gtranslate installed in my modules folder. One under 'gtrans', from the released but unlisted version at http://drupal.org/project/gtrans (but inside it is called 'gtranslate'!), the other from this 'gtranslate' module. This may have caused or added to the problem described in this queue. See also #708720: Confusion between gtrans and gtranslate.

#9

Version:6.x-1.1» 6.x-1.3
Status:postponed (maintainer needs more info)» active

Do you have a public URL? Can I see your website with the issue?

I've created one for you: http://www.uia.be/node/144

This page is the only one on this website that has "on fly" translation enabled. You can see that changing the language does not achieve a translation.

Could you please have a look and provide some hints as to what could be the problem -- or is it a bug in gtranslate?

Thanks!

(FYI: The other methods work fine, but they are unsatisfactory. The Google default one pushes the content down using CSS, even before translating anything, and the redirect method is not useful.)

#10

I have checked your http://www.uia.be/node/144 page with Google Chrome and Firefox and the translation worked for me.

#11

Status:active» postponed (maintainer needs more info)

@edo888 -- yes, you are right, in a way. It works for anonymous users, it works even for logged in users. Sorry for not checking thoroughly previously.

It does not work when I am logged in as admin in Firefox 3.6 (even when I disabled all addons!)
It however does work when I am logged in as admin in the latest Chrome!
Guess there is a clash with some other enabled module, but I cannot find which one. Any hint what to look for - some jQuery library or other strings? Do you have experience with any module that was conflicting with GTranslate? Thanks.
Until this is identified I am setting this issue back to "postponed".

#12

I'm having a similar issue. vacilando, did you ever figure this out?

#13

@spazfox - I don't recall what the problem was at that time. I may have just waited for later version. But I confirm that the current version 6.x-1.5 works perfectly for me.

#14

i am having the same issue.

#15

I have the same issue with the 6.x-1.5 version. On the fly does not work at all (images and dropdown both broken). Chrome complains that jQuery is undefined. Dont know why, dont care. Dont use it anyways. Google Default works just fine.

#16

I'm having this problem when logged in as admin. It doesn't appear to be an issue when an anonymous user. I haven't yet checked my registered users or unverified users. (Need to get to sleep, just compulsively checking one last thing).

#17

I have the same problem.

But I figured it out. On admin pages on the fly works, but on my node page it does not.

But then Noticed it. It translates only the text in my gallery formatter slide, and skips the content of the rest of the page.

So, only the slide-show text gets translated.
If I use any other translate method they all work.

Here is a link: http://emcaregardenroute.co.za
look at the text inside the image gallery as you click on the different flags

#18

Could this be the problem

The script file in the "head" for Google language is run last. My gallery-formatters.module runs its js script much higher in the "head section"

Is that why it only translate the gallery text?

#19

I found a problem in the gallaryformatter js file.

infiniteCarousel.js on line 66 change < to >

#20

On the fly translation stops working when the <script> is run in the closure section and not in the head.
How can I get the js to work in closure?

#21

Version:6.x-1.3» 7.x-1.7

I noticed similar symptoms like vlooivlerke with 7.x-1.7. If logged in as admin, gtranslate works, for anonymous users it doesn't.
I solved this issue when I turned off "Compress cached pages" and "Aggregate JavaScript files" in Bandwith optimization. (admin/config/development/performance).
However it would be nice to have this options back and turned on..

#22

After testing a bit more I find that it works as expected when cache is turned off only. When cache is turned on I think it refuses to load resources.

#23

Edit: It seems I definitely found the "conflict" option. It is the "Cache blocks". When I turned it off, the "on the fly" translation works as expected. Otherwise the translation not works. All other cache and agregate options can be used safely, so I am happy now.

#24

Priority:normal» major

Fixed ......

nobody click here