views:

203

answers:

6

The new Google Chrome auto-translation feature is tripping up on one page within one of our applications. Whenever we navigate to this particular page, Chrome tells us the page is in Danish and offers to translate. The page is in English, just like every other page in our app. This particular page is an internal testing page that has a few dozen form fields with English labels. I have no idea why Chrome thinks this page is Danish.

Does anyone have insights into how this language detection feature works and how I can determine what is causing Chrome to think the page is in Danish?

A: 

Please post a URL of a page that shows the problem.

DrDick
It's an internal application.
Sam
A: 

I am also getting this problem. Have you sorted yours out?

Rod
nope, not yet. :(
Sam
A: 

Chromium thinks this page in Filipino: http://www.reyalvarado.com/portfolio/cuba/ Notes: There is pretty much no text on the page except for the owner's name and the menu items. Menu items are dynamically replaced with images by FLIR.

The HTML declares the page as US English:

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> 
James Revillini
A: 

Have the same problem at any page in English.

+1  A: 

use the following.

<meta name="google" value="notranslate">

if that doesn't work, you can always place a bunch of text (your "About" page for instance) in a hidden div. might help with SEO as well.

Emile
A: 

Without knowing what the text was, perhaps the ngram detection is being tricked by the content of your page.

http://googleresearch.blogspot.com/2006/08/all-our-n-gram-are-belong-to-you.html

https://secure.wikimedia.org/wikipedia/en/wiki/N-gram

NinjaCat
But the question is, how can I debug it or get more info for Chrome to figure out exactly why it made the choice it did?
Sam
Without seeing the text, I cannot say for sure. Some things to try: - If you copy the text and paste it into translate.google.com, and set it to "Detect Language", does it tell you that it's English or not? - If it says it's Danish or whatever, then I would start removing sentences until you find the troublemaker.
NinjaCat
Hi Sam -That's in effect what I am suggesting. There's no way to ask it why it made the decision. There's some sentence or wording in your text that is tricking it (after all machine translation is not nearly perfect).In order to debug this thing I would take out sentence by sentence until it recognizes the correct language.
NinjaCat