diff options
author | Camil Staps | 2016-08-01 08:40:38 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 08:40:38 +0200 |
commit | 72766ab34d4b36cf38eb0062dc7bc17db8f72998 (patch) | |
tree | 729aec2317567208cb4222f7dc62c039c76de825 /classes/Payment.php | |
parent | 0.5.3 frontend updates (diff) |
Internationalisation: email subjects
Diffstat (limited to 'classes/Payment.php')
-rw-r--r-- | classes/Payment.php | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |