From 782fcba6b04321487ee61509a06542de8433d43c Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Wed, 20 Apr 2022 10:18:21 +0200 Subject: [PATCH] updated translations --- pom.xml | 2 +- src/main/java/de/srsoftware/widerhall/web/Rest.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index ac54f28..131af62 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.example Widerhall - 0.0.20 + 0.0.21 diff --git a/src/main/java/de/srsoftware/widerhall/web/Rest.java b/src/main/java/de/srsoftware/widerhall/web/Rest.java index 0e6380a..7cbbb4c 100644 --- a/src/main/java/de/srsoftware/widerhall/web/Rest.java +++ b/src/main/java/de/srsoftware/widerhall/web/Rest.java @@ -225,7 +225,7 @@ public class Rest extends HttpServlet { private Map listMembers(MailingList list, User user) { if (list == null) return Map.of(ERROR,"Keine Listen-Email übertragen!"); - if (!list.membersMayBeListedBy(user)) Map.of(ERROR,t("You are not allowed to list members of '{}'",list.email())); + if (!list.membersMayBeListedBy(user)) Map.of(ERROR,t("Es ist dir nicht gestattet, die Mitglieder von '{}' aufzulisten",list.email())); try { var members = list.members() .stream() @@ -233,17 +233,17 @@ public class Rest extends HttpServlet { .toList(); return Map.of(MEMBERS,members); } catch (SQLException e) { - LOG.error("Failed to load member list: ",e); - return Map.of(ERROR,t("Failed to load member list '{}'",list.email())); + LOG.error("Laden der Mitglieder-Liste fehlgeschlagen: ",e); + return Map.of(ERROR,t("Laden der Mitglieder-Liste von '{}' fehlgeschlagen!",list.email())); } } private Map testList(MailingList list, User user) { if (list == null) return Map.of(ERROR,"Keine Listen-Email übertragen!"); - if (!list.mayBeTestedBy(user)) Map.of(ERROR,t("You are not allowed to test '{}'",list.email())); + if (!list.mayBeTestedBy(user)) Map.of(ERROR,t("Es ist dir nicht gestattet, '{}' zu testen",list.email())); try { list.test(user); - return Map.of(SUCCESS,t("Sent test email to {}",user.email())); + return Map.of(SUCCESS,t("Test-Email an {} versendet",user.email())); } catch (Exception e) { LOG.warn("Senden der Test-Email fehlgeschlagen",e); return Map.of(ERROR,t("Senden der Test-Email an {} fehlgeschlagen",user.email()));