轻松解决Wordpress后台汉化问题

Posted on 01月 31, 2008
Filed Under 个人日记 |

        今天有朋友问,装了wordpress中文版后,语言包是中文的 但后台还是英文,咋办涅,其实很简单,跟我来,首先深吸一口气,注意力集中在身体中下偏后部…….

言归正传,打开 wp-includes\gettext.php 文件
找到118行 下面这段亲切的语句

  1. if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms

  2.       $this->BYTEORDER = 0;

  3.     } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {

替换成下面的一小堆:

  1. if ($magic == $MAGIC1) {

  2. $this->BYTEORDER = 0;

  3. } elseif ($magic == $MAGIC2) {

保存,上传,刷新,解决。

Comments

One Response to “轻松解决Wordpress后台汉化问题”

  1. 冷锋 on 01月 31st, 2008 2:22 am

    新手学习中,找了半天没找到,感谢你的热心回答。

Leave a Reply




  • About

    This is an area on your website where you can add text. This will serve as an informative location on your website, where you can talk about your site.

  • Admin