List of usage examples for com.liferay.portal.kernel.util PropsKeys LOCALES_ENABLED
String LOCALES_ENABLED
To view the source code for com.liferay.portal.kernel.util PropsKeys LOCALES_ENABLED.
Click Source Link
From source file:com.liferay.wsrp.bind.V2MarkupServiceImpl.java
License:Open Source License
protected String getWidgetPath(String languageId) { HttpServletRequest request = ServletUtil.getRequest(); String portalURL = PortalUtil.getPortalURL(request); StringBundler sb = new StringBundler(5); sb.append(portalURL);//from w ww .j av a2 s . c o m sb.append(PortalUtil.getPathContext()); String[] localesEnabled = PropsUtil.getArray(PropsKeys.LOCALES_ENABLED); if (ArrayUtil.contains(localesEnabled, languageId)) { sb.append(StringPool.SLASH); sb.append(languageId); } sb.append(_PATH_WIDGET); return sb.toString(); }