mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
Fix default language swith ...
This commit is contained in:
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();
|
||||||
|
|
||||||
|
1
wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties
Symbolic link
1
wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties
Symbolic link
@ -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}"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user