Language Resetting to Default when Navigating to Pages via Navigation Model in Multilingual Portal (Doc ID 1600524.1)

Last updated on JUNE 30, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

The portal language is resetting to default language when navigating using the navigation model.

We are using below files to do multilingual portal:

PortalPagePhaseListener.java - It implements PagaPhaseListener to set the language in ADFContext, Faces context , ADF preferences factory & in session:

 

Locale locale = new Locale(storedLoc);
uiRoot.setLocale(locale);

ADFContext adfctx = ADFContext.getCurrent();
adfctx.setLocale(locale);

adfctx.getSessionScope().put("userLocale", storedLoc);

 

LangSelectBean.java - It is a valueChangeListener to change the language.

langSelectView.jsff - Used to display language select drop down.
default-navigation-model.xml - It has four authenticated pages to navigate through portal.
PortalBundle.properties - It is used to select the multilingual values for respective language.

Steps to Reproduce
==================
1. Run the uploaded sample application.
2. Logging in to portal application.
3. Change the language using select language drop down.
4. The navigation menu items have got changed to selected language.
5. Navigate to any other page by clicking top navigation menu item.
6. The language got reset to default language after navigate to selected page.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms