[wp-trac] [WordPress Trac] #44937: Add _doing_it_wrong to load_plugin_textdomain
WordPress Trac
noreply at wordpress.org
Wed Oct 23 11:29:31 UTC 2024
#44937: Add _doing_it_wrong to load_plugin_textdomain
------------------------------------+-------------------------
Reporter: garrett-eclipse | Owner: swissspidy
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.7
Component: I18N | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch has-dev-note | Focuses:
------------------------------------+-------------------------
Comment (by swissspidy):
> Why don't I get my output in the user's preferred language?
> Why / how does it work in wp-admin?
Because the user's locale is only used in the admin. You can learn more
about that at https://make.wordpress.org/core/2016/11/07/user-admin-
languages-and-locale-switching-in-4-7/. See also
[https://developer.wordpress.org/reference/functions/determine_locale/
`determine_locale()`].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44937#comment:58>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list