From e4be1dc20368080fa34b5f7034a55524bf1a404c Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Tue, 12 Mar 2024 08:38:07 +0100 Subject: [PATCH] preparing some items for translation Signed-off-by: Stephan Richter --- .../widerhall/data/MailingList.java | 18 +++++++++--------- static/templates/js.st | 19 +++++++++++++++---- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/main/java/de/srsoftware/widerhall/data/MailingList.java b/src/main/java/de/srsoftware/widerhall/data/MailingList.java index 0b73dd6..3ef8e24 100644 --- a/src/main/java/de/srsoftware/widerhall/data/MailingList.java +++ b/src/main/java/de/srsoftware/widerhall/data/MailingList.java @@ -605,15 +605,15 @@ public class MailingList implements MessageHandler, ProblemListener { public Map stateMap(){ var map = new HashMap(); - if (hasState(STATE_ENABLED)) map.put("enabled",VISIBLE); - if (hasState(STATE_PUBLIC)) map.put("public",VISIBLE); - if (hasState(STATE_FORWARD_FROM)) map.put("original_from",HIDDEN); - if (hasState(STATE_FORWARD_ATTACHED)) map.put("forward_attached",HIDDEN); - if (hasState(STATE_HIDE_RECEIVERS)) map.put("hide_receivers",HIDDEN); - if (hasState(STATE_REPLY_TO_LIST)) map.put("reply_to_list",HIDDEN); - if (hasState(STATE_OPEN_FOR_GUESTS)) map.put("open_for_guests",HIDDEN); - if (hasState(STATE_OPEN_FOR_SUBSCRIBERS)) map.put("open_for_subscribers",HIDDEN); - if (hasState(STATE_PUBLIC_ARCHIVE)) map.put("archive",VISIBLE); + if (hasState(STATE_ENABLED)) map.put(t("enabled"),VISIBLE); + if (hasState(STATE_PUBLIC)) map.put(t("public"),VISIBLE); + if (hasState(STATE_FORWARD_FROM)) map.put(t("original_from"),HIDDEN); + if (hasState(STATE_FORWARD_ATTACHED)) map.put(t("forward_attached"),HIDDEN); + if (hasState(STATE_HIDE_RECEIVERS)) map.put(t("hide_receivers"),HIDDEN); + if (hasState(STATE_REPLY_TO_LIST)) map.put(t("reply_to_list"),HIDDEN); + if (hasState(STATE_OPEN_FOR_GUESTS)) map.put(t("open_for_guests"),HIDDEN); + if (hasState(STATE_OPEN_FOR_SUBSCRIBERS)) map.put(t("open_for_subscribers"),HIDDEN); + if (hasState(STATE_PUBLIC_ARCHIVE)) map.put(t("archive"),VISIBLE); return map; } diff --git a/static/templates/js.st b/static/templates/js.st index 6fe81c1..345498a 100644 --- a/static/templates/js.st +++ b/static/templates/js.st @@ -132,13 +132,24 @@ function showListOfModeratedLists(data){ $('').html(''+list.last_error+'').appendTo(row); } else $('').text('-').appendTo(row); let select = $('