Skip to Content
0
Former Member
Jan 29, 2007 at 01:04 PM

Getting list of available portal languages

17 Views

Hi,

is there a way to retrieve the available languages in the portal ?

I already looked at :

Interface ILocaleListServicehttps://media.sdn.sap.com/javadocs/NW04/SP12/prtsupp/com/sapportals/admin/wizardframework/util/ILocaleListService.html#method_summary">ILocaleListService> :

	  Locale locale = req.getUser().getLocale();
	  List ls = ILocaleListService.getListOfLocalesOrderedByDisplayName(locale);

1) This is unfortunately the interface. When clickining in the javadocs on 'use' it appears nowhere to be used.

2) Would using the UMFactory.getproperties()https://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/UMFactory.html">UMFactory.getproperties()> be an alternative?

I would prefer to use method 1) though.

Thanks for the help,

Kevin