From cf26e7438c524b024cc3e7e9126cb23767cbba9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Tue, 23 Jul 2013 07:20:58 +0200 Subject: [PATCH] localize many message from mail. re #53 --- lang/Localization_en.json | 2 ++ lang/Localization_fr.json | 2 ++ sendtomail.php | 8 ++++---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lang/Localization_en.json b/lang/Localization_en.json index d45da45ab..bc2bb65b9 100644 --- a/lang/Localization_en.json +++ b/lang/Localization_en.json @@ -330,5 +330,7 @@ "customize.paging":"Max number of books per page (-1 to disable)", "customize.email":"Set your email (to allow book emailing)", "customize.filter":"Enable tag filtering", +"mail.messagenotsent":"Message could not be sent.", +"mail.messagesent":"Message has been sent", "fin":"fin" } diff --git a/lang/Localization_fr.json b/lang/Localization_fr.json index 5f11daae3..840e38dee 100644 --- a/lang/Localization_fr.json +++ b/lang/Localization_fr.json @@ -125,5 +125,7 @@ "customize.filter":"Filtrage via les étiquettes", "languages.eng":"Anglais", "languages.fra":"Français", +"mail.messagenotsent":"Le message n'a pas pu être envoyé.", +"mail.messagesent":"Le message a été envoyé", "fin":"fin" } diff --git a/sendtomail.php b/sendtomail.php index b86b83ce4..2977ee678 100644 --- a/sendtomail.php +++ b/sendtomail.php @@ -1,8 +1,8 @@ Body = 'Sent by COPS'; if(!$mail->Send()) { - echo 'Message could not be sent.'; + echo localize ("mail.messagenotsent"); echo 'Mailer Error: ' . $mail->ErrorInfo; exit; } -echo 'Message has been sent'; +echo localize ("mail.messagesent");