Latest Updates » [1] Auto XML Sitemap [2] Create Contact Page [3] Blogger and Wordpress Templates! Download Now !


Thursday 11 July 2013

WPTRICK: How to setup another language for theme and admin



Most of blogger use English language on their blogs. Due to international Language, English is most used language for blogging.

If you are using language which is not your mother tongue for blogging and if you really want to use different language then you might like to have the dashboard in your language.

Here is a quick wordpress trick to use different languages on your WordPress blog or website.

How to setup another language for theme and admin..

Simply set the desired locale (on line 6) then add the code to your functions.php file.

     // setup one language for admin and the other for theme
     // must be called before load_theme_textdomain()
     function set_my_locale($locale) {
          $locale = ( is_admin() ) ? "en_US" : "it_IT";
          setlocale(LC_ALL, $local );
          return $locale;
     }
     add_filter( 'locale', 'set_my_locale' );
?>

Thanks to wp-snippets for this awesome trick. Pl consider it sharing with friends if you liked the trick.


Kindly Bookmark this Post using your favorite Bookmarking service:
Technorati Digg This Stumble Stumble Facebook Twitter

Advertise Here

0 comments:

Post a Comment


ABOUT THE AUTHOR

Hi! I am K Ajay, currently live in Chandigarh, India. A young Web Designer, Pro Blogger, Graphic Designer & an addicted Web Developer. I love working on Blogger and WordPress using CSS Tricks,and Web Designing. Read More...

FOLLOW US HERE


RANDOM POSTS

Bwidgets4all-Helping Bloggers with Blogging Tricks © 2013. All Rights Reserved | Free Blogger Templates | | Back to Top