Unique different admin and theme languages on your WordPress

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' );

Luis Sanchez
Jul 8, 2013

ushareweb.com is a site full of resources (web design, web development, Php, Drupal, WordPress, CSS, SEO, Freelance, IPhone, Apps, Jailbreak, Unlock) and more. If you wish to contribute, contact us.