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 57,663 views bookmark tags: language wordpress (updated 1656 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 704 days ago)
Knowledgebase Article 63,622 views tags: arabic change character chinese html japanese language languages sets

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

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

Related Help Content

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 896 days ago)
Getting Started Article 165,706 views tags: blog export file import wordpress

Have FrontPage extensions and Wordpress installed on account. Was working fine in the past, but now cannot connect with FrontPage and Wordpress does not link properly. (updated 704 days ago)
Knowledgebase Article 62,506 views tags: frontpage htaccess wordpress

Instructions on how to migrate over via Wordpress (updated 288 days ago)
Knowledgebase Article 18,883 views tags: transfer wordpress

How to update WordPress Plugins (updated 1035 days ago)
Knowledgebase Article 21,314 views tags: plugins wordpress

Prevent Spam These steps will help you prevent users and robots from posting Spam on your WordPress blog. Inside the WordPress Dashboard, select Settings in the navigation bar on the left. From the G (updated 935 days ago)
Getting Started Article 66,156 views tags: comment scroll spam wordpress

My Wordpress site is slow or seems down. (updated 1077 days ago)
Knowledgebase Article 38,962 views tags: wordpress

Install Plugins These steps will help you install and select a WordPress plugin for your blog. Inside the WordPress Dashboard, select the Add New link from the Plugins menu. You can search for a plug (updated 1064 days ago)
Getting Started Article 80,421 views tags: blog install link plugin wordpress

Install Themes These steps will help you install and select a WordPress theme for your blog. Inside the WordPress Dashboard, select the Add New Themes link in the Appearance Menu. You can search for (updated 776 days ago)
Getting Started Article 189,682 views tags: install link theme themes wordpress