refaturing message system, step 1: making message abstract and add TranslatableMessage and TranslatedMessage

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-21 18:04:09 +01:00
parent 8c10f820d5
commit 94d430a5a5
11 changed files with 125 additions and 75 deletions

View File

@@ -506,8 +506,8 @@ public class UserModule extends BaseHandler implements UserService {
var url = url(ex).replace("/api/user/reset_pw","/user/reset/pw")+"?token="+token;
var subject = t("Your token to create a new password");
var content = t("To receive a new password, open the following link: {url}",URL,url);
var message = new Message(user,subject,content,null);
var envelope = new Envelope(message,user);
var message = new TranslatableMessage(user,subject,content,null);
var envelope = new Envelope<>(message,user);
postBox().send(envelope);
} catch (UmbrellaException e){
return send(ex,e);