Make WordPress dashboard language different than frontend language

If you was in position that you wanted to change the language of the dashboard ( admin area ) than the front end area, here what you can do .

  1. You have to get a translation for your theme, install the theme in your favorite language of your choice ( in my case it was Arabic ) then copy the language files in the following directory wp-content/languages/
  2. Copy the translation to this directory ( or create it if it’s doesn’t exist ), then change the default language in wp-config.php
  3. Open your function.php file and put the following code in it
  4. add_filter( 'locale', 'set_my_locale' );
    function set_my_locale( $lang ) {
    if ( !is_admin() ) {
    return 'ar';    // or any other language
    } else {
    return $lang;   // Default lang

You can find an example from wordpress codex in the following link .

Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: