patch lang problem.

-The first letter in the acceptance view in tooltip replaced by a icon.
-Added images for tooltip
This commit is contained in:
Rob van Kraanen 2006-12-06 13:56:17 +00:00
parent 915dd1910f
commit 622bd2d65c
9 changed files with 19 additions and 7 deletions

View File

@ -172,10 +172,6 @@ class bocal
$this->grants = $GLOBALS['egw']->acl->get_grants('calendar');
foreach($this->verbose_status as $status => $text)
{
$this->verbose_status[$status] = lang($text);
}
if (!is_array($this->resources = $GLOBALS['egw']->session->appsession('resources','calendar')))
{
$this->resources = array();
@ -1360,7 +1356,7 @@ class bocal
* @param boolean $show_group_invitation=false show group-invitations (status == 'G') or not (default)
* @return array with id / names with status pairs
*/
function participants($event,$long_status=False,$show_group_invitation=false)
function participants($event,$long_status=true,$show_group_invitation=false)
{
//_debug_array($event);
$names = array();
@ -1369,12 +1365,28 @@ class bocal
if ($status == 'G' && !$show_group_invitation) continue; // dont show group-invitation
$status = $this->verbose_status[$status];
if($status == "Accepted")
{
$status = $GLOBALS['egw']->html->image('calendar','agt_action_success',lang($status));
}
else if($status == "Rejected")
{
$status = $GLOBALS['egw']->html->image('calendar','agt_action_fail',lang($status));
}
else if($status == "Tentative")
{
$status = $GLOBALS['egw']->html->image('calendar','tentative',lang($status));
}
else if($status == "No Response")
{
$status = $GLOBALS['egw']->html->image('calendar','cnr-pending',lang($status));
}
if (!$long_status)
{
$status = substr($status,0,1);
$status = substr($status,0,1);
}
$names[$id] = $this->participant_name($id).' ('.$status.')';
$names[$id] = $this->participant_name($id).' '.$status;
}
return $names;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B