- String title;
- if (context.hasContentClass(LdapObj.organization))
- title = SuiteMsg.org.lead() + " " + context.attr(LdapAttr.cn) + " ("
- + hierarchyUnit.getHierarchyUnitLabel(CurrentUser.locale()) + ")";
- else
- title = SuiteMsg.group.lead() + " " + context.attr(LdapAttr.cn) + " ("
- + hierarchyUnit.getHierarchyUnitLabel(CurrentUser.locale()) + ")";
+ String title = (context.hasContentClass(LdapObj.organization) ? SuiteMsg.org.lead() : SuiteMsg.group.lead())
+ + " " + LdapAcrUtils.getLocalized(context, LdapAttr.cn.qName(), CurrentUser.locale()) + " ("
+ + hierarchyUnit.getHierarchyUnitLabel(CurrentUser.locale()) + ")";