如何指定网页的语言,所以谷歌浏览器不提供翻译它 [英] How to specify your webpage's language so Google Chrome doesn't offer to translate it

查看:384
本文介绍了如何指定网页的语言,所以谷歌浏览器不提供翻译它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个谷歌浏览器上的思维坚持一个页面是法语。
下面是它的一个快照:

I have a page that Google Chrome insists on thinking is in French. Here's a snapshot of it:

<一个href=\"http://yootles.com/outbox/overcleverchrome.html\">http://yootles.com/outbox/overcleverchrome.html

请注意,我包括META HTTP-当量标签告诉它,它在事实上英文:

Note that I'm including a meta http-equiv tag to tell it that it's in fact in English:

<meta http-equiv="Content-language" content="en">

但它并不能帮助。
还有什么我可以做prevent呢?

But it doesn't help. Is there anything else I can do to prevent this?

推荐答案

谷歌浏览器目前需要几个标签作出(HTML5)文件选择退出的翻译。之前这样做,你应该确保你知道你的受众的语言,否则将美元的正确翻译您的网站p $ pvent国外网站。

Google Chrome currently requires several tags to make an (HTML5) document opt out of translation. Before doing this, you should be sure that you know your audience's language, as otherwise it will prevent foreign sites from properly translating your site.

相关标签是:

<meta charset="UTF-8" />
<meta name="google" content="notranslate" />
<meta http-equiv="Content-Language" content="en_US" />

这里是一个完整的例子:

And here is a full example:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="google" content="notranslate" />
  <meta http-equiv="Content-Language" content="en_US" />
 </head>
 <body>
  Dies ist ein Test Deutsch
 </body>

这篇关于如何指定网页的语言,所以谷歌浏览器不提供翻译它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆