[wp-trac] [WordPress Trac] #37539: translate_user_role only working in admin

WordPress Trac noreply at wordpress.org
Mon Aug 1 14:35:29 UTC 2016


#37539: translate_user_role only working in admin
-----------------------------+-----------------------------
 Reporter:  keraweb          |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  I18N             |    Version:  4.0
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 The user role translations are only available in the admin.
 I'd like to see them available in the front-end aswell.

 This is not working:
 {{{#!php
 if ( ! is_admin() ) {
         load_textdomain( 'default', WP_LANG_DIR . '/admin-' . get_locale()
 . '.mo' );
 }
 }}}

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


More information about the wp-trac mailing list