cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Language for a portal session

Former Member
0 Kudos
79

Hi,

My scenario is very simple; I need to set a language during a portal session.

I tried the following solutions.

1. Tried to change the SAPMLogonLogic.Class file. In the submit method of the jsp page, i tired to force the user store lanugage preference using com.sap.security.api but didn't work. <b>Can someone explain why it didn't change the user store language value? </b>

2. Tried to enable the language drop down in the portal page to see if a selection on the dropdown changes the session language.

3. saw couple of threads. one asking to modify masthead.par to get the logon language and reset the user store language value there. <i>I didn't try this. can someone validate if this would serve my scenario?</i>

Regards

Ak

PS: Points assured

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member304001
Active Contributor
0 Kudos

Look in the following folder :

\usr\sap\<system_id>\j2ee\j2ee_<instance_number>\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\system\properties

There should be two files, named prtCentral.properties.bak and prtDefault.properties. In each file, add the following lines :

request.mandatorylanguage=<language code>

request.mandatorycountry=<country code>

Replace the values to your liking (en for english, fr for french, etc.)

Next remove the ".bak" at the end of the prtCentral.properties.bak file so that it gets deployed in the portal, and you're done.

and also look into this link

http://help.sap.com/saphelp_erp2004/helpdata/en/ce/b31e40777cdd5fe10000000a155106/frameset.htm

Message was edited by:

Krishna Kishore Reddy Kondu

Former Member
0 Kudos

Hi Krishna Kishore Reddy Kondu,

What you say is a one time activity. but i want to choose between two languages at my will during logon.

Any ideas on this?

~A.k.