Essomia's Blog

my life in development

Wordpress with Two Different Languages.

This morning while I was looking for a simple way to use two different language in Wordpress, one for the blog (front end) and one for the administration, I noticed that there was very little full explanation about it on the web.
Therefore, here are the steps for those who would like a blog in a different language than the dashboard.

Step 1: Define the language of your blog

Open the file “wp-config.php” and change the following line:

define(‘WPLANG’,”);

To suit the language you want for your blog. In my case in French:

define(‘WPLANG’, ‘fr_FR’);

Step 2: Define the language of your administration

Now open the file “l10n.php” present in your “wp-includes” folder. You must paste the following line:

if (is_admin ())
      $ locale = ‘en_US’;

Just before the following line:

apply_filters return(‘local’, $ locale);

And now, if you try, your blog you must have the date format and time in the language you chose while administration remained in English.

A Wordpress “Lorem Ipsum Test Post” Pack
When I work with WordPress to create a new website, I often find  myself having to make a lot of dummy posts to test out themes layouts  and styles. But it can become very boring to do it every time you work  on a new theme. So I found last week a post pack made by Nick Pagano on  ThinkDesignBlog.com who offer us to download an useful pack with posts,  pages and categories for testing everything.Thanks to him!

A Wordpress “Lorem Ipsum Test Post” Pack

When I work with WordPress to create a new website, I often find myself having to make a lot of dummy posts to test out themes layouts and styles. But it can become very boring to do it every time you work on a new theme.
So I found last week a post pack made by Nick Pagano on ThinkDesignBlog.com who offer us to download an useful pack with posts, pages and categories for testing everything.
Thanks to him!

A Wordpress “Lorem Ipsum Test Post” Pack
When I work with WordPress to create a new website, I often find  myself having to make a lot of dummy posts to test out themes layouts  and styles. But it can become very boring to do it every time you work  on a new theme. So I found last week a post pack made by Nick Pagano on  ThinkDesignBlog.com who offer us to download an useful pack with posts,  pages and categories for testing everything.Thanks to him! zoom