[wp-trac] [WordPress Trac] #38485: Some part of the UI can be in the wrong language (edge cases)
WordPress Trac
noreply at wordpress.org
Thu Nov 3 20:07:10 UTC 2016
#38485: Some part of the UI can be in the wrong language (edge cases)
-------------------------------------------------+-------------------------
Reporter: afercia | Owner: ocean90
Type: defect (bug) | Status: closed
Priority: high | Milestone: 4.7
Component: I18N | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-screenshots needs-patch has- | Focuses:
unit-tests |
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"39127"]:
{{{
#!CommitTicketReference repository="" revision="39127"
I18N: Use the user's locale when loading text domains in the admin.
Leverages `get_user_locale()` in `load_*_textdomain()` and
`_load_textdomain_just_in_time()` to always load translations in the
user's language when in the admin.
This re-introduces [39069], but now with additional tests and a
`function_exists( 'wp_get_current_user' )` check in `get_user_locale()` in
case it gets used early.
Props swissspidy, ocean90.
Fixes #38485.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38485#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list