Ticket #10270 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 3 years ago

User roles are not translated

Reported by: xibe Owned by: nbachiyski
Priority: normal Milestone: 2.8.1
Component: I18N Version: 2.8
Severity: normal Keywords:
Cc:

Description

In the current fr_FR translation ( po file), user roles are translated, but the translation do not seem to be applied (see attached capture).

#. translators: user role
#: wp-admin/includes/schema.php:372
msgctxt "User role"
msgid "Administrator"
msgstr "Administrateur"

#. translators: user role
#: wp-admin/includes/schema.php:374
msgctxt "User role"
msgid "Editor"
msgstr "Éditeur"

#. translators: user role
#: wp-admin/includes/schema.php:376
msgctxt "User role"
msgid "Author"
msgstr "Auteur"

#. translators: user role
#: wp-admin/includes/schema.php:378
msgctxt "User role"
msgid "Contributor"
msgstr "Contributeur"

#. translators: user role
#: wp-admin/includes/schema.php:380
msgctxt "User role"
msgid "Subscriber"
msgstr "Abonné"

Attachments

wp-role-translation.png Download (20.2 KB) - added by xibe 3 years ago.
User creation: role setting
10270.diff Download (449 bytes) - added by ryan 3 years ago.

Change History

xibe3 years ago

User creation: role setting

comment:1   ryan3 years ago

See #10127

ryan3 years ago

comment:2   ryan3 years ago

The role was being passed as "Administrator|User role". Running it through before_last_bar() before passing to gettext should fix it. Try that patch.

comment:3   ryan3 years ago

  • Status changed from new to closed
  • Resolution set to fixed

(In [11640]) Fix role translation. fixes #10270 for trunk

comment:4   ryan3 years ago

(In [11641]) Fix role translation. fixes #10270 for 2.8.1

comment:5   ryan3 years ago

I went ahead and committed the patch and updated the nightly builds to make testing easier. Try out the nightly and let us know if it works.

 http://wordpress.org/nightly-builds/wordpress-2.8-latest.zip

comment:6   xibe3 years ago

workforme now, thanks Ryan!

Note: See TracTickets for help on using tickets.