How to block bar suggestion of Google Chrome

I’m brazilian and Google Chrome always show that bar saying that my pages are in English, but are not…

My DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pt-BR">

and a screenshot:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pt-BR">

<head>
        <title>Teste pt-BR</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
        
        <h1>teste de conteúdo em pt-BR</h1>
        <p>Este texto é o único conteúdo do site e está em pt-BR</p>
        
</body>

</html>

Is there anything else to make the browser identify which language the page?
Thanks.

I know you can disallow Google Translate on a page by adding a meta tag in:

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

I don’t know if Chrome hooks into that as well though. Give it a test and see what happens. I think that will work in Chrome 11+

I wouldn’t suggest disableing Google Translate altogether. Rather, try sending the language in the HTTP header as well:

header('Content-Language: pt-BR');

Also, Google might not recognize language subcategories. Have you tried just using pt, just to check if it works?

It works! :wink:
But… now does not suggest any translation. What if… Tomorrow I make a page that needs translation suggestion, but in the case of pt_BR to en_US?

Do you have any tag to make the suggestion?
Thanks.

That is exactly why I recommended against disableing translation. It’s a bit like curing a cold with 240 grains of lead :wink:

Might also be a version problem: Auto translate detect the wrong language. Why is it so? - Toolbar Help

Not sure about the 2nd part of the question. I just only remembered how to block the bar completely. :slight_smile:

Did you find this issue to also happen in other browsers with the Google toolbar or just in Chrome?

Just in Chrome, but works for my application.
Thanks FFCus and C. Ankerstjerne. :wink: