Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2800

Re: Dynamic Internationalization / Localization

$
0
0

Ok, so I already had everything done according to your note above:

  • All of my pages have an extension of .irpt
  • I had two bundles set up (one for English (en), one for Spanish(es))
  • The user's "default" language was set to "en" (English) and I was seeing all of the pages in the correct language

 

However, I'm still stuck on being able to change the language dynamically.

 

If I append &Language=es to the URL, it does change the session value so that the "Language=es", but it does *not* pick up any values from my bundle. The English labels, button texts, etc are still visible - nothing related to my Spanish resource bundle shows on the screen - even after refreshing the screen.

 

Also, I'm not sure I understand what you're saying about setting a field using the MII JavaScript functions. The project I'm working on doesn't seem to have the SAPUI5 SDK installed or added. Are there non-UI5 functions I can call to set the language?

This language property field can be set using the MII JavaScript functions to whatever value you like and this will therefore override the localization of the page will be done based on the defined language of the session.  All of the UI5 and applet objects have this JavaScript function and this is what is used to manipulate and create session properties:

i5Grid.setPropertyValue(propertyName, propertyValue)


Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>