• Hi,

    I am trying to change the language of my theme. When I insert define('WPLANG', 'de_DE'); in wp-config.php, it seems to work. But I need this code to be in a special file which is into my own theme. I just tried that but it keeps ignoring it.

    Is there a way to define the language outside of wp-config.php?

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

    (@sub_zero)

    Ok, I found a solution. There you go, world:

    add_filter( 'locale', 'wpse_52419_change_language' );
    function wpse_52419_change_language( $locale )
    {
    	return 'de_DE';
    }
Viewing 1 replies (of 1 total)
  • The topic ‘using define('WPLANG', '') outside of wp-config.php’ is closed to new replies.