Skip to Content
1
Jun 22, 2016 at 06:47 AM

Set language in SAPUI5 application after login to application server

2298 Views

Hi all,

I have currently an issue with switching the language of an SAPUI5 application after the user have successfully passed the login of the application server. When the application is called with the default parameter in the uri to set the language (http://sapr3entw.com:8082/sap/bc/ui5_ui5/sap/zpropla/?sap-language=en) the login mask shows the correct language.

After a successfull authorization the browser forwards to the orignal requested application without the neccessary language-parameter in the uri and the application is loaded in German instead of English. After the user is logged in and the the uri with the language parameter (?/sap-language=en) is called again the language will successfully switched to English.

In the developer guide (https://sapui5.hana.ondemand.com/#docs/guide/91f21f176f4d1014b6dd926db0e91070.html) I have seen that there is an existing order how the language is set within the application, but there is no information how to get/set the language of the current logged in user of the application server (selected language in the login mask).

Any ideas how to set the language of an SAPUI5 application according to the language set from the login?

Would be thankful for any hint.

Kind regards

Martin

Attachments

Capture.PNG (400.0 kB)