Example usage for com.liferay.portal.kernel.language LanguageUtil get

List of usage examples for com.liferay.portal.kernel.language LanguageUtil get

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.language LanguageUtil get.

Prototype

public static String get(ResourceBundle resourceBundle, String key) 

Source Link

Usage

From source file:com.liferay.trash.web.internal.display.context.TrashDisplayContext.java

License:Open Source License

public List<NavigationItem> getNavigationItems() {
    List<NavigationItem> navigationItems = new ArrayList<>();

    NavigationItem entriesNavigationItem = new NavigationItem();

    entriesNavigationItem.setActive(true);

    PortletURL mainURL = _liferayPortletResponse.createRenderURL();

    entriesNavigationItem.setHref(mainURL.toString());

    entriesNavigationItem.setLabel(LanguageUtil.get(_request, "entries"));

    navigationItems.add(entriesNavigationItem);

    return navigationItems;
}

From source file:com.liferay.trash.web.internal.portlet.configuration.icon.RestoreRootTrashPortletConfigurationIcon.java

License:Open Source License

@Override
public String getMessage(PortletRequest portletRequest) {
    return LanguageUtil.get(getResourceBundle(getLocale(portletRequest)), "restore");
}

From source file:com.liferay.trash.web.internal.util.TrashUtil.java

License:Open Source License

public void addContainerModelBreadcrumbEntries(HttpServletRequest request,
        LiferayPortletResponse liferayPortletResponse, String className, long classPK,
        PortletURL containerModelURL) throws PortalException, PortletException {

    ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);

    TrashHandler trashHandler = TrashHandlerRegistryUtil.getTrashHandler(className);

    String rootContainerModelTitle = LanguageUtil.get(themeDisplay.getLocale(),
            trashHandler.getRootContainerModelName());

    if (classPK == 0) {
        _portal.addPortletBreadcrumbEntry(request, rootContainerModelTitle, null);

        return;/*from   w  ww .  j a va  2s .co  m*/
    }

    containerModelURL.setParameter("containerModelId", "0");

    _portal.addPortletBreadcrumbEntry(request, rootContainerModelTitle, containerModelURL.toString());

    addBreadcrumbEntries(request, liferayPortletResponse, className, classPK, "containerModelId",
            containerModelURL, false);
}

From source file:com.liferay.user.groups.admin.item.selector.web.internal.UserGroupItemSelectorView.java

License:Open Source License

@Override
public String getTitle(Locale locale) {
    ResourceBundle resourceBundle = _portal.getResourceBundle(locale);

    return LanguageUtil.get(resourceBundle, "user-groups");
}

From source file:com.liferay.user.groups.admin.web.internal.portlet.configuration.icon.DashboardPagesPortletConfigurationIcon.java

License:Open Source License

@Override
public String getMessage(PortletRequest portletRequest) {
    return LanguageUtil.get(getResourceBundle(getLocale(portletRequest)), "go-to-dashboard-pages");
}

From source file:com.liferay.user.groups.admin.web.internal.portlet.configuration.icon.ManagePagesPortletConfigurationIcon.java

License:Open Source License

@Override
public String getMessage(PortletRequest portletRequest) {
    return LanguageUtil.get(getResourceBundle(getLocale(portletRequest)), "manage-pages");
}

From source file:com.liferay.user.groups.admin.web.internal.portlet.configuration.icon.ProfilePagesPortletConfigurationIcon.java

License:Open Source License

@Override
public String getMessage(PortletRequest portletRequest) {
    return LanguageUtil.get(getResourceBundle(getLocale(portletRequest)), "go-to-profile-pages");
}

From source file:com.liferay.user.groups.admin.web.internal.portlet.configuration.icon.UserGroupPagesPermissionsPortletConfigurationIcon.java

License:Open Source License

@Override
public String getMessage(PortletRequest portletRequest) {
    ResourceBundle resourceBundle = ResourceBundleUtil.getBundle("content.Language", getLocale(portletRequest),
            getClass());/*from w  w  w.jav a  2 s  .  c o m*/

    return LanguageUtil.get(resourceBundle, "user-group-pages-permissions");
}

From source file:com.liferay.users.admin.item.selector.web.internal.UserItemSelectorView.java

License:Open Source License

@Override
public String getTitle(Locale locale) {
    ResourceBundle resourceBundle = _portal.getResourceBundle(locale);

    return LanguageUtil.get(resourceBundle, "users");
}

From source file:com.liferay.users.admin.web.internal.portlet.configuration.icon.AssignOrganizationRolesPortletConfigurationIcon.java

License:Open Source License

@Override
public String getMessage(PortletRequest portletRequest) {
    ResourceBundle resourceBundle = ResourceBundleUtil.getBundle("content.Language", getLocale(portletRequest),
            getClass());/*from   w w w  .  j  av  a  2s  . com*/

    return LanguageUtil.get(resourceBundle, "assign-organization-roles");
}