]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
set user's initial locale from given one
authorRoland Häder <roland@mxchange.org>
Mon, 23 May 2016 07:48:59 +0000 (09:48 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 25 May 2016 17:33:40 +0000 (19:33 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java

index 8ec13932046c904c5a384fd481b122b5f505581c..08d419853f5324de9b30e7aeb700ffd580d7e154 100644 (file)
@@ -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());