Fix default language swith ...
parent
49727943da
commit
2e8b166b8a
|
@ -127,7 +127,7 @@ public class UserServiceImpl
|
||||||
}
|
}
|
||||||
|
|
||||||
//create welcome map
|
//create welcome map
|
||||||
final Mindmap mindMap = buildWelcomeMindmap(user.getFirstname());
|
final Mindmap mindMap = buildTutorialMindmap(user.getFirstname());
|
||||||
mindmapService.addMindmap(mindMap, user);
|
mindmapService.addMindmap(mindMap, user);
|
||||||
|
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ public class UserServiceImpl
|
||||||
return user;
|
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.
|
//To change body of created methods use File | Settings | File Templates.
|
||||||
Locale locale = LocaleContextHolder.getLocale();
|
Locale locale = LocaleContextHolder.getLocale();
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
messages_en.properties
|
|
@ -88,7 +88,9 @@
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="localeResolver"
|
<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">
|
<bean id="reCaptcha" class="net.tanesha.recaptcha.ReCaptchaImpl">
|
||||||
<property name="privateKey" value="${google.recaptcha.privateKey}"/>
|
<property name="privateKey" value="${google.recaptcha.privateKey}"/>
|
||||||
|
@ -109,4 +111,4 @@
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
</beans>
|
</beans>
|
||||||
|
|
Loading…
Reference in New Issue