]> git.mxchange.org Git - jjobs-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 19:01:45 +0000 (21:01 +0200)
src/org/mxchange/jjobs/database/BaseJobsDatabaseBean.java

index 567627fa34bad7f6575c8c07e7a6b2042d3dad05..4f778bc7178d7f1b9d4f334ce80ca5864c9dfa77 100644 (file)
@@ -18,7 +18,6 @@ package org.mxchange.jjobs.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 BaseJobsDatabaseBean 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);