[wp-trac] [WordPress Trac] #57079: Translation Related Question/Bug
WordPress Trac
noreply at wordpress.org
Tue Feb 27 22:04:37 UTC 2024
#57079: Translation Related Question/Bug
--------------------------+-----------------------------------
Reporter: jacobd91 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: I18N | Version: 6.0.3
Severity: normal | Resolution: duplicate
Keywords: | Focuses: docs, administration
--------------------------+-----------------------------------
Changes (by swissspidy):
* status: new => closed
* resolution: => duplicate
* severity: major => normal
* milestone: Awaiting Review =>
Comment:
Duplicate of #18857.
> My question here is whether the default behavior when applying
translations to a plugin via load_plugin_textdomain takes the user's
locale/language setting into account and/or if additional code is required
for it to apply?
It does, but you need to wait for the user to be fully set up in
WordPress. So if you load translations before `init`, this won't be the
case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57079#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list