Skip to Content
0

How can users select languages in launchpad site of HANA Cloud Portal (without URL parameter)

Nov 22, 2016 at 06:02 PM

171

avatar image

Hi,

I think I was able to maintain languages in my little sandbox site.

It's also possible to switch language in URL. But I simply cannot select the language in "User preferences"

I can select themes. But the feature to select language is not active.

Any ideas?

shot1.png (10.3 kB)
shot2.png (10.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Guy Roth
Nov 24, 2016 at 01:35 PM
0

Hi Meinrad,

A user cannot change the language of the site via personalization, only by changing his browser's language.

In all UI5 applications (including Cloud Portal), the language is calculated in this order, last one available wins:

  1. Hard-coded UI5 default locale ('en')
  2. Potentially configured browser language (window.navigator.browserLanguage); for Internet Explorer this is the language of the Operating System
  3. Potentially configured user language (window.navigator.userLanguage); for Internet Explorer this is the language in the Region settings
  4. General language information from the browser (window.navigator.language)
  5. Android: Language contained in the user agent string (window.navigator.userAgent)
  6. Locale configured in the application coding (jsdoc:symbols/sap.ui.core.Configuration)
  7. Locale configured via URL parameters

Regards,

Guy

Share
10 |10000 characters needed characters left characters exceeded
Meinrad Funke Nov 27, 2016 at 02:38 PM
0

Hi guy,

thanks for this answer. This makes probably sense in most cases.

Please don't feel offended but I thinkl that it is simply not enough. Suppose some international context. I'm German - so I see a German UI. So far so good. Now I have to talk to some non German guy.

Wouldn't it be awesome to just switch the UI to English? This makes discussions or spontaneous screen sharing *a lot* easier.

Regards

Meinrad

Share
10 |10000 characters needed characters left characters exceeded
Guy Roth
Nov 27, 2016 at 06:07 PM
0

Hallo Meinrad,

Ja, ich verstehe dich. Ich weiß auch, wie schwer es ist, die Sprache so oft zu ändern :)

In fact, we have some customers who implemented this feature quite easily. You can add a custom button to the header or a custom item to the Options menu, and create some UI that will allow users to change the language by refreshing the browser with the relevant URL parameter. See here: https://help.hana.ondemand.com/cloud_portal/frameset.htm?296c6e1d8980467e94615d680731961a.html

Regards,

Guy

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Guy!

I added this functionality to a site which I'm creating to test the Portal's API and functionalities.
I added this implementation inside the Home widget, however, when I navigate to a widget X and go back to the Home page, the custom button gets duplicated.

I took a look in the sap.ushell.renderers.fiori2.RendererExtensions methods but I didn't see a method to retrieve the buttons which I already have in the screen.

Do you know how they handled this situation?

Thanks!
Ígor

0
Meinrad Funke Dec 04, 2016 at 07:25 PM
0

Hi Guy,

thanks for pointing this out. For the original purpuse it is probably too much development effort. But it's good to know that option..

I was interested in how to modify the menu - would have been one of the next tasks.

Regards,

Meinrad

Share
10 |10000 characters needed characters left characters exceeded