[wp-trac] [WordPress Trac] #29783: User Admin Language
WordPress Trac
noreply at wordpress.org
Mon Jun 15 06:26:26 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 Chouby):
Replying to [comment:20 toscho]:
> Replying to [comment:19 GregLone]:
> > Simple suggestion if I may: add a filter in `get_user_locale()`?
>
> Maybe we should wait until we have some actual use cases (v2).
I would rather not wait as it would introduce a regression and mix
languages in multilingual websites.
Currently, plugins make it possible for a user to have its backend in one
language and browsing the website in another language (including of course
the ajax calls, for which a plugin needs to differentiate if the ajax call
is on backend or frontend).
> It isn’t even clear what we would need to pass as parameters: current
user language and site language, network ID, an array of available
language files, the user object … should that be an array, an object or a
bunch of separate parameters?
Currently get_locale() passes only the locale. I don't believe that we
need more for get_user_locale().
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29783#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list