Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tell chrome language of your web site (as a hint to the translate bar)

I have a web app that is in queens engrish but the chrome translate bar pops up and tells me that its in Estonian.

I have tried lang and xml:lang but the google translation bar seems to ignore these.

Note: The web application is totally Ajax and the content that causes the bar to pop up is dynamic content that can appear long after the page load. So perhaps I have to add a header to my Ajax responses??

Anyone ever had issues like this?

Guido

like image 867
gatapia Avatar asked Aug 25 '10 00:08

gatapia


People also ask

How do I enable Google Translate popup?

Right-click anywhere on the page and select "Translate" from the context menu. This will automatically translate the contents of the web page to Chrome's set language.

How do I translate an entire website into another language?

Launch Google Chrome and go to the Google Translate website i.e. translate.google.com. Type the entire URL of your website in the text box on the left. Select the new language you wish to translate your website into. Click the Translate button.

Does Google Chrome automatically translate?

Google Chrome lets you automatically translate a webpage not written in your browser's default language. Like most online translation software, though, it can be a little unreliable. If you don't need it—or if you use a different translation service—here's how to turn Chrome's off.

What is the shortcut for translate in Chrome?

Save precious moments by using keyboard shortcuts and get translations without opening the Intento Translator extension each time. Press Ctrl+M (⌘M on Mac) to translate the whole page or selection. If you want to switch back to the original text of the page of selection, press Alt+M (⌥M on Mac).


1 Answers

I would just add a lot of text in the about section or in a hidden div, or something like that - your browser may need some more text to correctly define a language. You're not the first one to have this problem.

They said you could avoid translation by doing this:

<body class="notranslate">

or:

<meta name="google" content="notranslate" />

But have a look yourself :)

like image 139
Maxime Kjaer Avatar answered Nov 15 '22 05:11

Maxime Kjaer