Locale issue in Portal

29 views
Skip to first unread message

mouli

unread,
Aug 10, 2015, 5:38:36 PM8/10/15
to portalw...@googlegroups.com
Hello Friends,

I hope everyone is doing well. Actually I am looking for a small help on one of portal issues. We have two portals (6.1 & 8.0) and which are running on two different machines. We have a requirement that users will go from portal 6 to portal 8 through SSO. So, when a user selects Spanish language in Portal6 and goes to portal8, we need to maintain Spanish locale in portal 8 by without asking user to change the language. 

Could anyone please suggest me an idea to approach that.

Thanks in advance.
Have a nice day!


--
Regards,
Chandramouli Gajam

Ravi Kota

unread,
Aug 10, 2015, 8:05:52 PM8/10/15
to portalw...@googlegroups.com
Append locale in URL from v6 as query string, by the time it goes to v8 locale=value will be available.

Ravi

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Portal/WCMTechs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to portalwcmtech...@googlegroups.com.
To post to this group, send email to portalw...@googlegroups.com.
Visit this group at http://groups.google.com/group/portalwcmtechs.
For more options, visit https://groups.google.com/d/optout.

mouli

unread,
Aug 14, 2015, 4:09:16 PM8/14/15
to portalw...@googlegroups.com
Thanks Ravi,

It is working as expected. As soon as we come to the target page, will read the value in theme and call changeLangauge command url to change the locale of the portal. It just added one extra redirect call.

I appreciate your help!!


Take care every one


--
Regards,
Chandramouli Gajam

seenu Kandregula

unread,
Aug 20, 2015, 10:52:10 AM8/20/15
to portalw...@googlegroups.com
Hi

Mouli

We can do using  state manager service for maintain the local state 

when you adding the following custom properties in WP state manager service, when the user will login created one cookies and this cookies carry the locale


preprocessors = com.ibm.wps.state.preprocessors.urlmapping.URLMappingPreProcessor,com.ibm.wps.resolver.friendly.preprocessors.FriendlyPreProcessor,com.ibm.wps.resolver.portal.ResolvedPreprocessor,com.ibm.wps.state.preprocessors.selection.StandardPortalSelectionImpl,com.ibm.wps.state.preprocessors.selection.FragmentSelectionImpl,com.ibm.wps.state.preprocessors.selection.ResourceSelectionImpl,com.ibm.wps.state.preprocessors.eclipse.ExtensionPreProcessor,com.ibm.wps.state.preprocessors.portlet.RequestParameterMerger,com.ibm.wps.state.preprocessors.locale.CookieSupportedLanguagePreProcessor

com.ibm.wps.state.preprocessors.locale .CookieSupportedLanguagePreProcessor.cookie.maxage = -1
for more detils please refer following link


Inline image 1

Thanks 

--
You received this message because you are subscribed to the Google Groups "Portal/WCMTechs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to portalwcmtech...@googlegroups.com.
To post to this group, send email to portalw...@googlegroups.com.
Visit this group at http://groups.google.com/group/portalwcmtechs.
For more options, visit https://groups.google.com/d/optout.



--
Srini
IBM WebSphere Portal Consultant
Reply all
Reply to author
Forward
0 new messages