Quantcast
Channel: SCN : All Content - SAP Enterprise Portal : Administration and Development
Viewing all articles
Browse latest Browse all 526

Get list of configured supported languages

$
0
0

Hi all,

 

 

we are using a SAP Netweaver Portal 7.4.

We have configured the list of supported languages in UME to only allow "en,de,fr". For standard identity management application when changing the user language this works fine and only those three languages are displayed.

But now we need to create a custom personalization component (AbstractPortalComponent) and want to retrieve the shortened list of available languages.

 

Unfortunately following coding will not return the custom configured list but the complete list configured by SAP:

 

ILocaleListService localeService = (ILocaleListService) PortalRuntime.getRuntimeResources().getService(ILocaleListService.KEY);

List<Locale> allLocales = (List<Locale>) localeService.getListOfLocalesOrderedByDisplayName(userLocale);

List<Locale> customLocales = (List<Locale>) localeService.getListOfCustomizedLocalesOrderedByDisplayName(userLocale);

List<Locale> persLocales = (List<Locale>) localeService.getListOfPersLocalesOrderedByDisplayName(userLocale);

List<Locale> sourceLocales = (List<Locale>) localeService.getListOfSourceLocalesOrderedByDisplayName(userLocale);

List<Locale> targetLocales = (List<Locale>) localeService.getListOfTargetLocalesOrderedByDisplayName(userLocale);

 

 

So, how can we retrieve the list of the customized list of locales?

 

regards

René


Viewing all articles
Browse latest Browse all 526

Trending Articles



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