protected String getButtonName(String barItem, Map<String, String> buttonNamesLookUp) {

        String result = barItem;
        if (buttonNamesLookUp != null) {
            String translatedName = buttonNamesLookUp.get(barItem);
            if (CmsStringUtil.isNotEmpty(translatedName)) {
                result = translatedName;
            }
        }
        return result;
    }
protected String getButtonName ( String barItem , Map < String , String > buttonNamesLookUp ) { String result = barItem ; if ( buttonNamesLookUp != null ) { String translatedName = buttonNamesLookUp . get ( barItem ) ; if ( CmsStringUtil . isNotEmpty ( translatedName ) ) { result = translatedName ; } } return result ; }
Returns the real button name matched with the look up map.<p>

If no value is found in the look up map, the button name is returned unchanged.<p>

@param barItem the button bar item name to look up
@param buttonNamesLookUp the look up map containing the button names and/or separator name to use
@return the translated button name