cancel
Showing results for 
Search instead for 
Did you mean: 

Allow users to switch language in the Fiori Launchpad

former_member338801
Participant
0 Kudos

Hi Experts,

How can we achieve language change option in Fiori launchpad.

Requirment: Allow users to switch language in the Fiori Launchpad

Thanks and Regards,

RK

Accepted Solutions (1)

Accepted Solutions (1)

saurabh_vakil
Active Contributor
0 Kudos

One option you can explore is develop a Fiori Launchpad plugin which allows users at runtime to select from a list of available languages.

Refer https://blogs.sap.com/2017/05/24/allow-users-to-switch-language-in-the-fiori-launchpad-using-ui-plug...

former_member338801
Participant
0 Kudos

Thanks Saurabh for help link.

Can we make this language option like if you choose language from drop down and do log-off try login again then whatever we selected should come as default language.

Thanks and Regards

RK

Answers (4)

Answers (4)

former_member338801
Participant
0 Kudos

Thanks Saurabh for your thoughts.

Any idea how can I achieve so. Means by writing odata service and consume it on sap ui5 application?

Thanks and Regards

RK

former_member338801
Participant
0 Kudos

Hello All,

I am working on this and below are the way to make it according to my requirement. Please help if I am doing anything wrong.

1) Will use same ui plugin mentioned in the below blog.

Refer https://blogs.sap.com/2017/05/24/allow-users-to-switch-language-in-the-fiori-launchpad-using-ui-plug.../

2) Plan is to create userid , new language & old language field in gateway data base followed by service creation.

3) Will put condition according to the comparison between new lang and old lang data if it is same then trigger English if diffrent then trigger any language according to the data and put switch case. One default entry will be there where both field have English. Once user choose select any language update the new language field and condition will there in the Init function to handle the same.

4) How to create odata model and access it in the Component.js to achieve all these scenario including update and condition. Your help will be appreciated.

Thanks and Regards

RK

saurabh_vakil
Active Contributor
0 Kudos

I'm not sure whether there is a straightforward way of preserving the sap-language parameter in the URL for different values when doing logoff.

Normally on logging off the page redirects to the logoff URL specified in the logoff ICF service on the gateway (this is usually the Fiori Launchpad URL without any sap-language parameter - if you have this parameter then on logging off it will always load the logon page in this hard-coded language), you will need to find some way of adding the selected language parameter (sap-language=EN, sap-language=DE and so on, according to the language the user selects at runtime) to the logoff URL so that the setting preserves on the logon page as well.

former_member338801
Participant
0 Kudos

Any thoughts on this ?

former_member338801
Participant
0 Kudos

Any thoughts on this pls?

SarhanP
Contributor
0 Kudos

No no I am recommending this for users as well, this is not for developers, I could not find easier and fastest way so far, that is why I have shared. Longest way is to re login

Colleen
Advisor
Advisor
0 Kudos
just extending on Sarhan's answer: it's a bit like SAPGUI - you choose your login language at the beginning


From a user experience point of view then, I'd ask how do your users access Fiori Launchpad in the first place - do they have an icon or a publish favourite that they click on? If so, you could publish another version for your other language (assuming you don't need to support too many) but using the sap-language= parameter in the URL that Sarhan pointed out.

SarhanP
Contributor
0 Kudos

Hi Ram,

I am using url on the browser to switch between languages, fastest way 🙂

From Turkish to English, just replace TR with EN in the browser 🙂 in 1 seconds.

former_member338801
Participant
0 Kudos

Thanks Sarhan for your response.

How to implement this on the Fiori launchpad and give user to choose according to their convenient.The approach shared by you will be helpful for developers.

Thanks and Regards

RK