Skip to Content
Former Member
Apr 16, 2007 at 06:55 AM

Dynamic change the browser language


Hi people,

I want to change dynamically the language of my webdynpro application. I followed the steps described in the thread how to set languages for webdynpro object

When I start a new browser window (IExplorer 6.0) and I enter the URL of my application with the url parameter sap-locale="de_DE" or sap-locale="en_US" the application starts in the desired language. Fine!

But if I terminate the application like described in the thread

final String locale = wdContext.currentContextElement().getDropDown();



final String url = WDURLGenerator.getApplicationURL(

wdComponentAPI.getApplication().getDeployableObjectPart(),Collections.singletonMap("sap-locale", locale));


// IWDWindow w = wdComponentAPI.getWindowManager().createExternalWindow(url, "hjhj", false);



catch (final WDURLException ex)


wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(ex), false);


the application restarts, but without changing the language, even if the URL has the URL parameter sap-locale set.

Is this a bug of the browser (is the language cached?)? Any idea how the change the language of the appliaction, out of the application itselfe?

Thanks for your help!,