Active
Project:
Translate Drupal with GTranslate
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2009 at 18:43 UTC
Updated:
26 Sep 2019 at 11:08 UTC
Jump to comment: Most recent
Comments
Comment #1
edo888 commentedMake sure that you have jQuery library loaded (by default Drupal loads it).
Comment #2
vacilando commented@edo888 -- jQuery is indeed loaded and running.
Comment #3
zoia commentedsubscribe
Comment #4
edo888 commentedDo you have a public URL? Can I see your website with the issue?
Comment #5
edo888 commentedComment #6
Mavros Gatos commentedSame 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.
Comment #7
Mavros Gatos commentedAlso it works, if, for example, I edit a page with TinyMCE.
Comment #8
vacilando commentedFor 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.
Comment #9
vacilando commentedI'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.)
Comment #10
edo888 commentedI have checked your http://www.uia.be/node/144 page with Google Chrome and Firefox and the translation worked for me.
Comment #11
vacilando commented@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".
Comment #12
spazfoxI'm having a similar issue. vacilando, did you ever figure this out?
Comment #13
vacilando commented@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.
Comment #14
pixelsweatshop commentedi am having the same issue.
Comment #15
crystaldawn commentedI 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.
Comment #16
Avalanche commentedI'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).
Comment #17
vlooivlerke commentedI 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
Comment #18
vlooivlerke commentedCould 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?
Comment #19
vlooivlerke commentedI found a problem in the gallaryformatter js file.
infiniteCarousel.js on line 66 change < to >Comment #20
vlooivlerke commentedOn 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?
Comment #21
advix commentedI 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..
Comment #22
advix commentedAfter 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.
Comment #23
advix commentedEdit: 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.
Comment #24
alimosavi commentedFixed ......
Comment #25
rickharington commentedSorry guys, but I've installed the module and have never had the Cache blocks enabled under performance and it's not working for me. Default works.
Comment #26
avpadernoBugs are fixed in the development snapshots (the releases created from branches).