[wp-trac] [WordPress Trac] #26511: Separate locale for the admin toolbar
WordPress Trac
noreply at wordpress.org
Mon Dec 9 19:19:53 UTC 2013
#26511: Separate locale for the admin toolbar
-----------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by dimadin):
For core strings you can switch language for admin bar, I made a
[https://gist.github.com/dimadin/4247285 gist] with example coincidentally
exactly a year ago.
If you want admin bar in `en_US` and plugins add admin bar items at admin
bar hooks, you could have admin bar in `en_US` by using `gettext` filters
conditionally like in example above.
Problem for not being able to load translations later for plugins and
themes is because their translation is loaded once and there is no
information about that textdomain (location, type). If we want a language
switcher, we need to store that information since I don't see other way to
load plugins and themes translations later.
You could actually do this now by hooking to `load_*_textdomain()`
functions but that is complicated.
Note that on wpcom you can set interface language on profile and that will
be used on admin bar even if you browse sites in other languages, don't
know how do they do that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26511#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list