java - Liferay: getting all available site languages -
as know, in liferay can setup (portal-)languages available sites. in site's controlpanel can take of these languages should available user of site.
so far have found languageutil.getavailablelocales()
, returns list of available portal locales not sites' locales.
is there way site languages?
use api method below
public static locale[] com.liferay.portal.kernel.language.languageutil.getavailablelocales(long groupid)
here groupid groupid of site/group, want locales.
this method homecoming array of locale.
java localization liferay
No comments:
Post a Comment