Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#10270 closed defect (bug) (fixed)

User roles are not translated

Reported by: xibe's profile xibe Owned by: nbachiyski's profile nbachiyski
Milestone: 2.8.1 Priority: normal
Severity: normal Version: 2.8
Component: I18N Keywords:
Focuses: 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 16 years ago.
User creation: role setting
10270.diff (449 bytes) - added by ryan 16 years ago.

Download all attachments as: .zip

Change History (8)

@xibe
16 years ago

User creation: role setting

@ryan
16 years ago

#2 @ryan
16 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
16 years ago

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

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

#4 @ryan
16 years ago

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

#5 @ryan
16 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
16 years ago

workforme now, thanks Ryan!

Note: See TracTickets for help on using tickets.