Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#10270 closed defect (bug) (fixed)

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 (2)

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

Download all attachments as: .zip

Change History (8)

xibe4 years ago

User creation: role setting

comment:1   ryan4 years ago

See #10127

ryan4 years ago

comment:2   ryan4 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   ryan4 years ago

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

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

comment:4   ryan4 years ago

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

comment:5   ryan4 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   xibe4 years ago

workforme now, thanks Ryan!

Note: See TracTickets for help on using tickets.