Browse Source

Merge branch 'main' into lang_de

lang_de
Stephan Richter 2 years ago
parent
commit
bdcbf1f7d1
  1. 2
      pom.xml
  2. 6
      src/main/java/de/srsoftware/widerhall/web/Rest.java

2
pom.xml

@ -6,7 +6,7 @@
<groupId>org.example</groupId> <groupId>org.example</groupId>
<artifactId>Widerhall</artifactId> <artifactId>Widerhall</artifactId>
<version>0.0.19</version> <version>0.0.20</version>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>

6
src/main/java/de/srsoftware/widerhall/web/Rest.java

@ -208,10 +208,10 @@ public class Rest extends HttpServlet {
if (!list.mayBeAlteredBy(user)) Map.of(ERROR,t("You are not allowed to edit '{}'",list.email())); if (!list.mayBeAlteredBy(user)) Map.of(ERROR,t("You are not allowed to edit '{}'",list.email()));
try { try {
list.hide(hide); list.hide(hide);
return Map.of(SUCCESS,t("Mailing list '{}' was {}!",list.email(),hide ? "hidden" : "made public")); return Map.of(SUCCESS,t("Mailing-Liste '{}' wurde {}!",list.email(),hide ? "versteckt" : "veröffentlicht"));
} catch (SQLException e) { } catch (SQLException e) {
LOG.error("Failed to (un)hide mailing list: ",e); LOG.error("Veröffentlichen/Verstekcen der Mailing-Liste fehlgeschlagen: ",e);
return Map.of(ERROR,t("Failed to update list '{}'",list.email())); return Map.of(ERROR,t("Aktualisieren der Liste '{}' fehlgeschlagen",list.email()));
} }
} }

Loading…
Cancel
Save