From 72766ab34d4b36cf38eb0062dc7bc17db8f72998 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 1 Aug 2016 08:40:38 +0200 Subject: Internationalisation: email subjects --- classes/Payment.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'classes/Payment.php') diff --git a/classes/Payment.php b/classes/Payment.php index bab55be..59dde87 100644 --- a/classes/Payment.php +++ b/classes/Payment.php @@ -49,8 +49,9 @@ class Payment extends Model { $mailer = new Mailer($this->pdo); $mailer->setOffer($this->getOffer()); - $mailer->Subject = 'Your invoice has been paid'; - $mailer->Body = Correspondence::__r('mail-offer-paid', $this->getOffer()->getContact()->language, $this); + $lang = $this->getOffer()->getContact()->language; + $mailer->Subject = Correspondence::__('mail-offer-paid-subject', $lang); + $mailer->Body = Correspondence::__r('mail-offer-paid', $lang, $this); return $mailer; } -- cgit v1.2.3