[wp-trac] [WordPress Trac] #38736: Add $domain parameter to translate_user_role()

WordPress Trac noreply at wordpress.org
Wed Nov 9 18:09:51 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           |   Keywords:  has-patch 2nd-opinion
  Focuses:                   |
-----------------------------+-----------------------------------
 The `translate_user_role()` function currently only works with WordPress's
 built-in user roles.

 For a plugin like bbPress, it cannot pass the `bbpress` text domain
 through to `translate_with_gettext_context()`, meaning it's roles can only
 be translated as part of the `default` text domain.

 This becomes more of an issue in WordPress 4.7 due to load-order changes
 between roles & locales.

 Patch imminent.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38736>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list