Closed (fixed)
Project:
Forum Access
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2012 at 14:32 UTC
Updated:
30 Mar 2012 at 13:50 UTC
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
Comment #1
salvisThat's correct. Roles are user-supplied strings, and user-supplied strings are never translated.
Comment #2
alien commentedHi,
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
Comment #3
salvisI agree, we should be using user_roles().
Would you like to post a patch (D7 first)?
Comment #4
salvisPushed to D6 and D7 -dev versions (give them up to 12h to be repackaged).
Thanks!