import java.text.MessageFormat;
import java.util.GregorianCalendar;
-import java.util.Locale;
import java.util.Objects;
import java.util.Properties;
import javax.ejb.EJBException;
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);