Wrong fallback language

Sobotka Martin martin.sobotka at inet-logistics.com
Tue May 30 11:52:16 EDT 2017


Hi,

I'm trying to configure my IdP (version 3.3.1) to use the correct locale (translation). There should be three ways (scenarios) to set the locale:
-  URL Parameter "Lang"
- Cookie with name "locale"
- And Accept-Language Header
The default and fallback language should be English.

All these three scenarios are working if I you use a known locale, in my case "en", "de" or "zh". If I choose an unknown locale, e.g. "es", the login page will be displayed in German instead of English.

My configuration looks like as follows:
File "idp.properties":
	[...]
	idp.ui.fallbackLanguages=en
	[...]
File "services.xml":
	[...]
	<util:list id="shibboleth.MessageSourceResources">
        		<value>%{idp.home}/messages/messages</value>
       		<value>%{idp.home}/system/messages/messages</value>
	</util:list>
	[...]
File "mvc-beans.xml":
	[...]
	<mvc:interceptors>
		<bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
			<property name="paramName" value="Lang"/>
			<property name="languageTagCompliant" value="true"/>
			<property name="ignoreInvalidLocale" value="true"/>
		</bean>
	</mvc:interceptors>
	<bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver">
		<property name="cookieName" value="locale"/>
		<property name="languageTagCompliant" value="true"/>
	</bean>
	[...]
Files in directory "messages/":
	- messages_en.properties
	- messages_de.properties
	- messages_zh.properties
(I've also renamed messages_en.properties to messages.properties without success)

Do you have any tips or hints to change the fallback language back to English?

Thanks in advance,
Martin



More information about the users mailing list