Cambio de mensajes de los emails y mejores traducciones.
git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/trunk@24 eb19766c-00d9-a042-a3a0-45cb8ec72764
This commit is contained in:
parent
eeaa1d3e9e
commit
4c1d94c2f9
@ -141,17 +141,29 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo
|
||||
$oSendingUser = User::get($_SESSION['userID']);
|
||||
|
||||
// Create email content
|
||||
/*
|
||||
$sMessage = '<font face="arial" size="2">';
|
||||
$sMessage .= sprintf(_kt("Your colleague, %s, wishes you to view the document entitled '%s'."), $oSendingUser->getName(), $sDocumentName);
|
||||
$sMessage .= " \n";
|
||||
$sMessage .= _kt('Click on the hyperlink below to view it.') . '<br><br>';
|
||||
$sMsgEnd = '<br><br>' . _kt('Comments') . ':<br>' . $sComment;
|
||||
$sMsgEnd .= '</font>';
|
||||
$sMessage .= sprintf("Vea el documento '%s'<br/>", $sDocumentName);
|
||||
//$sMessage .= sprintf(_kt("Your colleague, %s, wishes you to view the document entitled '%s'."), $oSendingUser->getName(), $sDocumentName);
|
||||
$sMessage .= 'Puede acceder ahora ('.generateControllerLink('viewDocument', "fDocumentID=$iDocumentID", 'Ver documento').') pero tenga en cuenta que sólo podrá descargarlo una vez.';
|
||||
$sMessage .= "<br/>";
|
||||
$sMessage .= 'Si desea volver a consultarlo más tarde, guárdelo antes.';
|
||||
//$sMessage .= _kt('Click on the hyperlink below to view it.') . '<br><br>';
|
||||
/*$sMsgEnd = '<br><br>' . _kt('Comments') . ':<br>' . $sComment;
|
||||
$sMsgEnd .= '</font>';*/
|
||||
|
||||
$sTitle = sprintf(_kt("Link (ID %s): %s from %s"), $iDocumentID, $sDocumentName, $oSendingUser->getName());
|
||||
*/
|
||||
$sTitle = sprintf(_kt("%s wants to share a document using KnowledgeTree"), $oSendingUser->getName());
|
||||
//$sMessage .= _kt('Comments') . ':<br>' . $sComment;
|
||||
if (strlen($sComment) > 0) {
|
||||
$sMessage .= '<br><br>' . _kt('Comments') . ':<br>' . nl2br($sComment);
|
||||
}
|
||||
$sMessage .= '</font><br>';
|
||||
|
||||
|
||||
//$sTitle = sprintf(_kt("Link (ID %s): %s from %s"), $iDocumentID, $sDocumentName, $oSendingUser->getName());
|
||||
//$sTitle = sprintf(_kt("%s quiere compartir con usted un documento (%s)"), $oSendingUser->getName(), $sDocumentName);
|
||||
//$sTitle = sprintf(_kt("Document (ID %s): %s from %s"), $iDocumentID, $sDocumentName, $oSendingUser->getName());
|
||||
$sTitle = sprintf("El documento '%s'", $sDocumentName);
|
||||
|
||||
/* $sTitle = sprintf(_kt("%s wants to share a document using KnowledgeTree"), $oSendingUser->getName());
|
||||
|
||||
$sMessage = '<br>
|
||||
    '._kt('Hello').',
|
||||
@ -169,6 +181,7 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo
|
||||
    '._kt('<b>KnowledgeTree is easy to use open source document management software</b><br />    that helps businesses collaborate, securely store all critical documents, address<br />    compliance challenges, and improve business processes.').'
|
||||
<br />
|
||||
<br />';
|
||||
*/
|
||||
|
||||
$sEmail = null;
|
||||
$sEmailFrom = null;
|
||||
@ -194,9 +207,10 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo
|
||||
$link = $oDownloadManager->allow_download($iDocumentID);
|
||||
|
||||
// $link = "<a href=\"{$link}\">{$link}</a>";
|
||||
$links = '    <a href="http://www.knowledgetree.com/products">'._kt('Learn More').'</a>';
|
||||
$links.= " | <a href=\"{$link}\">"._kt('View Document')."</a>";
|
||||
$links .= ' | <a href="http://www.knowledgetree.com/node/39">'._kt('Download Free Trial').'</a><br /><br />';
|
||||
//$links = '    <a href="http://www.knowledgetree.com/products">'._kt('Learn More').'</a>';
|
||||
//$links.= " | <a href=\"{$link}\">"._kt('View Document')."</a>";
|
||||
//$links .= ' | <a href="http://www.knowledgetree.com/node/39">'._kt('Download Free Trial').'</a><br /><br />';
|
||||
//$links.= "<br><a href=\"{$link}\">"._kt('View Document')."</a><br><br>";
|
||||
|
||||
// $sMsg = $sMessage.$link.$sMsgEnd;
|
||||
$sMsg = $sMessage.$links;
|
||||
@ -243,16 +257,17 @@ function sendEmailDocument($aDestEmailAddress, $iDocumentID, $sDocumentName, $sC
|
||||
$sDestEmails = implode(',', $aDestEmailAddress);
|
||||
$oSendingUser = User::get($_SESSION['userID']);
|
||||
|
||||
$sMessage .= sprintf(_kt("Your colleague, %s, wishes you to view the attached document entitled '%s'."), $oSendingUser->getName(), $sDocumentName);
|
||||
$sMessage .= "\n\n";
|
||||
$sMessage .= _kt('Click on the hyperlink below to view it.') . '<br>';
|
||||
//$sMessage .= sprintf(_kt("Your colleague, %s, wishes you to view the attached document entitled '%s'."), $oSendingUser->getName(), $sDocumentName);
|
||||
$sMessage .= sprintf(_kt("Vea el documento adjunto '%s'."), $sDocumentName);
|
||||
|
||||
//$sMessage .= _kt('Click on the hyperlink below to view it.') . '<br>';
|
||||
// add the link to the document to the mail
|
||||
$sMessage .= '<br>' . generateControllerLink('viewDocument', "fDocumentID=$iDocumentID", $sDocumentName, true);
|
||||
//$sMessage .= '<br>' . generateControllerLink('viewDocument', "fDocumentID=$iDocumentID", $sDocumentName, true);
|
||||
// add additional comment
|
||||
if (strlen($sComment) > 0) {
|
||||
$sMessage .= '<br><br>' . _kt('Comments') . ':<br>' . nl2br($sComment);
|
||||
}
|
||||
$sTitle = sprintf(_kt("Document (ID %s): %s from %s"), $iDocumentID, $sDocumentName, $oSendingUser->getName());
|
||||
$sTitle = sprintf(_kt("El documento '%s'"), $sDocumentName);
|
||||
|
||||
$sEmail = null;
|
||||
$sEmailFrom = null;
|
||||
@ -301,6 +316,9 @@ function sendEmailHyperlink($aDestEmailAddress, $iDocumentID, $sDocumentName, $s
|
||||
// Get the email list as a string for the logs
|
||||
$sDestEmails = implode(',', $aDestEmailAddress);
|
||||
$oSendingUser = User::get($_SESSION['userID']);
|
||||
|
||||
$oDocument = Document::get($iDocumentID);
|
||||
$sDocumentFullPath = $oDocument->getFullPath();
|
||||
|
||||
$sMessage = '<font face="arial" size="2">';
|
||||
/*
|
||||
@ -308,17 +326,23 @@ function sendEmailHyperlink($aDestEmailAddress, $iDocumentID, $sDocumentName, $s
|
||||
$sMessage .= $sDestUserName . ',<br><br>';
|
||||
}
|
||||
*/
|
||||
$sMessage .= sprintf(_kt("Your colleague, %s, wishes you to view the document entitled '%s'."), $oSendingUser->getName(), $sDocumentName);
|
||||
$sMessage .= " \n";
|
||||
$sMessage .= _kt('Click on the hyperlink below to view it.') . '<br>';
|
||||
|
||||
//$sMessage .= sprintf(_kt("Your colleague, %s, wishes you to view the document entitled '%s'."), $oSendingUser->getName(), $sDocumentName);
|
||||
$sMessage .= sprintf("Vea el documento '%s'.", $sDocumentFullPath);
|
||||
$sMessage .= "<br/>";
|
||||
//$sMessage .= _kt('Click on the hyperlink below to view it.') . '<br>';
|
||||
// add the link to the document to the mail
|
||||
$sMessage .= '<br>' . generateControllerLink('viewDocument', "fDocumentID=$iDocumentID", $sDocumentName, true);
|
||||
//$sMessage .= '<br>' . generateControllerLink('viewDocument', "fDocumentID=$iDocumentID", $sDocumentName, true);
|
||||
$sMessage .= 'Puede acceder ahora ('.generateControllerLink('viewDocument', "fDocumentID=$iDocumentID", 'Ver documento').') o más tarde a través de FLIPO.';
|
||||
|
||||
// add optional comment
|
||||
if (strlen($sComment) > 0) {
|
||||
$sMessage .= '<br><br>' . _kt('Comments') . ':<br>' . nl2br($sComment);
|
||||
}
|
||||
$sMessage .= '</font>';
|
||||
$sTitle = sprintf(_kt("Link (ID %s): %s from %s"), $iDocumentID, $sDocumentName, $oSendingUser->getName());
|
||||
//$sTitle = sprintf(_kt("Link (ID %s): %s from %s"), $iDocumentID, $sDocumentName, $oSendingUser->getName());
|
||||
$sTitle = sprintf(_kt("El documento '%s'"), $sDocumentName);
|
||||
|
||||
//email the hyperlink
|
||||
//
|
||||
$sEmail = null;
|
||||
@ -599,4 +623,3 @@ class KTEmailPlugin extends KTPlugin {
|
||||
|
||||
$oRegistry =& KTPluginRegistry::getSingleton();
|
||||
$oRegistry->registerPlugin('KTEmailPlugin', 'ktstandard.email.plugin', __FILE__);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user