Closed (fixed)
Project:
Google Translate Links
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Nov 2009 at 04:05 UTC
Updated:
24 Dec 2009 at 21:20 UTC
I am just starting up a site. Trying to get translation issues put away before i get too far. Love the idea of your module. Unfortunately i am not a coder.
I am seeing two bugs when using your module:
1. The link is sending a https:// address instead of a normal http:// address. I can figure out why this would be. Google chokes on it.
2. Some of your icons are broken. (only English is working for me.)
You can see this situation here:
http://gnsidc.org/drupal6/index.php?q=owupdate1
I hope you can fix this. I would love to use it.
Comments
Comment #1
blinkingtwelve commented@1
If you access your site over SSL (https), this module will point Google to the SSL version. GT does not proxy HTTPS. So, the right thing to do would be to not show the block if the page in question is being accessed over SSL. I'll patch this in soon.
If you want the links to point GT to http, access your site over http. If you access your site over https, the links will point GT to https, which won't work.
@2
Your web server setup (IIS) seems to have some trouble mapping URL-encoded unicode to filenames. If you'd rename your flag image files to contain only ASCII-characters you avoid this issue. See README.txt for info on how to name your files. For instance, rename
02_Français_fr.pngto02_French_fr.png.Comment #2
blinkingtwelve commented@1
Fixed in 2.0-beta2.
Comment #3
bgriswold commentedI have not been using SSL or HTTPS in my site, so I am not sure why this would be a problem.
I have done as you suggest and renamed the flag files.
I downloaded and installed the 2.0 beta 2. Placed it in /sites/all/modules
Activated the module in the modules list and activated it in the Block list.
But it will not show on the site no matter what access level I have.
This might suggest that the module thinks I am accessing via SSL. But all my documents are located in the httpdocs folder and as you can see I am using an http://gnsidc.org address
So I am a bit perplexed.
Comment #4
blinkingtwelve commentedIIS appears to differ from Apache re the value of $_SERVER['HTTPS'].
Try this gtranslatelinks.module with the fix I put into CVS. Hopefully, you will get your links back on http, and will see no links if you access your site over https (please test).
Comment #5
bgriswold commentedIt now seems to work. It shows on my pages and takes me to Google translate. Now we need a way to escape the google translate window. I seem to get trapped in there with no obvious way out. The translation links disappear when viewed in the Google Translation mode.
Thanks for the improvements!
Comment #6
bgriswold commentedThe Google Translate Links Block does not show up in the Admin area. This is especially a problem when on the blocks page where blocks are assigned. Unlike other blocks it will not appear, even when assigned.
Comment #7
blinkingtwelve commented@ #5:
Good to see it's working on IIS now.
No, Google does not provide an obvious way out. And all links get rewritten by the Google proxy, so putting in a link back to the original content will not work (Google will rewrite it to point to its servers).
@ #6:
That's advertised functionality (per the README.txt). However, making the block show up as a placeholder on the block configure page may be a good idea. I think I'll work on that.
The issue in the issue title is fixed, so I'm marking this issue fixed. If you want to track the placeholder feature request you'll have to file an actual feature request (separate issues should be tracked separately).
Cheers!