Chrome认为英语网站是土耳其语

时间:2013-03-21 19:17:48

标签: html html5 google-chrome

我正在测试一个非常简单的网站 - 它是一个主要基于图形构建的占位符网站 - 当我刚刚将其加载到Chrome中时,Chrome工具栏会告诉我这些网页是土耳其语,并询问我是否要翻译。我在代码中找不到可能导致此问题的任何内容。我只是把它全部放在这里,因为它没有多少。以下是整个页面代码,品牌名称已更改。 (品牌名称中没有任何内容表明他们会被解释为土耳其语。)

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Acme Vineyards &#8472; Sonoma County</title>
        <meta name="description" content="Acme Vineyards: Farming with Purpose in Sonoma County, California">
        <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
        <link rel="stylesheet" href="normalize.min.css">
        <link rel="stylesheet" href="main.css">
        <!--[if lt IE 9]>
            <script src="js/vendor/html5-3.6-respond-1.1.0.min.js"></script>
        <![endif]-->
    </head>
    <body>

        <nav>
            <ul><!-- before adding anchor tags, uncomment the :hover lines in main.less -->
                <li id="durell">Marnell Vineyard</li>
                <li id="gaps-crown">Gap&rsquo;s End Vineyard</li>
                <li id="dupont">Acme Vineyard</li>
                <li id="wilson">Smith Vineyard</li>
                <li id="one-sky">One Star Vineyard</li>
            </ul>
        </nav>
        <div class="main-container">
            <h1>Acme Vineyards: Farming with Purpose in Sonoma County</h1>
        </div>
        <div class="footer-container">
            <footer>
                <dl id="phone">
                    <dt class="office">Office: </dt><dd class="office"><a href="tel:5555555555">555-555-5555</a></dd>
                    <dt class="fax">Fax: </dt><dd class="fax"><a href="tel:5555555555">555-555-5555</a></dd>
                </dl>
                <ul id="mail">
                    <li id="email"><a href="mailto:info@acmevineyards.com">info@acmevineyards.com</a></li>
                    <li>PO Box 55555, Sonoma, CA 95555</li>
                </ul>
            </footer>
            <p id="credits">Site Design: <a href="http://acmedesign.com" target="_blank">Acme Design</a>
        </div>
        <div id="badge"></div>
    </body>
</html>  

3 个答案:

答案 0 :(得分:3)

使用<meta>标记来指示Chrome内容并忽略翻译

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

答案 1 :(得分:3)

question幸运地添加了这些元属性以强制Chrome不尝试翻译:

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

答案 2 :(得分:2)

您的问题是&#8472;

对我来说看起来像个土耳其人!