<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>孙威的阳光海 &#187; Wordpress英文版</title>
	<atom:link href="http://www.sunnyfly.com/blog/post/tag/wordpress%e8%8b%b1%e6%96%87%e7%89%88/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunnyfly.com/blog</link>
	<description>幸福就是珍惜现在拥有的！</description>
	<lastBuildDate>Tue, 07 Feb 2012 08:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>关于在Bluehost上WordPress中文版变成英文版的解决方案</title>
		<link>http://www.sunnyfly.com/blog/post/2008/494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost/</link>
		<comments>http://www.sunnyfly.com/blog/post/2008/494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 01:27:54 +0000</pubDate>
		<dc:creator>孙威</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[BlueHost]]></category>
		<category><![CDATA[Wordpress英文版]]></category>
		<category><![CDATA[Wordpress中文版]]></category>

		<guid isPermaLink="false">http://www.sunnyfly.com/blog/post/2008/494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost/</guid>
		<description><![CDATA[昨晚突然发现我的wordpress中文版莫名其妙的变成英文版了，查阅一些资料得知：在64位空间上安装wordpress会出不汉化的情况，这是Wordpress自身缺陷，问题的根源原来是Wordpress在64位的CPU下（linux... <table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress实现后台中文前台英文" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2012%2F886_wordpress-background-chinese-front-end-english%2F&from=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/07/14954565.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress实现后台中文前台英文</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="BlueHost帐户:This Account Has Been Suspended" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F503_bluehost-this-account-has-been-suspended%2F&from=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">BlueHost帐户:This Account Has Been Suspended</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="阳光海第2波BlueHost虚拟主机合租计划（已经结束）" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F594_now-u-can-order-the-share-of-bluehost-webhosting-plan%2F&from=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/23/33563608.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">阳光海第2波BlueHost虚拟主机合租计划（已经结束）</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="孙威的阳光海第3波BlueHost虚拟主机合租计划" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2009%2F706_now-u-can-order-the-share-of-bluehost-webhosting-plan-3%2F&from=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2010/12/24/1561772.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">孙威的阳光海第3波BlueHost虚拟主机合租计划</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>昨晚突然发现我的wordpress中文版莫名其妙的变成英文版了，查阅一些资料得知：在64位空间上安装wordpress会出不汉化的情况，这是Wordpress自身缺陷，问题的根源原来是Wordpress在64位的CPU下（linux系统）运行时，由于PHP-gettext解析.mo语言文件出错，以至于Wordpress在使用中文版本时失败，这是由于PHP-gettext在加载.mo文件时，没有正确匹配验证位导致stream自动关闭。WordPress 官方还没弄出个最终解决方案，只能自行修改。</p>
<p>步骤如下：</p>
<p>在操作之前，首先确认你安装的Wordpress确实是中文版，然后备份需要修改的文件</p>
<p>1、在\wordpress\wp-includes\这个目录下找到gettext.php</p>
<p>2、打开gettext.php这个文件找到以下代码</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #00008b;">$magic</span><span style="color: Gray;"> == </span><span style="color: Olive;">(</span><span style="color: #00008b;">$MAGIC1</span><span style="color: Gray;"> &amp; </span><span style="color: Maroon;">0xFFFFFFFF</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> </span><span style="color: #ffa500;">// to make sure it works for 64-bit platforms</span></li>
<li><span style="color: #00008b;">$this</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">BYTEORDER</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">elseif</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$magic</span><span style="color: Gray;"> == </span><span style="color: Olive;">(</span><span style="color: #00008b;">$MAGIC2</span><span style="color: Gray;"> &amp; </span><span style="color: Maroon;">0xFFFFFFFF</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
</ol></div>
<p>3、将上面的代码修改为</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #00008b;">$magic</span><span style="color: Gray;"> == </span><span style="color: #00008b;">$MAGIC1</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: #00008b;">$this</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">BYTEORDER</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">elseif</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$magic</span><span style="color: Gray;"> == </span><span style="color: #00008b;">$MAGIC2</span><span style="color: Olive;">)</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
</ol></div>
<p>4、现在重新登陆wordpress，看到是中文就证明成功了，如果还是不行，就将代码修改成</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Green;">if</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #00008b;">$magic</span><span style="color: Gray;"> == </span><span style="color: Olive;">(</span><span style="color: #00008b;">$MAGIC1</span><span style="color: Gray;"> &amp; </span><span style="color: Maroon;">0xFFFFFFFF</span><span style="color: Olive;">)</span><span style="color: Gray;"> || </span><span style="color: Olive;">(</span><span style="color: #00008b;">$magic</span><span style="color: Gray;"> == </span><span style="color: Olive;">(</span><span style="color: #00008b;">$MAGIC3</span><span style="color: Gray;"> &amp; </span><span style="color: Maroon;">0xFFFFFFFF</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span><span style="color: Gray;"> </span><span style="color: #ffa500;">// to make sure it works for 64-bit platforms</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #00008b;">$this</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">BYTEORDER</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">elseif</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: #00008b;">$magic</span><span style="color: Gray;"> == </span><span style="color: Olive;">(</span><span style="color: #00008b;">$MAGIC2</span><span style="color: Gray;"> &amp; </span><span style="color: Maroon;">0xFFFFFFFF</span><span style="color: Olive;">))</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #00008b;">$this</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">BYTEORDER</span><span style="color: Gray;"> = </span><span style="color: Maroon;">1</span><span style="color: Gray;">;</span></li>
<li><span style="color: Olive;">}</span><span style="color: Gray;">&nbsp;</span><span style="color: Green;">else</span><span style="color: Gray;"> </span><span style="color: Olive;">{</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #00008b;">$this</span><span style="color: Gray;">-&gt;</span><span style="color: Blue;">BYTEORDER</span><span style="color: Gray;"> = </span><span style="color: Maroon;">0</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">//$this-&gt;error = 1; // not MO file</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: #ffa500;">//return false;</span></li>
<li><span style="color: Olive;">}</span></li>
<li><span style="color: Gray;">?&gt;</span></li></ol></div>
<p>如果再不行的话，我也就没办法了，因为我完成第3步之后就发现已经回到中文版了。</p>
<div style=float:left><!-- JiaThis Button BEGIN -->
<div id="ckepop">
	<span class="jiathis_txt">分享到：</span>
	<a class="jiathis_button_qzone">QQ空间</a>
	<a class="jiathis_button_tsina">新浪微博</a>
	<a class="jiathis_button_renren">人人网</a>
	<a class="jiathis_button_kaixin001">开心网</a>
	<a href="http://www.jiathis.com/share?uid=897736" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank">更多</a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js?uid=897736" charset="utf-8"></script>
<!-- JiaThis Button END --></div><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress实现后台中文前台英文" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2012%2F886_wordpress-background-chinese-front-end-english%2F&from=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/02/07/14954565.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress实现后台中文前台英文</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="BlueHost帐户:This Account Has Been Suspended" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F503_bluehost-this-account-has-been-suspended%2F&from=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">BlueHost帐户:This Account Has Been Suspended</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="阳光海第2波BlueHost虚拟主机合租计划（已经结束）" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F594_now-u-can-order-the-share-of-bluehost-webhosting-plan%2F&from=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/23/33563608.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">阳光海第2波BlueHost虚拟主机合租计划（已经结束）</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="孙威的阳光海第3波BlueHost虚拟主机合租计划" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2009%2F706_now-u-can-order-the-share-of-bluehost-webhosting-plan-3%2F&from=http%3A%2F%2Fwww.sunnyfly.com%2Fblog%2Fpost%2F2008%2F494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2010/12/24/1561772.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">孙威的阳光海第3波BlueHost虚拟主机合租计划</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.sunnyfly.com/blog/post/2008/494_a-solution-of-wordpress-chinese-version-changed-to-the-english-version-on-bluehost/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

