Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 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: Focuses:

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 17 years ago.
User creation: role setting
10270.diff​ (449 bytes ) - added by ryan 17 years ago.

Download all attachments as: .zip

Change History (8)

@xibe
17 years ago

User creation: role setting

#2 @ryan
17 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.

#3 @ryan
17 years ago

  • Resolution → fixed
  • Status new → closed

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

#4 @ryan
17 years ago

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

#5 @ryan
17 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

#6 @xibe
17 years ago

workforme now, thanks Ryan!

Note: See TracTickets for help on using tickets.