From d95b941d5a69149bdc7f364ab444da87759d2fc6 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Sun, 16 May 2010 16:55:22 +0000 Subject: [PATCH] - Partial localization... is this page used at all ? SVN:trunk[416] --- pages/usermanagement_userstatus.php | 36 ++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/pages/usermanagement_userstatus.php b/pages/usermanagement_userstatus.php index 34cf804a8..d5a17a892 100644 --- a/pages/usermanagement_userstatus.php +++ b/pages/usermanagement_userstatus.php @@ -50,7 +50,7 @@ function ComputeObjectProjections($oPage, $oObject) $aValues = $aClassProjs[$sClass][$iDimension]->ProjectObject($oObject); if (is_null($aValues)) { - $sValues = htmlentities(''); + $sValues = htmlentities(Dict::S('UI:UserManagement:AnyObject')); } else { @@ -97,7 +97,7 @@ function ComputeUserProjections($oPage, $oUser) // Setup display structure // $aDisplayConfig = array(); - $aDisplayConfig['profile'] = array('label' => 'Profile', 'description' => 'Profile in which the projection is specified'); + $aDisplayConfig['profile'] = array('label' => Dict::S('UI:UserManagement:Profile'), 'description' => Dict::S('UI:UserManagement:Profile+')); foreach ($aDimensions as $iDimension => $oDimension) { $aDisplayConfig['dim'.$oDimension->GetKey()] = array('label' => $oDimension->GetName(), 'description' => $oDimension->Get('description')); @@ -122,7 +122,7 @@ function ComputeUserProjections($oPage, $oUser) $aValues = $aProPros[$iProfile][$iDimension]->ProjectUser($oUser); if (is_null($aValues)) { - $sValues = htmlentities(''); + $sValues = htmlentities(Dict::S('UI:UserManagement:AnyObject')); } else { @@ -152,18 +152,18 @@ function ComputeUserRights($oPage, $oUser, $oObject) UR_ALLOWED_DEPENDS => 'UR_ALLOWED_DEPENDS', ); $aActions = array( - UR_ACTION_READ => 'Read', - UR_ACTION_MODIFY => 'Modify', - UR_ACTION_DELETE => 'Delete', - UR_ACTION_BULK_READ => 'Bulk Read', - UR_ACTION_BULK_MODIFY => 'Bulk Modify', - UR_ACTION_BULK_DELETE => 'Bulk Delete', + UR_ACTION_READ => Dict::S('UI:UserManagement:Action:Read'), + UR_ACTION_MODIFY => Dict::S('UI:UserManagement:Action:Modify'), + UR_ACTION_DELETE => Dict::S('UI:UserManagement:Action:Delete'), + UR_ACTION_BULK_READ => Dict::S('UI:UserManagement:Action:BulkRead'), + UR_ACTION_BULK_MODIFY => Dict::S('UI:UserManagement:Action:BulkModify'), + UR_ACTION_BULK_DELETE => Dict::S('UI:UserManagement:Action:BulkDelete'), ); $aAttributeActions = array( - UR_ACTION_READ => 'Read', - UR_ACTION_MODIFY => 'Modify', - UR_ACTION_BULK_READ => 'Bulk Read', - UR_ACTION_BULK_MODIFY => 'Bulk Modify', + UR_ACTION_READ => Dict::S('UI:UserManagement:Action:Read'), + UR_ACTION_MODIFY => Dict::S('UI:UserManagement:Action:Modify'), + UR_ACTION_BULK_READ => Dict::S('UI:UserManagement:Action:BulkRead'), + UR_ACTION_BULK_MODIFY => Dict::S('UI:UserManagement:Action:BulkModify'), ); // Determine allowed actions for the object @@ -178,9 +178,9 @@ function ComputeUserRights($oPage, $oUser, $oObject) ); } $aDisplayConfig = array(); - $aDisplayConfig['action'] = array('label' => 'Action', 'description' => ''); - $aDisplayConfig['permission'] = array('label' => 'Permission', 'description' => ''); - $oPage->p('

Actions

'); + $aDisplayConfig['action'] = array('label' => Dict::S('UI:UserManagement:Action'), 'description' => Dict::S('UI:UserManagement:Action+')); + $aDisplayConfig['permission'] = array('label' => Dict::S('UI:UserManagement:Permission'), 'description' => Dict::S('UI:UserManagement:Permission+')); + $oPage->p('

'.Dict::S('UI:UserManagement:Actions').'

'); $oPage->table($aDisplayConfig, $aDisplayData); @@ -201,7 +201,7 @@ function ComputeUserRights($oPage, $oUser, $oObject) ); } } - $oPage->p('

Attributes

'); + $oPage->p('

'.Dict::S('UI:UserManagement:Attributes').'

'); if (count($aDisplayData) > 0) { $aDisplayConfig = array(); @@ -263,7 +263,7 @@ if ($iUser == -1) } else { - $oPage->p('

How is it computing the user rights?

'); + $oPage->p('

How are the user rights computed?

'); $oPage->p('

1st, find the profiles that apply

'); $oPage->p('

Project the current object in every existing dimension

');