From: Roland Häder Date: Tue, 24 May 2016 08:56:49 +0000 (+0200) Subject: get locale from user (closes part 1 of TODO) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be657a983f13dc69f1a4a24cee76844874c77e63;p=jbonuscard-core.git get locale from user (closes part 1 of TODO) --- diff --git a/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java b/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java index 5aa6746..205ca5f 100644 --- a/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java +++ b/src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java @@ -18,7 +18,6 @@ package org.mxchange.addressbook.database; import java.text.MessageFormat; import java.util.GregorianCalendar; -import java.util.Locale; import java.util.Objects; import java.util.Properties; import javax.ejb.EJBException; @@ -494,9 +493,9 @@ public abstract class BaseAddressbookDatabaseBean extends BaseDatabaseBean { variables.put("baseUrl", baseUrl); //NOI18N // Set all - // @TODO Get locale from user + language from message bundle + // @TODO Language from message bundle emailWrapper.setRecipient(emailAddress); - emailWrapper.setLocale(Locale.GERMAN); + emailWrapper.setLocale(user.getUserLocale()); emailWrapper.setSubjectLine(subjectLine); emailWrapper.setTemplateName(templateName); //NOI18N emailWrapper.setTemplateVariables(variables);