]> git.mxchange.org Git - pizzaservice-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 17:05:14 +0000 (19:05 +0200)
src/org/mxchange/pizzaaplication/database/BasePizzaDatabaseBean.java

index cd1e7abfd4a149fb6f4fe364d3adfdb57315a43e..3e8a5e1f4e7d80c5320ee653fa1679fb0665dd99 100644 (file)
@@ -18,7 +18,6 @@ package org.mxchange.pizzaaplication.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 BasePizzaDatabaseBean 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);