Fixed bug #9398: Labels in Module User Administration are hardcoded
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 20 Oct 2008 07:43:30 +0000 (07:43 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Mon, 20 Oct 2008 07:43:30 +0000 (07:43 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4331 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/beuser/mod/index.php
typo3/sysext/beuser/mod/locallang.xml [new file with mode: 0644]

index aa6e5f1..705eb4f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-20  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #9398: Labels in Module User Administration are hardcoded (thanks to Christopher Stelmaszyk)
+
 2008-10-19  Ingo Renner  <ingo@typo3.org>
 
        * Fixed Bug 8564: Result of t3lib_BEfunc::getProcessedValue is hardcoded and therefore cannot be translated, credits Christopher Stelmaszyk
index 10a1d6f..df89c50 100755 (executable)
@@ -108,6 +108,8 @@ require_once (PATH_t3lib.'class.t3lib_loadmodules.php');
 require_once (PATH_t3lib.'class.t3lib_tsparser_ext.php');
 require_once (PATH_typo3.'class.alt_menu_functions.inc');
 
+$GLOBALS['LANG']->includeLLFile('EXT:beuser/mod/locallang.xml');
+
 $BE_USER->modAccess($MCONF,1);
 
 
@@ -295,13 +297,13 @@ class printAllPageTree_perms extends printAllPageTree {
                $be_group_Array = t3lib_BEfunc::getGroupNames();
                $lines=array();
                $lines[]='<tr class="bgColor5">
-                       <td nowrap="nowrap"><strong>Page title:</strong></td>
-                       '.($printPath?'<td nowrap="nowrap"><strong>Path:</strong></td>':'').'
-                       <td nowrap="nowrap" colspan=2><strong>User:</strong></td>
-                       <td nowrap="nowrap" colspan=2><strong>Group: &nbsp;</strong></td>
-                       <td nowrap="nowrap"><strong>Everybody: &nbsp;</strong></td>
-                       <td nowrap="nowrap"><strong>This user: &nbsp;</strong></td>
-                       <td nowrap="nowrap"><strong>Main group:</strong></td>
+                       <td nowrap="nowrap"><strong>' . $GLOBALS['LANG']->getLL('pageTitle', true) . '</strong></td>
+                       ' . ($printPath?'<td nowrap="nowrap"><strong>' . $GLOBALS['LANG']->getLL('path', true) . '</strong></td>':'') . '
+                       <td nowrap="nowrap" colspan="2"><strong>' . $GLOBALS['LANG']->getLL('user', true) . '</strong></td>
+                       <td nowrap="nowrap" colspan="2"><strong>' . $GLOBALS['LANG']->getLL('group', true) . ' &nbsp;</strong></td>
+                       <td nowrap="nowrap"><strong>' . $GLOBALS['LANG']->getLL('everybody', true) . ' &nbsp;</strong></td>
+                       <td nowrap="nowrap"><strong>' . $GLOBALS['LANG']->getLL('thisUser', true) . ' &nbsp;</strong></td>
+                       <td nowrap="nowrap"><strong>' . $GLOBALS['LANG']->getLL('mainGroup', true) . '</strong></td>
                </tr>';
 
                if (!is_array($treeArr)) {
@@ -319,7 +321,7 @@ class printAllPageTree_perms extends printAllPageTree {
                                <td nowrap="nowrap">'.$be_group_Array[$row['perms_groupid']]['title'].' &nbsp;</td>
                                <td nowrap="nowrap">'.$this->ext_printPerms($row['perms_group']).' &nbsp;</td>
                                <td nowrap="nowrap" align="center" '.$col1.'>'.$this->ext_printPerms($row['perms_everybody']).' &nbsp;</td>
-                               <td nowrap="nowrap" align="center">'.($row['editlock'] ? '<img '.t3lib_iconWorks::skinImg($this->backPath,'gfx/recordlock_warning2.gif').' title="Edit lock prevents all editing" alt="" />' : $this->ext_printPerms($this->BE_USER->calcPerms($row))).' &nbsp;</td>
+                               <td nowrap="nowrap" align="center">' . ($row['editlock'] ? '<img ' . t3lib_iconWorks::skinImg($this->backPath,'gfx/recordlock_warning2.gif') . ' title="' . $GLOBALS['LANG']->getLL('editLock', true) . '" alt="" />' : $this->ext_printPerms($this->BE_USER->calcPerms($row))) . ' &nbsp;</td>
                                <td nowrap="nowrap" align="center">'.$this->ext_printPerms($this->ext_groupPerms($row,$be_group_Array[$this->BE_USER->firstMainGroup])).' &nbsp;</td>
                        </tr>';
                }
@@ -552,7 +554,7 @@ class local_beUserAuth extends t3lib_beUserAuth {
                if (count($lines)) {
                        return '<table bgcolor="red" border="0" cellpadding="0" cellspacing="0">
                                <tr>
-                                       <td align="center"><font color="white"><strong>The user has no read access to these DB-mounts!</strong></font></td>
+                                       <td align="center"><font color="white"><strong>' . $GLOBALS['LANG']->getLL('noReadAccess', true) . '</strong></font></td>
                                </tr>
                                <tr>
                                        <td>'.implode('</td></tr><tr><td>',$lines).'</td>
@@ -1048,10 +1050,10 @@ class local_beUserAuth extends t3lib_beUserAuth {
                        // Create accessible workspace arrays:
                $options = array();
                if ($this->checkWorkspace(array('uid' => 0)))   {
-                       $options[0] = '0: [LIVE]';
+                       $options[0] = '0: ' . $GLOBALS['LANG']->getLL('live', true);
                }
                if ($this->checkWorkspace(array('uid' => -1)))  {
-                       $options[-1] = '-1: [Default Draft]';
+                       $options[-1] = '-1: ' . $GLOBALS['LANG']->getLL('defaultDraft', true);
                }
 
                        // Add custom workspaces (selecting all, filtering by BE_USER check):
@@ -1066,7 +1068,7 @@ class local_beUserAuth extends t3lib_beUserAuth {
                                                $mountPoints = t3lib_div::intExplode(',',$this->workspaceRec['db_mountpoints'],1);
                                                foreach ($mountPoints as $mpId) {
                                                        if (!$this->isInWebMount($mpId,'1=1'))  {
-                                                               $options[$rec['uid']].= '<br> \- WARNING: Workspace Webmount page id "'.$mpId.'" not accessible!';
+                                                               $options[$rec['uid']].= '<br> \- ' . $GLOBALS['LANG']->getLL('notAccessible', true) . ' ' . $mpId;
                                                        }
                                                }
                                        }
@@ -1153,8 +1155,8 @@ class SC_mod_tools_be_user_index {
                        // Values NOT in this array will not be saved in the settings-array for the module.
                $this->MOD_MENU = array(
                        'function' => array(
-                               'compare' => 'Compare User Settings',
-                               'whoisonline' => 'List Users Online'
+                               'compare' => $GLOBALS['LANG']->getLL('compareUserSettings', true),
+                               'whoisonline' => $GLOBALS['LANG']->getLL('listUsersOnline', true)
                        )
                );
                        // CLEAN SETTINGS
@@ -1169,7 +1171,7 @@ class SC_mod_tools_be_user_index {
        function main() {
                $this->content='';
 
-               $this->content.=$this->doc->header('Backend User Administration');
+               $this->content.=$this->doc->header($GLOBALS['LANG']->getLL('backendUserAdministration', true));
                $this->content.=$this->doc->spacer(5);
 
                switch($this->MOD_SETTINGS['function']) {
@@ -1250,23 +1252,23 @@ class SC_mod_tools_be_user_index {
        function compareUsers($compareFlags)    {
                        // Menu:
                $options = array(
-                       'filemounts' => 'Filemounts',
-                       'webmounts' => 'Webmounts',
-                       'tempPath' => 'Default upload path',
-                       'firstMainGroup' => 'Main user group',
-                       'groupList' => 'Member of groups',
-                       'pagetypes_select' => 'Page types access',
-                       'tables_select' => 'Select tables',
-                       'tables_modify' => 'Modify tables',
-                       'non_exclude_fields' => 'Non-exclude fields',
-                       'explicit_allowdeny' => 'Explicit Allow/Deny',
-                       'allowed_languages' => 'Limit to languages',
-                       'workspace_perms' => 'Workspace permissions',
-                       'workspace_membership' => 'Workspace membership',
-                       'custom_options' => 'Custom options',
-                       'modules' => 'Modules',
-                       'userTS' => 'TSconfig',
-                       'userTS_hl' => 'TSconfig HL',
+                       'filemounts' => $GLOBALS['LANG']->getLL('filemounts', true),
+                       'webmounts' => $GLOBALS['LANG']->getLL('webmounts', true),
+                       'tempPath' => $GLOBALS['LANG']->getLL('defaultUploadPath', true),
+                       'firstMainGroup' => $GLOBALS['LANG']->getLL('mainUserGroup', true),
+                       'groupList' => $GLOBALS['LANG']->getLL('memberOfGroups', true),
+                       'pagetypes_select' => $GLOBALS['LANG']->getLL('pageTypesAccess', true),
+                       'tables_select' => $GLOBALS['LANG']->getLL('selectTables', true),
+                       'tables_modify' => $GLOBALS['LANG']->getLL('modifyTables', true),
+                       'non_exclude_fields' => $GLOBALS['LANG']->getLL('nonExcludeFields', true),
+                       'explicit_allowdeny' => $GLOBALS['LANG']->getLL('explicitAllowDeny', true),
+                       'allowed_languages' => $GLOBALS['LANG']->getLL('limitToLanguages', true),
+                       'workspace_perms' => $GLOBALS['LANG']->getLL('workspacePermissions', true),
+                       'workspace_membership' => $GLOBALS['LANG']->getLL('workspaceMembership', true),
+                       'custom_options' => $GLOBALS['LANG']->getLL('customOptions', true),
+                       'modules' => $GLOBALS['LANG']->getLL('modules', true),
+                       'userTS' => $GLOBALS['LANG']->getLL('tsconfig', true),
+                       'userTS_hl' => $GLOBALS['LANG']->getLL('tsconfigHL', true),
                );
 
                $be_user_uid = t3lib_div::_GP('be_user_uid');
@@ -1296,7 +1298,7 @@ class SC_mod_tools_be_user_index {
 
                                if ($kk=='webmounts' && !$tempBE_USER->isAdmin())       {
                                        $lines[]='<tr class="bgColor4">
-                                               <td nowrap="nowrap" valign="top">Non-mounted readable pages:&nbsp;&nbsp;</td>
+                                               <td nowrap="nowrap" valign="top">' . $GLOBALS['LANG']->getLL('nonMountedReadablePages', true) . '&nbsp;&nbsp;</td>
                                                <td>'.$tempBE_USER->ext_getReadableButNonmounted().'&nbsp;</td>
                                        </tr>';
                                }
@@ -1305,10 +1307,10 @@ class SC_mod_tools_be_user_index {
                        $outTable = '<table border="0" cellpadding="1" cellspacing="1"><tr class="bgColor5"><td>'.t3lib_iconWorks::getIconImage('be_users',$tempBE_USER->user,$GLOBALS['BACK_PATH'],'class="absmiddle" title="'.$tempBE_USER->user['uid'].'"').$tempBE_USER->user['username'].'</td>';
                        $outTable.= '<td>'.$tempBE_USER->user['realName'].($tempBE_USER->user['email'] ? ', <a href="mailto:'.$tempBE_USER->user['email'].'">'.$tempBE_USER->user['email'].'</a>' : '').'</td>';
                        $outTable.= '<td>'.$this->elementLinks('be_users',$tempBE_USER->user).'</td></tr></table>';
-                       $outTable.= '<strong><a href="'.htmlspecialchars($this->MCONF['_']).'">&lt; Back to overview</a></strong><br />';
+                       $outTable.= '<strong><a href="'.htmlspecialchars($this->MCONF['_']).'">' . $GLOBALS['LANG']->getLL('backToOverview', true) . '</a></strong><br />';
 
                        $outTable.= '<br /><table border="0" cellpadding="2" cellspacing="1">'.implode('',$lines).'</table>';
-                       $content.= $this->doc->section('User info',$outTable,0,1);
+                       $content.= $this->doc->section($GLOBALS['LANG']->getLL('userInfo', true),$outTable,0,1);
                } else {
                        $menu = array(0 => array());
                        $rowCounter = 0;
@@ -1323,14 +1325,14 @@ class SC_mod_tools_be_user_index {
                                $rowCounter++;
                                $menu[$columnCounter][]='<input type="checkbox" value="1" name="compareFlags['.$kk.']" id="checkCompare_'.$kk.'"'.($compareFlags[$kk]?' checked="checked"':'').'> <label for="checkCompare_'.$kk.'">'.htmlspecialchars($vv).'</label>';
                        }
-                       $outCode = '<p>Group by:</p>';
+                       $outCode = '<p>' . $GLOBALS['LANG']->getLL('groupBy', true) . '</p>';
                        $outCode .= '<table border="0" cellpadding="3" cellspacing="1" class="compare-checklist valign-top"><tr>';
                        foreach ($menu as $column)      {
                                $outCode .= '<td>' . implode('<br />', $column) . '</td>';
                        }
                        $outCode .= '</tr></table>';
-                       $outCode.='<br /><input type="submit" name="ads" value="Update">';
-                       $content = $this->doc->section('Group and Compare Users',$outCode,0,1);
+                       $outCode.='<br /><input type="submit" name="ads" value="' . $GLOBALS['LANG']->getLL('update', true) . '">';
+                       $content = $this->doc->section($GLOBALS['LANG']->getLL('groupAndCompareUsers', true),$outCode,0,1);
 
 
                                // Traverse all users
@@ -1372,7 +1374,7 @@ class SC_mod_tools_be_user_index {
                                }
                                $counter++;
                                if ($counter>=($numberAtTime+$offset)) {
-                                       $tooManyUsers='There were more than '.$numberAtTime.' users (total: '.count($users).') and this tool can display only '.$numberAtTime.' at a time!';
+                                       $tooManyUsers=$GLOBALS['LANG']->getLL('tooManyUsers', true) . ' ' . count($users) . '. ' . $GLOBALS['LANG']->getLL('canOnlyDisplay', true) . ' ' . $numberAtTime . '.';
                                        break;
                                }
                        }
@@ -1383,10 +1385,10 @@ class SC_mod_tools_be_user_index {
                        $allCells = array();
 
                        $link_createNewUser='<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick('&edit[be_users][0]=new',$this->doc->backPath,-1)).'">'.
-                               '<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/new_el.gif').' title="'.$GLOBALS['LANG']->getLL('new',1).'" alt="" />'.
+                               '<img' . t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/new_el.gif') . ' title="' . $GLOBALS['LANG']->getLL('newUser', true) . '" alt="" />'.
                                '</a>';
 
-                       $allCells['USERS'] = '<table border="0" cellspacing="0" cellpadding="0" width="100%"><td><b>Usernames:</b></td><td width="12">'.$link_createNewUser.'</td></tr></table>';
+                       $allCells['USERS'] = '<table border="0" cellspacing="0" cellpadding="0" width="100%"><td><b>' . $GLOBALS['LANG']->getLL('usernames', true) . '</b></td><td width="12">' . $link_createNewUser . '</td></tr></table>';
 
                        foreach ($options as $kk => $vv) {
                                if ($compareFlags[$kk]) {
@@ -1402,10 +1404,10 @@ class SC_mod_tools_be_user_index {
                                $uListArr=array();
 
                                foreach ($dat['users'] as $uDat) {
-                                       $uItem = '<tr><td width="130">'.t3lib_iconWorks::getIconImage('be_users',$uDat,$GLOBALS['BACK_PATH'],'align="top" title="'.$uDat['uid'].'"').$this->linkUser($uDat['username'],$uDat).'&nbsp;&nbsp;</td><td nowrap="nowrap">'.$this->elementLinks('be_users',$uDat);
+                                       $uItem = '<tr><td width="130">' . t3lib_iconWorks::getIconImage('be_users',$uDat,$GLOBALS['BACK_PATH'],'align="top" title="' . $uDat['uid'] . '"') . $this->linkUser($uDat['username'],$uDat) . '&nbsp;&nbsp;</td><td nowrap="nowrap">' . $this->elementLinks('be_users',$uDat);
                                        if ($curUid != $uDat['uid'] && !$uDat['disable'] && ($uDat['starttime'] == 0 || $uDat['starttime'] < time()) && ($uDat['endtime'] == 0 || $uDat['endtime'] > time()))   {
-                                               $uItem .= '<a href="'.t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'])).'" target="_top"><img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/su.gif').' border="0" align="top" title="'.htmlspecialchars('Switch user to: '.$uDat['username']).' [change-to mode]" alt="" /></a>'.
-                                                       '<a href="'.t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'], 'switchBackUser' => 1)).'" target="_top"><img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/su_back.gif').' border="0" align="top" title="'.htmlspecialchars('Switch user to: '.$uDat['username']).' [switch-back mode]" alt="" /></a>';
+                                               $uItem .= '<a href="' . t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'])) . '" target="_top"><img ' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/su.gif') . ' border="0" align="top" title="' . htmlspecialchars($GLOBALS['LANG']->getLL('switchUserTo', true) . ' ' . $uDat['username']) . ' ' . $GLOBALS['LANG']->getLL('changeToMode', true) . '" alt="" /></a>'.
+                                                       '<a href="' . t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'], 'switchBackUser' => 1)) . '" target="_top"><img ' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/su_back.gif') . ' border="0" align="top" title="' . htmlspecialchars($GLOBALS['LANG']->getLL('switchUserTo', true) . ' ' . $uDat['username']) . ' ' . $GLOBALS['LANG']->getLL('switchBackMode', true) . '" alt="" /></a>';
                                        }
                                        $uItem .= '</td></tr>';
                                        $uListArr[] = $uItem;
@@ -1428,11 +1430,11 @@ class SC_mod_tools_be_user_index {
                                $outTable.='<tr><td'.$TDparams.'>'.implode('</td><td'.$TDparams.'>',$allCells).'</td></tr>';
                                $TDparams=' nowrap="nowrap" class="'.($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6').'" valign="top"';
                        }
-                       $outTable='<table border="0" cellpadding="2" cellspacing="2">'.$outTable.'</table>';
-                       $outTable.=fw('<br /><br />(All cached group lists updated.)');
-                       $outTable.=$tooManyUsers?'<br /><br /><strong><span class="typo3-red">'.$tooManyUsers.'</span></strong>':'';
+                       $outTable='<table border="0" cellpadding="2" cellspacing="2">' . $outTable . '</table>';
+                       $outTable.=fw('<br /><br />' . $GLOBALS['LANG']->getLL('cachedGrouplistsUpdated', true) . '');
+                       $outTable.=$tooManyUsers?'<br /><br /><strong><span class="typo3-red">' . $tooManyUsers . '</span></strong>':'';
                        $content.= $this->doc->spacer(10);
-                       $content.= $this->doc->section('Result',$outTable,0,1);
+                       $content.= $this->doc->section($GLOBALS['LANG']->getLL('result', true),$outTable,0,1);
                }
                return $content;
        }
@@ -1459,25 +1461,25 @@ class SC_mod_tools_be_user_index {
         */
        function elementLinks($table,$row)      {
                        // Info:
-               $cells[]='<a href="#" onclick="top.launchView(\''.$table.'\', \''.$row['uid'].'\',\''.$GLOBALS['BACK_PATH'].'\'); return false;"><img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/zoom2.gif').' border="0" align="top" title="Show information" alt="" /></a>';
+               $cells[]='<a href="#" onclick="top.launchView(\'' . $table . '\', \'' . $row['uid'] . '\',\'' . $GLOBALS['BACK_PATH'] . '\'); return false;"><img ' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/zoom2.gif') . ' border="0" align="top" title="' . $GLOBALS['LANG']->getLL('showInformation', true) . '" alt="" /></a>';
 
                        // Edit:
-               $params='&edit['.$table.']['.$row['uid'].']=edit';
-               $cells[]='<a href="#" onclick="'.t3lib_BEfunc::editOnClick($params,$GLOBALS['BACK_PATH'],'').'"><img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/edit2.gif').' border="0" align="top" title="Edit" alt="" /></a>';
+               $params='&edit[' . $table . '][' . $row['uid'] . ']=edit';
+               $cells[]='<a href="#" onclick="' . t3lib_BEfunc::editOnClick($params,$GLOBALS['BACK_PATH'],'') . '"><img ' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/edit2.gif') . ' border="0" align="top" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:edit', true) . '" alt="" /></a>';
 
                        // Hide:
                $hiddenField = $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['disabled'];
                if ($row[$hiddenField]) {
-                       $params='&data['.$table.']['.$row['uid'].']['.$hiddenField.']=0';
-                       $cells[]='<a href="'.$this->doc->issueCommand($params).'"><img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/button_unhide.gif').' border="0" title="Enable" align="top" alt="" /></a>';
+                       $params='&data[' . $table . '][' . $row['uid'] . '][' . $hiddenField . ']=0';
+                       $cells[]='<a href="' . $this->doc->issueCommand($params) . '"><img ' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/button_unhide.gif') . ' border="0" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:enable', true) . '" align="top" alt="" /></a>';
                } else {
-                       $params='&data['.$table.']['.$row['uid'].']['.$hiddenField.']=1';
-                       $cells[]='<a href="'.$this->doc->issueCommand($params).'"><img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/button_hide.gif').' border="0" title="Disable" align="top" alt="" /></a>';
+                       $params='&data[' . $table . '][' . $row['uid'] . '][' . $hiddenField . ']=1';
+                       $cells[]='<a href="' . $this->doc->issueCommand($params) . '"><img ' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/button_hide.gif') . ' border="0" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:disable', true) . '" align="top" alt="" /></a>';
                }
 
                        // Delete
-               $params='&cmd['.$table.']['.$row['uid'].'][delete]=1';
-               $cells[]='<a href="'.$this->doc->issueCommand($params).'" onclick="return confirm(unescape(\''.rawurlencode('Are you sure you want to delete this element?').'\'));"><img '.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/garbage.gif').' border="0" align="top" title="Delete(!)" alt="" /></a>';
+               $params='&cmd[' . $table . '][' . $row['uid'] . '][delete]=1';
+               $cells[]='<a href="' . $this->doc->issueCommand($params) . '" onclick="return confirm(unescape(\'' . rawurlencode($GLOBALS['LANG']->getLL('sureToDelete', true)) . '\'));"><img ' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/garbage.gif') . ' border="0" align="top" title="' . $GLOBALS['LANG']->getLL('delete', true) . '" alt="" /></a>';
 
                return implode('',$cells);
        }
@@ -1596,13 +1598,13 @@ class SC_mod_tools_be_user_index {
                $outTable = '
                <table border="0" cellpadding="2" cellspacing="2">
                        <tr class="bgColor5">
-                               <td valign="top"><b>Timestamp:</b></td>
-                               <td valign="top"><b>Host:</b></td>
-                               <td valign="top" colspan="5"><b>Username:</b></td>
+                               <td valign="top"><b>' . $GLOBALS['LANG']->getLL('timestamp', true) . '</b></td>
+                               <td valign="top"><b>' . $GLOBALS['LANG']->getLL('host', true) . '</b></td>
+                               <td valign="top" colspan="5"><b>' . $GLOBALS['LANG']->getLL('username', true) . '</b></td>
                        </tr>'.$outTable.'
                </table>';
 
-               $content.= $this->doc->section('Who Is Online',$outTable,0,1);
+               $content.= $this->doc->section($GLOBALS['LANG']->getLL('whoIsOnline', true),$outTable,0,1);
                return $content;
        }
 
@@ -1630,4 +1632,4 @@ $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
 
-?>
+?>
\ No newline at end of file
diff --git a/typo3/sysext/beuser/mod/locallang.xml b/typo3/sysext/beuser/mod/locallang.xml
new file mode 100644 (file)
index 0000000..a3aa4a9
--- /dev/null
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<T3locallang>
+       <meta type="array">
+               <description>Translations of the administration-module (beuser)</description>
+               <type>module</type>
+       </meta>
+       <data type="array">
+               <languageKey index="default" type="array">
+                       <label index="pageTitle">Page title:</label>
+                       <label index="path">Path:</label>
+                       <label index="user">User:</label>
+                       <label index="group">Group:</label>
+                       <label index="everybody">Everybody:</label>
+                       <label index="thisUser">This user:</label>
+                       <label index="mainGroup">Main group:</label>
+                       <label index="editLock">Edit lock prevents all editing</label>
+                       <label index="noReadAccess">The user has no read-access to these DB-mounts!</label>
+                       <label index="live">[LIVE]</label>
+                       <label index="defaultDraft">[Default Draft]</label>
+                       <label index="notAccessible">WARNING: Workspace Webmount page id not accessible:</label>
+                       <label index="compareUserSettings">Compare User Settings</label>
+                       <label index="listUsersOnline">List Users Online</label>
+                       <label index="backendUserAdministration">Backend User Administration</label>
+                       <label index="filemounts">Filemounts</label>
+                       <label index="webmounts">Webmounts</label>
+                       <label index="defaultUploadPath">Default upload path</label>
+                       <label index="mainUserGroup">Main user group</label>
+                       <label index="memberOfGroups">Member of groups</label>
+                       <label index="pageTypesAccess">Page types access</label>
+                       <label index="selectTables">Select tables</label>
+                       <label index="modifyTables">Modify tables</label>
+                       <label index="nonExcludeFields">Non-exclude fields</label>
+                       <label index="explicitAllowDeny">Explicit Allow/Deny</label>
+                       <label index="limitToLanguages">Limit to languages</label>
+                       <label index="workspacePermissions">Workspace permissions</label>
+                       <label index="workspaceMembership">Workspace membership</label>
+                       <label index="customOptions">Custom options</label>
+                       <label index="modules">Modules</label>
+                       <label index="tsconfig">TSconfig</label>
+                       <label index="tsconfigHL">TSconfig HL</label>
+                       <label index="nonMountedReadablePages">Non-mounted readable pages:</label>
+                       <label index="backToOverview">&lt; Back to overview</label>
+                       <label index="userInfo">User Info</label>
+                       <label index="groupBy">Group by:</label>
+                       <label index="update">Update</label>
+                       <label index="groupAndCompareUsers">Group and Compare Users</label>
+                       <label index="tooManyUsers">There were too many users:</label>
+                       <label index="canOnlyDisplay">This tool can only display the following number of users at a time:</label>
+                       <label index="newUser">Create new user</label>
+                       <label index="usernames">Usernames:</label>
+                       <label index="switchUserTo">Switch user to:</label>
+                       <label index="changeToMode">[change-to mode]</label>
+                       <label index="switchBackMode">[switch-back mode]</label>
+                       <label index="cachedGrouplistsUpdated">(All cached group-lists updated.)</label>
+                       <label index="result">result</label>
+                       <label index="showInformation">Show information</label>
+                       <label index="sureToDelete">Are you sure you want to delete this element?</label>
+                       <label index="delete">Delete(!)</label>
+                       <label index="timestamp">Timestamp:</label>
+                       <label index="host">Host:</label>
+                       <label index="username">Username:</label>
+                       <label index="whoIsOnline">Who Is Online</label>
+               </languageKey>
+       </data>
+</T3locallang>
\ No newline at end of file