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

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 29 15:24:22 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                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch reporter-feedback


Comment:

 Replying to [comment:3 foxinni]:
 > 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.

 If an empty `WPLANG` value exists, that's intentional, per
 [comment:ticket:18688:5].

 > The interface is also not very intuitive in that regard.

 The proper screens for setting the language in Multisite are:
 1. For existing sites: My Sites → (Site Name) → Settings → General → Site
 Language.
 2. For new sites and for the main site: Network Admin → Settings → Default
 Language.


 > I tried to update it, but it keeps reverting to blank.

 Couldn't reproduce that. Setting `WPLANG` in all possible ways (via Sites
 → Edit Site → Settings on the main site, or Settings → General or `wp-
 admin/options.php` on a subsite) works fine on my install.

 1. Do you have `*.mo` files in `wp-content/languages` for the language
 you're trying to set?
 2. Have you tried disabling all plugins?

 I think I've found a related bug though. `WPLANG` site option is not
 populated on network setup for localized packages: #21726.

 Replying to [comment:4 wonderboymusic]:
 > The value should be IN the array, not excluded - attached patch

 The check was introduced in [18346] and appears to be correct. If the new
 value is not within the allowed languages, it's not updated.

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


More information about the wp-trac mailing list