From 0f83ce7e82d87e4b92b0226ca5cabda4a0852eab Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Tue, 19 Apr 2022 10:47:24 +0200 Subject: [PATCH] =?UTF-8?q?an=20=C3=9Cbersetzung=20gearbeitet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../de/srsoftware/widerhall/data/ListMember.java | 8 ++++---- .../de/srsoftware/widerhall/data/MailingList.java | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/de/srsoftware/widerhall/data/ListMember.java b/src/main/java/de/srsoftware/widerhall/data/ListMember.java index 33dcdf9..4e1f800 100644 --- a/src/main/java/de/srsoftware/widerhall/data/ListMember.java +++ b/src/main/java/de/srsoftware/widerhall/data/ListMember.java @@ -147,7 +147,7 @@ public class ListMember { var rs = request.compile().exec(); while (rs.next()) list.add(rs.getString(LIST_EMAIL)); } catch (SQLException e) { - LOG.warn("Collecting lists of {} failed: ",user.email(),e); + LOG.warn("Sammeln der Listen von {} fehlgeschlagen: ",user.email(),e); } return list; } @@ -222,9 +222,9 @@ public class ListMember { */ public static String stateText(int state) { var words = new ArrayList(); - if ((state & STATE_OWNER) > 0) words.add("owner"); - if ((state & STATE_SUBSCRIBER) > 0) words.add("subscriber"); - if ((state & STATE_AWAITING_CONFIRMATION) > 0) words.add("awaiting confirmation"); + if ((state & STATE_OWNER) > 0) words.add("Besitzer"); + if ((state & STATE_SUBSCRIBER) > 0) words.add("Abonniert"); + if ((state & STATE_AWAITING_CONFIRMATION) > 0) words.add("erwartet Bestätigung"); return String.join(", ",words); } diff --git a/src/main/java/de/srsoftware/widerhall/data/MailingList.java b/src/main/java/de/srsoftware/widerhall/data/MailingList.java index b879ea2..a6ae564 100644 --- a/src/main/java/de/srsoftware/widerhall/data/MailingList.java +++ b/src/main/java/de/srsoftware/widerhall/data/MailingList.java @@ -135,7 +135,7 @@ public class MailingList { var member = ListMember.load(this,user); return member.hasState(ListMember.STATE_OWNER|ListMember.STATE_SUBSCRIBER); // owners may subscribe their own mailing lists } catch (SQLException e) { - LOG.warn("Was not able to load ListMember: ",e); + LOG.warn("Konnte ListeMember nicht laden: ",e); return false; } } @@ -192,7 +192,7 @@ public class MailingList { .compile().exec(); if (rs.next()) ml = MailingList.from(rs); } catch (SQLException e) { - LOG.debug("Failed to load MailingList: ",e); + LOG.debug("Konnte MailingList nicht laden: ",e); } return ml; } @@ -229,7 +229,7 @@ public class MailingList { while (rs.next()) list.add(MailingList.from(rs)); rs.close(); } catch (SQLException e) { - LOG.warn("Listing mailing lists failed: ", e); + LOG.warn("Auflisten der Mailinglisten fehlgeschlagen: ", e); } return list; } @@ -283,10 +283,10 @@ public class MailingList { * @throws UnsupportedEncodingException */ private void sendConfirmationRequest(User user, String token) throws MessagingException, UnsupportedEncodingException { - var subject = t("Please confirm your list subscription"); + var subject = t("Bitte bestätigen Sie ihr Listen-Abonnement"); var config = Configuration.instance(); var url = new StringBuilder(config.baseUrl()).append("/confirm?token=").append(token); - var text = t("Please go to {} in order to complete your list subscription!",url); + var text = t("Botte gehen Sie zu {} um das Abonnieren der Liste abzuschließen!",url); smtp.login().send(email(),name(),user.email(),subject,text); } @@ -335,7 +335,7 @@ public class MailingList { rs.close(); return result; } catch (SQLException e) { - LOG.warn("Failed to read subscribable mailinglists for {}",user,e); + LOG.warn("Lesen der für {} abbonnierbaren Mailinglisten fehlgeschlagen.",user,e); return Set.of(); } }