From 28efc06110b938bc88d94c898547bd020681ac50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 23 May 2016 09:48:59 +0200 Subject: [PATCH] set user's initial locale from given one MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../beans/user/PizzaUserWebSessionBean.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java index 8ec13932..08d41985 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java @@ -53,6 +53,7 @@ import org.mxchange.jusercore.model.user.UserUtils; import org.mxchange.jusercore.model.user.profilemodes.ProfileMode; import org.mxchange.pizzaapplication.beans.BasePizzaController; import org.mxchange.pizzaapplication.beans.contact.PizzaContactWebSessionController; +import org.mxchange.pizzaapplication.beans.localization.PizzaLocalizationSessionController; import org.mxchange.pizzaapplication.beans.login.PizzaUserLoginWebSessionController; import org.mxchange.pizzaapplication.beans.register.PizzaUserRegisterWebSessionController; @@ -81,6 +82,12 @@ public class PizzaUserWebSessionBean extends BasePizzaController implements Pizz @Inject private PizzaContactWebSessionController contactController; + /** + * Localization controller + */ + @Inject + private PizzaLocalizationSessionController localizationController; + /** * Login bean (controller) */ @@ -443,7 +450,8 @@ public class PizzaUserWebSessionBean extends BasePizzaController implements Pizz this.setUserPasswordRepeat(randomPassword); } - // Set user name and mode + // Set local, user name and mode + user.setUserLocale(this.localizationController.getLocale()); user.setUserName(this.getUserName()); user.setUserProfileMode(this.getUserProfileMode()); -- 2.39.5