cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic browser language setting

Former Member
0 Kudos

Hi,

I need some information on internationalization.

Let me explain the issue..

In my application I need both English and Arabic views. It is possible to Change the language through internationalization.

But one more issue is there for Arabic language. I hope u all know that Arabic letters are from right to left. So I have to change the Browser Language settings also to Arabic..

But in my application it should be handled by an event. If u click Arabic button, you should get Arabic browsers and if English you should get English Browsers.

Can anyone help me on this dynamic browser language setting?

Thanks

AD

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi Valery,

Thanks,

Ur answer was helpful.but i still have a problem.

I m in English screen and if i fire exit plug with the ar locale i m getting the same english screen

but if i use that URL in a new page i get the arabic version.

Pls advice me

AD

former_member182372
Active Contributor
0 Kudos

Hello Alex,

Did you follow Nibu`s instructions from here ?

final String locale = wdContext.currentContextElement().getLanguage_selection();
try
{ 
final String url = WDURLGenerator.getApplicationURL(
wdComponentAPI.getApplication().getDeployableObjectPart(),Collections.singletonMap("sap-locale", locale));

WDClientUser.forceLogoffClientUser(url); 
}
catch (final WDURLException ex)
{
wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(ex), false);
}

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi,

My requirement is also same like this thread.I followed all steps but i am not getting.

Can u explain in detail.

Regards,

Srinu

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks for ur help..

that really helped me to solve my issue..

Regards

AD

Former Member
0 Kudos

Alex,

Sadly, it is impossible to change application locale on-the-fly. What you can do is exit your application to itself (fire exit plug with URL of currently running application), specifying locale via URL parameter <b>sap-locale=<locale></b>. Obviously, all current application state will be discarded.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Thanks For a quick reply.

But still I can’t solve the Issue.

Your Advice is highly appreciated

Regards

AD

Former Member
0 Kudos

Hi Alex,

The following thread may help you with regard to your first problem :

Hope this helps,

Best Regards,

Nibu.

Former Member
0 Kudos

Hi Alex

This post might give an insight ,eventhough it does not answer specifically all your questions

Regards

Pran