Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I use native wordpress multisite for languages (it, en, fr, de, es). I need not to use a plugin.

Still, all the admin dashboards will be in italian, because editors are all italian people. I know __() and related functions get the translation language from the WPLANG constant, but WPLANG also affects admin languange.

I'd like to get frontend in different languages while admin always italian. Is it possible?

share|improve this question
1  
Go and have a look at this answer. You should be able to make it work for multisite. Hope this help –  Pieter Goosen Mar 18 at 4:15

1 Answer 1

Filter locale if is_admin() is TRUE:

is_admin() && add_filter( 'locale', function() {
    return 'it_IT';
});
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.