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

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

问题描述

我有一个Google Chrome坚持使用法语的网页。
下面是它的快照:

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

http://yootles.com/outbox/overcleverchrome.html

请注意,我要添加一个元http-equiv标记,告诉它事实上用英语:

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">

但它没有帮助。
我还能做些什么来防止这种情况吗?

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

推荐答案

目前需要多个标签才能使(HTML5)文档选择停止翻译。在此之前,您应确保自己了解您的受众群体的语言,否则将会阻止外国网站正确翻译您的网站。

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>

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

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