• Hello,

    I’d like to set up a site that use a different language/locale for the admin and the front end (admin in English, blog posts in Dutch) but do not know how to do this.

    What i have so far is :
    – Set WPLANG as ‘en_US’ in wp-config
    – place the nl_NL.mo file in wp-content/languages/
    – add a filter in my theme functions.php to change the locale (see code below)

    If I check the local as returned by get_locale(), this filter does work… but the localized string are still in english.

    Any idea how to fix this ?

    code:

    function locale_for_blog( $locale ) {
       return is_admin()? $locale : 'nl_NL';
    }
    
    add_filter('locale', 'locale_for_blog');

Viewing 1 replies (of 1 total)
  • Thread Starter tbuyle

    (@tbuyle)

    Not able to have this to work, I eventually found a plugin that lets me change the admin per profile : Bogo

Viewing 1 replies (of 1 total)

The topic ‘Use different languages in admin and front-end’ is closed to new replies.