cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

language parameter in url

Former Member
0 Likes
7,117

Hey Guys,

Is there a way in the url into the portal to pass the language as a parameter in the url?

like: http://server/irj/index.html?language=en

or something?

Thanks,

-Kevin

View Entire Topic
Former Member
0 Likes

Hi Kevin,

Yes there is a way to do it.

After going through lines of codes and number of files I traced it down and found it.

So if you want to access a language specifict Portal logon page you can simply add

?ume.logon.locale=LanguageCode

after the portal logon page URL; e.g. a Spanish portal logon page will be:

http://<host:port>/irj/portal?ume.logon.locale=es

It can even be more specific e.g.

Mexican Spanish is “es_MX” or US English en_US

The portal also gives us the option to add new property language files for languages that are currently not supported by SAP EP6.

the file name is language_xx.property. there is a documentation on this in sdn area. search for customising the Logon page.

Haik

If this post helps please dont forget to grant me some Forum point.

Former Member
0 Likes

Hi,

I tried to logon anonymously with the following url: http://sid.domain.com/irj/portal/anonymous?ume.logon.locale=en_us

But the portal still show me the browser language and not English.

Any idée?

Regards

Mikael

Former Member
0 Likes

Hi Mikael

You don't need to put the '/ananymouse' part in teh URL.

You just need to add ?ume.logon.locale=en_US after the logon URL of your portal.

please note that no '/' is needed before the '?'.

I just re-tried it and it works.

Regards,

Haik

Former Member
0 Likes

Thanks for your quick answer!

It does works with /irj/portal/?ume.logon.locale=DE but not for the anonymous page... And it is just for the anonymous page I need this function...

Can there be any other option or prefix for the anon page?

/Micke

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

Hi Mikael,

What you can do is create an anonymous named user for each language you want to expose, set the locale for each user appropriately, and then create URL for each.

For example:

http://server:port/irj/portal/anonymous?j_user=DE

I'm not positive whether the URL parameter is j_user or guest_user, but one should work.

For more information, see http://help.sap.com/saphelp_nw04s/helpdata/en/1e/e19f58136e654d9709befa464314f2/frameset.htm. The documentation says your scenario is a typical use case for this feature.

Hope this helps.

Daniel

Former Member
0 Likes

Hi again,

Now I got it working nearly perfect.

http://server:port/irj/portal/anonymous?j_user=DE is working but when I start to click in the menu it gives me my browser language.

Any ides?

/Mikael

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

Hi Mikael,

I believe your issue is related to an issue described in SAP Note 870247.

This is fixed in SPS16, but the note provides a PAR for upgrading your current installation.

I think this is the problem you are describing. Hope this helps and solves the problem.

Daniel

Former Member
0 Likes

I have now apply the fix from the note but I still have some problem...

Maybe I have to wait for SPS16...

Check out our portal at http://www.emtab.com

The iViews is BSPs witch also change back to browser language after click on an other link in the manu.

/Mikael

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

Hi Mikael,

I think there is something not set up correctly on your portal.

Even with the problem described in the SAP Note, your portal should work with the correct language on the first page (you should see the masthead in german).

The bug that is described only affects subsequent navigation -- basically, because navigation links do not automatically include the j_user parameter.

Are you sure the portalDE user is in the Anonymous Users group?

Daniel

P.S.: Please consider awarding points if any of the above was helpful. Thanks.

Former Member
0 Likes

Hi Daniel,

Need your help on this one.

I have followed the steps in the help.sap.com link given above in configuring bi-lingual portal (English/German) for anonymous access. I am implementing a light-framework external facing portal. EP7 on WAS 7.0

I am facing this bug that you have mentioned:

My iview on the default page assigned to the first role gets the new language based on the j_user parameter I specify in the URL. But subsequently when I click on other pages within that role or across roles too, the j_user parameter is lost from the URL and it does not get the appropriate resource bundle.

Any idea if this is fixed.

If not is there a work around or so?

Awaiting your help.

Thanks in advance.