Roles are not translated in _forum_access_forum_form function.

  $roles = array();
  $result = db_query(db_rewrite_sql("SELECT r.rid, r.name FROM {role} r ORDER BY r.name", 'r', 'rid'));
  while ($obj = db_fetch_object($result)) {
    $roles[$obj->rid] = check_plain($obj->name);
  }

Comments

salvis’s picture

Status: Active » Closed (works as designed)

That's correct. Roles are user-supplied strings, and user-supplied strings are never translated.

alien’s picture

Status: Closed (works as designed) » Active

Hi,
I agree with you but how do you translate "anonymous user" and "authentificated user" ?
I just need to translate those two terms.

"Content access module" translates them"
Please see user_roles() function from user.module

Thanks

salvis’s picture

Version: 6.x-1.7 » 7.x-1.x-dev
Status: Active » Needs work

I agree, we should be using user_roles().

Would you like to post a patch (D7 first)?

salvis’s picture

Category: feature » bug
Status: Needs work » Fixed

Pushed to D6 and D7 -dev versions (give them up to 12h to be repackaged).

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.