草庐IT

facebook - :locale:alternate What are the fundamentals - It seems to be important?的语言

coder 2024-02-27 原文

Google 肯定会使用这些元标记。我测试了一个页面 here添加后,该工具会获取数据......因此 og(开放图谱)标签对于 Google 搜索非常重要。

因此我们需要深入了解它们。但是,访问 ogp.me 并加载他们的 specification page产生一个空白页(我想知道那里发生了什么)?

他们的单一信息网页告诉我们:

The following properties are optional for any object and are generally recommended:

og:locale - The locale these tags are marked up in.  
Of the format language_TERRITORY. Default is en_US.   
og:locale:alternate - An array of other locales this page is available in.

他们给了我们一个例子:

<meta property="og:locale" content="en_GB" />  
<meta property="og:locale:alternate" content="fr_FR" />  
<meta property="og:locale:alternate" content="es_ES" />

网络上的理论是,'locale' 确定文档适用的区域(available in),'alternate' 提供额外的文档适用区域。

然而,对于大量网站而言,这似乎是一场等待中的灾难。 Bing SEO 上的一个小伙子声称,对于“语言环境”,除 en_US 之外的任何其他内容都会杀死您的文档分发(全局),但法语、西类牙语、德语、日语等又如何呢? 我的网站启用了翻译,其内容真正适用于全局受众。 我是否要列出所有语言......这样做会冒被指责为“垃圾邮件区域”的风险?

我们对这些标签没有深入的解释,但它们似乎太重要了,无法猜测。 是否有人了解基础知识,以便我们可以正确地编写网站代码?

最佳答案

这些标签仅用于 Facebook。这对谷歌没有影响。他们有自己的建议用于处理语言环境和语言。

  1. http://googlewebmastercentral.blogspot.com/2011/12/new-markup-for-multilingual-content.html
  2. http://googlewebmastercentral.blogspot.com/2010/03/working-with-multi-regional-websites.html
  3. http://support.google.com/webmasters/bin/answer.py?hl=en&answer=182192

关于facebook - :locale:alternate What are the fundamentals - It seems to be important?的语言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14586159/

有关facebook - :locale:alternate What are the fundamentals - It seems to be important?的语言的更多相关文章

随机推荐