]> git.mxchange.org Git - addressbook-core.git/commitdiff
get locale from user (closes part 1 of TODO)
authorRoland Häder <roland@mxchange.org>
Tue, 24 May 2016 08:56:49 +0000 (10:56 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 25 May 2016 18:09:41 +0000 (20:09 +0200)
src/org/mxchange/addressbook/database/BaseAddressbookDatabaseBean.java

index 5aa6746f91ab82229ff9ef16a18ca1236ed288aa..205ca5f24234a659ada04348e0b56c4047ba7fb3 100644 (file)
@@ -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);