Fix default language swith ...

This commit is contained in:
Paulo Gustavo Veiga 2012-08-16 18:28:09 -03:00
parent 49727943da
commit 2e8b166b8a
3 changed files with 7 additions and 4 deletions

View File

@ -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();

View File

@ -0,0 +1 @@
messages_en.properties

View File

@ -88,7 +88,9 @@
</bean>
<bean id="localeResolver"
class="org.springframework.web.servlet.i18n.SessionLocaleResolver"/>
class="org.springframework.web.servlet.i18n.SessionLocaleResolver">
<property name="defaultLocale" value="en" />
</bean>
<bean id="reCaptcha" class="net.tanesha.recaptcha.ReCaptchaImpl">
<property name="privateKey" value="${google.recaptcha.privateKey}"/>
@ -109,4 +111,4 @@
</list>
</property>
</bean>
</beans>
</beans>