From 2e8b166b8ac43ffe6eb9d96fde4ecc430e63c596 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 16 Aug 2012 18:28:09 -0300 Subject: [PATCH] Fix default language swith ... --- .../main/java/com/wisemapping/service/UserServiceImpl.java | 4 ++-- .../src/main/webapp/WEB-INF/classes/messages.properties | 1 + wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 120000 wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties diff --git a/wise-webapp/src/main/java/com/wisemapping/service/UserServiceImpl.java b/wise-webapp/src/main/java/com/wisemapping/service/UserServiceImpl.java index 4578aeeb..13fedcba 100755 --- a/wise-webapp/src/main/java/com/wisemapping/service/UserServiceImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/service/UserServiceImpl.java @@ -127,7 +127,7 @@ public class UserServiceImpl } //create welcome map - final Mindmap mindMap = buildWelcomeMindmap(user.getFirstname()); + final Mindmap mindMap = buildTutorialMindmap(user.getFirstname()); mindmapService.addMindmap(mindMap, user); @@ -142,7 +142,7 @@ public class UserServiceImpl return user; } - public Mindmap buildWelcomeMindmap(@NotNull String firstName) { + public Mindmap buildTutorialMindmap(@NotNull String firstName) { //To change body of created methods use File | Settings | File Templates. Locale locale = LocaleContextHolder.getLocale(); diff --git a/wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties b/wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties new file mode 120000 index 00000000..366b74af --- /dev/null +++ b/wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties @@ -0,0 +1 @@ +messages_en.properties \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml index f2fe9516..6e9d862c 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml @@ -88,7 +88,9 @@ + class="org.springframework.web.servlet.i18n.SessionLocaleResolver"> + + @@ -109,4 +111,4 @@ - \ No newline at end of file +