在WordPress中将HTML语言从en-US更改为en-GB? [英] Change HTML language from en-US in to en-GB in WordPress?

查看:67
本文介绍了在WordPress中将HTML语言从en-US更改为en-GB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这听起来像是一个简单而琐碎的问题,但是我在WordPress主题头文件中使用了以下标记:

This may sound like a simple and trivial question, but I'm using the following tag in a WordPress theme header file:

<html <?php language_attributes(); ?>>

正在输出:

<html dir="ltr" lang="en-US">

我希望将 lang 属性更改为"en-GB",因为我的博客和所写的语言帖子均为英式英语(en-GB),但我找不到此参数的位置是在WordPress管理员设置中设置的,并且 wp_options 数据库表中也没有该值,这使我相信设置 lang 值必须是有点黑暗的艺术?

I wish to change the lang attribute to "en-GB" as my blog and the language posts are written in are British English (en-GB) but I can't find where this parameter is set in the WordPress admin settings, and there isn't a value for it in the wp_options database table either, which leaves me to believe setting the lang value must be some sort of dark art?

推荐答案

使用以下命令定义语言属性:

Define the language attribute using:

define ('WPLANG', 'en-GB');

有关详细信息,请访问 http://codex.wordpress.org/Installing_WordPress_in_Your_Language

You can get more information on it at http://codex.wordpress.org/Installing_WordPress_in_Your_Language

这篇关于在WordPress中将HTML语言从en-US更改为en-GB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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