From 156c9af4b79edc343e7f17282d03be6080f04a2b Mon Sep 17 00:00:00 2001 From: david Date: Tue, 15 Feb 2011 14:54:52 +0000 Subject: [PATCH] Cambiados los mensajes de las notificaciones por cambio de flujo de trabajo. git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@26 eb19766c-00d9-a042-a3a0-45cb8ec72764 --- lib/dashboard/Notification.inc.php | 4 ++-- .../ktcore/workflow/workflow_notification.smarty | 15 ++++++--------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/dashboard/Notification.inc.php b/lib/dashboard/Notification.inc.php index fe74793..ddbc630 100644 --- a/lib/dashboard/Notification.inc.php +++ b/lib/dashboard/Notification.inc.php @@ -394,7 +394,7 @@ class KTWorkflowNotification extends KTNotificationHandler { $aInfo['sType'] = 'ktcore/workflow'; $aInfo['dCreationDate'] = getCurrentDateTime(); $aInfo['iUserId'] = $oUser->getId(); - $aInfo['sLabel'] = $oDocument->getName(); + $aInfo['sLabel'] = $oDocument->getFullPath(); $oNotification = KTNotification::createFromArray($aInfo); @@ -402,7 +402,7 @@ class KTWorkflowNotification extends KTNotificationHandler { if ($oUser->getEmailNotification() && (strlen($oUser->getEmail()) > 0)) { $emailContent = $handler->handleNotification($oNotification); - $emailSubject = sprintf(_kt('Workflow Notification: %s'), $oDocument->getName()); + $emailSubject = sprintf(_kt('Notificación sobre el trabajo: %s'), $oDocument->getName()); $oEmail = new EmailAlert($oUser->getEmail(), $emailSubject, $emailContent); $oEmail->send(); } diff --git a/templates/ktcore/workflow/workflow_notification.smarty b/templates/ktcore/workflow/workflow_notification.smarty index b431803..cc7365a 100644 --- a/templates/ktcore/workflow/workflow_notification.smarty +++ b/templates/ktcore/workflow/workflow_notification.smarty @@ -1,14 +1,11 @@ -
{$document_name}
-
- {i18n arg_name=$document_name arg_state=$state_name}The document #name# has changed to - state #state#, and you are specified as one of the users to inform - about documents in this state.{/i18n} -
+

+ {i18n arg_name=$document_name arg_state=$state_name}El documento '#name#' ha cambiado + al estado #state#.{/i18n} +

+

{if !$is_broken} {i18n}View Document{/i18n} {else} {i18n}Document is no longer available{/i18n} {/if} - | {i18n}Clear Alert{/i18n} -

-
+