[wp-trac] [WordPress Trac] #21691: WPLANG not set in multisite

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 26 11:16:25 UTC 2012


#21691: WPLANG not set in multisite
--------------------------+-----------------------------
 Reporter:  foxinni       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 I got a plugin running on a multisite and there is definitely something up
 with the translation.

 I tracked the problem down to the WPLANG option in
 `http://localhost/<subsite>/wp-admin/options.php` being empty. I tried to
 update it, but it keeps reverting to blank. So down the line the issue
 with get_locale() looking for the WPLANG value in the site_options and
 then defaulting back to en_US because it's not picking it up from the wp-
 config.php defined WPLANG.

 I'm assuming that the defined WPLANG in the wp-config.php does not apply
 in multisite instances. The plugin is only enabled on the separate blog
 instance, and I changed the translation in wp-config.php after the install
 if that has anything to do with it.

 Simple filter to force the locale in the plugin for the moment:


 {{{
 function modify_locale(){
     return 'de_DE';
 }
 add_filter('locale','modify_locale');
 }}}


 I hope someone can reproduce this issue.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21691>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list