Mail translation fixes

This commit is contained in:
Juan Ferrer 2019-05-08 12:47:07 +02:00
parent 230eae9eda
commit 94590ac50a
4 changed files with 13 additions and 6 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.44) stable; urgency=low
hedera-web (1.406.45) stable; urgency=low
* Initial Release.

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.406.44",
"version": "1.406.45",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -1,4 +1,6 @@
{
"<p>The response from the remote server was:</p>": "<p>La respuesta del servidor remoto ha sido:</p>"
,"An automated message could not be delivered": "Un mensaje automatizado no se ha podido entregar"
"An automated message could not be delivered": "Un mensaje automatizado no se ha podido entregar"
,"Notification from IT department about problem.": "Desde el departamento de informática te enviamos este correo porque ha habido un problema al intentar entregar un correo automatizado."
,"If you have questions, resend this email to cau@verdnatura.es.": "Si tienes dudas, reenvia este correo a cau@verdnatura.es."
,"The response from the remote server was:": "La respuesta del servidor remoto ha sido:"
}

View File

@ -42,9 +42,14 @@ class Mail extends Vn\Lib\Method {
$status = $e->getMessage();
if ($row->replyTo) {
Vn\Lib\Locale::set('es');
$errorMsg =
'<p>'. s('Notification from IT department about problem.') .'</p>'
.'<p>'. s('If you have questions, resend this email to cau@verdnatura.es.') .'</p>'
.'<p style="color: gray">'. $status .'</p>';
$errorMail = $mailer->createObject($row->replyTo,
s('<p>The response from the remote server was:</p>')
."<p>$status</p>",
$errorMsg,
s('An automated message could not be delivered')
);
$errorMail->AddStringAttachment(