Hi,
I am developing a site that uses two different languages english and french. hence I am using the I18nUtils feature of Vignette.
I have created a style of type site controls. in this styles primary jsp i have used <vgn-portal:i18nValue stringID="<%=i18nID%>" key="myaccount" default-Value="My Account" />
i have also used the com.epicentric.common.website.I18nUtils.setUserLocale(user, java.util.Locale.ENGLISH)(similarly for french) to set the locale for the user.
I am setting the above statement depending on a request parameter for language.
When such a parameter is available in the request, the User locale gets set. however the <vgn-portal:i18nValue stringID="<%=i18nID%>" key="myaccount" default-Value="My Account" /> is still showing the english value.
When I refresh the browser again with the same request parameter for french, it is then the french content is getting displayed.
Can anyone please help me understand this behaviour? Is this the correct way?
Regards
Bhavani