Bluehost 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 63,250 views bookmark tags: language wordpress (updated 2090 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

Character sets in HTML

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 1139 days ago)

Images Not Displaying On Website

Why don't my images display on my site? (updated 2076 days ago)

Character sets in PHP

How to Set different character sets with PHP and HTML to display correctly. (updated 2059 days ago)

Related Help Content

Migrating an Existing WordPress.com Blog

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 bluehost. Login to the WordPress D (updated 86 days ago)

How to install Wordpress

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 64 days ago)

How to log into WordPress.

This article will show you how to access your WordPress site. (updated 79 days ago)

Optimizing WordPress

Tips and tricks to make your wordpress blog load faster (updated 429 days ago)

How to transfer Blogger to your WordPress

Instructions on how to migrate over via Wordpress (updated 722 days ago)

Logging in and Using WordPress: Installing Plugins

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 94 days ago)

Logging in and Using WordPress: Preventing Spam

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 1369 days ago)

Wordpress Plugins to increase Performance.

My Wordpress site is slow or seems down. (updated 1512 days ago)