Block still visible in GT
Vako - October 13, 2009 - 04:54
| Project: | Google Translate Links |
| Version: | 6.x-2.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Wicher Minnaard |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Clicking any flag will take us to GT but the block is still visible. I believe this is a wrong behavior and it should be disabled not to create a 'nested translation'.
I have the block set as Content Top.

#1
you can check the behavior at : www.keghart.com
#2
#3
It may well be the case that some http load balancer or reverse proxy or something in your webserver setup is stripping out the HTTP 'VIA' header. This module uses the fact that Google sets this header to 'translate.google.com' to determine that a certain request is coming from the GT's translating proxies. Ask your hoster.
A simple testcase would be to upload a php script like this one:
<?phpprint($_SERVER["HTTP_VIA"]);
?>
make it publicly accessible (check it) and feed it into Google Translate. The output should contain 'translate.google.com'.
#4
your code is coming back with:
1,0 TWSFE/0.9 translate.google.comit does contain the text you were expecting.
How can I describe this situation to my host or what should I ask them?
#5
So the header is getting through.
Another thought. Do you have caching enabled in Drupal?
#6
Yes, I do, I also have the Boost module. I disabled both and cleared their cache. Still having the same issue.
I noticed another issue popping-up (even before I disabled the cache); sometimes, when I click on any of the flags, I get the following message:
We are not yet able to translate from Armenian into French.
even though we are not translating anything from Armenian!!
Try it please.
#7
Also I have received several complaints from viewers that the pages are not translating what they want, so I am only displaying the block on the front page now. the nodes don't have it.
#8
I'm out of ideas on your sites' problem. Setting this to 'postponed' until related bug reports from other sites come in - maybe then we'll find a common cause.
#9
under
/admin/settings/languageI had Armenian as the 1st option, although English was the default selected. I deleted Armenian and the site worked for couple of hours, until I started messing around with the flags (added couple) then the problem came back!Do you think GT was picking-up the 1st option from Drupal?
I change the location of the Block from content top to Left sidelink without any improvement as well.
so far I have the following three issues, hopefully we can find a solution in the future:
- After the translation, we land on a different page.
- Block still visible after the translation (in GT)
- Sometimes, the page cannot be translated and picks-up the wrong language code.