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?
Update: according to Google
They recommend you make it obvious what your site’s language is.
Use the following which seems to help although
Content-Languageis deprecated and Google says they ignorelangIf that doesn’t work, you can always place a bunch of text (your “About” page for instance) in a hidden div. That might help with SEO as well.
EDIT (and more info)
The OP is asking about Chrome, so Google’s recommendation is posted above. There are generally three ways to accomplish this for other browsers:
W3C recommendation: Use the
langand/orxml:langattributes in the html tag:UPDATE: previously a Google recommendation now deprecated spec although it may still help with Chrome. :
meta http-equiv(as described above):Use HTTP headers (not recommended based on cross-browser recognition tests):
Exit Chrome completely and restart it to ensure the change is detected. Chrome doesn’t always pick up the new meta tag on tab refresh.