[wp-hackers] Different languages in the admin and on the outside
Nikolay Bachiyski
nb at nikolay.bg
Tue Mar 17 07:40:35 GMT 2009
On Mon, Mar 16, 2009 at 22:29, Alex Polite <mylists at polite.se> wrote:
> I'd like to use English in the admin interface and Swedish on the outside.
> Is there a way of accomplishing that, short of writing a new plugin?
>
It's not short of writing a new plugin, but it's really short:
function different_locale_for_admin( $locale ) {
return is_admin()? 'en_US' : sv_SE';
}
add_filter('locale', 'different_locale_for_admin');
Happy hacking,
Nikolay.
More information about the wp-hackers
mailing list