A while back I wrote a blog on same topic.
You might want to refer it.
I tried out your solution with NW 7.0. I followed your blog exactly. I am able to get the language field in the login screen.
But I have one issue.
We have dual stack (ABAP + Java). SAP EP is integrated with SAP R/3. I have an user in R/3 whose profile language is maintained as "English". Now I try to login to portal with the same user and selected the language as "German" from the dropdown box and hit "Logon" button.
After logged in to portal, My portal language is in English only. Portal didn;t appear in German language.
Could you please help me to solve this issue.
I Didn't mention one point in the blog, it just skipped out of my mind. For performance reasons I am checking, whether the Locale has been set initially. For the solution to work, The locale should be set for the user in User profile.
You can maintain the Language for he user in User Administration or Through Personalization. One it's set the code will work for all future language changes.
My requirement is to enable the user to select the language of the portal at login. So that after login, the portal will be displayed in the selected language.
For example, If the language for an user is maintained as "German" in the user profile, and during login, if he selects "English" and hit the logon button, the portal should be displayed in English Language.
The language selected at the time of login should either overwrite the language maintained in the user profile or enable the user to see the portal in the selected language for the current logged session alone.
I tried your blog and it allows me to display the language field but it loads the portal in the language that is maintained in the user profile.
Let me try to acheive my requirement . Mean time, if you have any suggestions, please let me know.
The solution which I proposed Changes the Language preference in the User Profile and loads the portal in that language.
It's working successfully for me here. Can you please try looking at the Server Traces to figure out why it's failing for you.
What I understood from your post is that, the profile language is not getting changed. This implies that either the Logon Module itself is not getting called or some error is thrown inside it.
Look at the trace and post it to troubleshoot it better.
In the mean time I have started working on porting this solution to Netweaver 7.3, I will update you if I am able to do it successfully.
It is working. Thank You very much for your blog.
In the configuration tool, under Services
> Security->Properties tab , I modified the property LoginModuleClassLoaders and restarted the server. It works.
I need to implement the same requirement in SAP NW EP 7.3 also. I will also start to work on it and will update you on the same.
Mean time..., please provide me with your suggestions too. Thanks
Glad to know that it worked for you. I have another Good News for you :
I was able to port the logon module to Netweaver 7.3 but had to do some quirks.
This place is too limited to discuss those. I will document the steps and will try to post a blog soon.
I have started a request in the SAP Idea Place ( https://cw.sdn.sap.com/cw/ideas/8019# ) to get the language selection as a standard option for the portal.
Please have a look at this and give it a positive vote. The more people vote for this the higher is the chance to get it ...
Thanks for your help !!!
Incase you are interested, I have written a blog on how to get the Language option in Netweaver Portal 7.3.
It can be found here:
When users login with the portal they can choose among selected languages that are allowed instead of being faced with a long list of languages.
How can I restrict the list of languages displayed in the dropdown box in the portal login screen?
I tried implementing [Configuring the List of Available Languages|help.sap.com/saphelp_nw73/helpdata/EN/45/fff338e19134dde10000000a1553f7/frameset.htm] . This allows me to restrict the list of languages displayed in the user profile.