hhuijser/liferay-portal — pull request #1933 by Preston-Crary (2014-06-04 22:29:09+00:00)
Title: LPS-47157

Hey Hugo,
I wanted to put this repeated logic somewhere that we could reuse it but didn't know where it would be best to do so:

((userGroupRoles.size() < userGroupRolesCount) ? StringPool.SPACE + LanguageUtil.format(pageContext, "and-x-more", String.valueOf(userGroupRolesCount - userGroupRoles.size()), false) : StringPool.BLANK)

I considered ListUtil but it seemed out of place since this logic is for displaying a message and LanguageUtil but that is solely for localization. Do you or @JorgeFerrer know a better place for this?