[wp-trac] [WordPress Trac] #29783: User Admin Language

WordPress Trac noreply at wordpress.org
Mon May 11 21:25:29 UTC 2015


#29783: User Admin Language
-----------------------------------+-----------------------------
 Reporter:  faevilangel            |       Owner:  ocean90
     Type:  feature request        |      Status:  assigned
 Priority:  normal                 |   Milestone:  4.3
Component:  I18N                   |     Version:  4.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:  administration
-----------------------------------+-----------------------------

Comment (by ocean90):

 Some questions:

 '''1) Should users locale be inside `get_locale()`?'''
 Maybe, but not as in [attachment:29783.patch] because it requires us to
 ''reset'' the locale back to the site locale for things like API stuff,
 `wp_credits()`, options-general.php, or update-core.php.

 '''2) Do we need something like `get_users_locale()` to avoid `add_filter(
 'get_user_option_site_language', '__return_false' );`?'''
 Yes, maybe `get_locale( $user = true|false )` can work too.

 '''3) Currently the themes and plugins API sends the result of
 `get_locale()` too. Is this good?'''
 That's fine for the plugin details, but it should download all language
 packs, at least the ones for user's locale and the site language. User's
 locale for plugin details and language packs for every? installed
 language.

 '''4) Should the locale be limited to the admin only? What about the
 toolbar?'''
 Filtering a locale for the front-end shouldn't affect
 `language_attributes()` or `is_rtl()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29783#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list