$ drush php-eval "\$r = user_roles(); print \$r[2];"
Authentifizierter Benutzer
$ drush php-eval "\$u = user_load(1); print \$u->roles[2];"
authenticated user

currently user_roles translates builtin roles 1+2,
but UserController::attachLoad (user.module:306) and user_load (user.module:577) do not.

this leads to issues with modules.

CommentFileSizeAuthor
#2 user-role-translation-patch-1350914.patch822 bytestayzlor
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

geek-merlin’s picture

Issue summary: View changes

fixed link

good_man’s picture

Version: 7.9 » 8.x-dev

I ensure that it does exist in 7.x & 8.x as well.

tayzlor’s picture

attaching patch to add translation....

tayzlor’s picture

Status: Active » Needs review
kscheirer’s picture

kscheirer’s picture

Retesting against latest HEAD since it has been over a year.

Status: Needs review » Needs work

The last submitted patch, user-role-translation-patch-1350914.patch, failed testing.

Anonymous’s picture

Issue summary: View changes

added line

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

dpi’s picture

Issue summary: View changes
Status: Needs work » Closed (cannot reproduce)

Does not seem to be an issue at this time