[wp-trac] [WordPress Trac] #29783: User Admin Language
WordPress Trac
noreply at wordpress.org
Sun Sep 25 10:21:12 UTC 2016
#29783: User Admin Language
--------------------------------------+-----------------------------
Reporter: faevilangel | Owner: ocean90
Type: feature request | Status: assigned
Priority: normal | Milestone: 4.7
Component: I18N | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: administration
--------------------------------------+-----------------------------
Comment (by swissspidy):
In [attachment:29783.6.diff]:
* Add some more tests, especially for multisite
* Change `$locale` to `$user_locale` in wp-admin/user-edit.php because it
would override the global `$locale`. That way, when no user locale is
chosen, the site locale is properly selected as the default (instead of
being `false`).
We're ''almost'' there. One misbehaviour I noticed is that post type
labels aren't properly translated because they are set before the user
locale is loaded. In fact, `create_initial_post_types()` is called before
`wp_get_current_user()` is even defined. See #26511 for a discussion about
translating post type labels.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29783#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list