Changeset 305

Show
Ignore:
Timestamp:
2009-07-03 19:13:42 (3 years ago)
Author:
hannes
Message:

translating status on permissions page

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/classes/pages/Permissions.php

    r279 r305  
    4040        // define 'standard' groups 
    4141        $_def_groups = array_keys($STATUS); 
    42         foreach ($_def_groups as $key=>$_group) { 
    43             $_def_groups[$key] = str_replace('_', ' ', $_group); 
    44         } 
    4542        // define pages to exclude (these are mostly those which have forum-specific rights assigned 
    4643        $_exclude_pages = Array('Page', 'Category', 'Forum', 'Topic', 'Newpoll', 'Reply', 'Moderate', 'Newtopic'); 
     
    137134                    $form->addInput('hidden', 'commit', 'y'); 
    138135                    $form->createTable('adminform'); 
    139                     $this->html->body->addElement(new XMLElement('<div><b>' . $LANG['Group'] . ': ' . $row->name . '</b></div>')); 
     136                    $this->html->body->addElement(new XMLElement('<div><b>' . $LANG['Group'] . ': ' . $STATUS[$row->name] . '</b></div>')); 
    140137                    $this->html->body->addChild('br'); 
    141138                    $this->html->body->addChild('div', $LANG['help_editing_permissions']);