HostMonster Web Hosting Help

Wordpress not correctly displaying languages

Problem:

Wordpress will not correctly display languages other than English.

Solution:

We need to change a bit of Wordpress code.

Open the file <wordpress_install>/wp-includes/gettext.php (where "wordpress_install" is the directory you choose to install Wordpress to).

Find the following:

    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
    $MAGIC1 = (int) - 1794895138;
    // $MAGIC2 = (int)0xde120495; //bug
    $MAGIC2 = (int) - 569244523;
Change it to:
    // $MAGIC1 = (int)0x950412de; //bug in PHP 5
    $MAGIC1 = 2500072158;
    // $MAGIC2 = (int)0xde120495; //bug
    $MAGIC2 = 3725722773;
Knowledgebase Article 64,097 views bookmark tags: language wordpress (updated 2151 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Instructions to set different character sets in HTML. Note: Not all character sets will be correctly rendered with this encoding format, but most will. You can find specific information about which ch (updated 1200 days ago)
Knowledgebase Article 73,771 views tags: arabic change character chinese html japanese language languages sets

Why don't my images display on my site? (updated 2137 days ago)
Knowledgebase Article 95,070 views tags: display image images link site website

How to Set different character sets with PHP and HTML to display correctly. (updated 2120 days ago)
Knowledgebase Article 66,069 views tags: character language mysql php phpmyadmin sets

Related Help Content

This article will explain how to change the Site URL or Home URL setting in WordPress. This may be useful if you have moved your WordPress site or are planning to move your WordPress site. (updated 35 days ago)
Knowledgebase Article 1,755 views tags: home site url wordpress wordpresstools

If you have a WordPress blog hosted on wordpress.com, you can easily export it and import it to WordPress that is installed on your hosting account with hostmonster. Login to the WordPress D (updated 147 days ago)
Getting Started Article 255,849 views tags: blog export file import wordpress

This article will explain how to login to a WordPress site using WordPress tools. (updated 29 days ago)
Knowledgebase Article 1,388 views tags: login wordpress wordpresstools

Learn how to use WordPress, WordPress started as just a blogging system, but has evolved to be used as full content management system and so much more through the thousands of plugins, widgets, and themes now available. (updated 125 days ago)
Knowledgebase Article 363,075 views tags: blog buildersonline website wordpress

This article will show you how to access your WordPress site. (updated 140 days ago)
Knowledgebase Article 11,849 views tags: access admin change dashboard edit login site wordpress

Tips and tricks to make your wordpress blog load faster (updated 490 days ago)
Knowledgebase Article 41,381 views tags: optimizing wordpress

This article will explain how to manage WordPress plugins and themes using Wordpress Tools. (updated 35 days ago)
Knowledgebase Article 964 views tags: plugins themes wordpress wordpresstools

Instructions on how to migrate over via Wordpress (updated 784 days ago)
Knowledgebase Article 59,072 views tags: transfer wordpress