From ae63ffa0830b222c338c91156025152c711dbec6 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Tue, 19 Apr 2022 10:48:33 +0200 Subject: [PATCH] updated some texts --- pom.xml | 2 +- src/main/java/de/srsoftware/widerhall/data/MailingList.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index d6083cc..8fa81bd 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.example Widerhall - 0.0.10 + 0.0.11 diff --git a/src/main/java/de/srsoftware/widerhall/data/MailingList.java b/src/main/java/de/srsoftware/widerhall/data/MailingList.java index b879ea2..a13a38b 100644 --- a/src/main/java/de/srsoftware/widerhall/data/MailingList.java +++ b/src/main/java/de/srsoftware/widerhall/data/MailingList.java @@ -356,7 +356,7 @@ public class MailingList { try { sendConfirmationRequest(user, member.token()); } catch (UnsupportedEncodingException e) { - throw new MessagingException("Failed to send email to "+user.email(),e); + throw new MessagingException(t("Failed to send email to {}",user.email()),e); } } @@ -369,7 +369,7 @@ public class MailingList { */ public void test(User user) throws MessagingException, UnsupportedEncodingException { var subject = t("{}: test mail",name()); - var text = t("If you received this mail, the SMTP settings of your mailing list are correct."); + var text = "If you received this mail, the SMTP settings of your mailing list are correct."; smtp.login().send(email(),name(),user.email(),subject,text); } }