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

Vako - October 13, 2009 - 04:56

you can check the behavior at : www.keghart.com

#2

Vako - October 13, 2009 - 06:19
Version:6.x-1.x-dev» 6.x-2.0-beta1

#3

Wicher Minnaard - October 14, 2009 - 18:31
Assigned to:Anonymous» Wicher Minnaard

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:

<?php
print($_SERVER["HTTP_VIA"]);
?>

make it publicly accessible (check it) and feed it into Google Translate. The output should contain 'translate.google.com'.

#4

Vako - October 15, 2009 - 02:29

your code is coming back with: 1,0 TWSFE/0.9 translate.google.com
it does contain the text you were expecting.

How can I describe this situation to my host or what should I ask them?

#5

Wicher Minnaard - October 15, 2009 - 16:38

So the header is getting through.
Another thought. Do you have caching enabled in Drupal?

#6

Vako - October 16, 2009 - 03:35

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

Vako - October 16, 2009 - 03:40

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

Wicher Minnaard - October 17, 2009 - 10:46
Status:active» postponed (maintainer needs more info)

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

Vako - October 17, 2009 - 22:43

under /admin/settings/language I 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.

 
 

Drupal is a registered trademark of Dries Buytaert.