[wp-trac] [WordPress Trac] #38736: Add $domain parameter to translate_user_role()
WordPress Trac
noreply at wordpress.org
Thu Nov 10 01:22:40 UTC 2016
#38736: Add $domain parameter to translate_user_role()
-----------------------------------+------------------------------
Reporter: johnjamesjacoby | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+------------------------------
Comment (by johnjamesjacoby):
Replying to [comment:1 jdgrimes]:
> Say I have a plugin that uses `translate_user_role()` for each of the
roles in WordPress, how do I know which textdomain to pass for each role?
(I know this is maybe a separate issue from this ticket, but I hadn't
considered it before.)
Good question. Right now, I don't have an answer, since there are no role-
groups or domain key.
If a plugin included its own version of this function (as bbPress now
does) the problem you describe will still exist for anything trying to
loop through all of the roles at once.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38736#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list