Skip to content

Commit

Permalink
Changes to localise strings in creating groups (Site Info tool) SAK-3…
Browse files Browse the repository at this point in the history
  • Loading branch information
mateullas authored and steveswinsburg committed May 30, 2016
1 parent 390ba17 commit 3b7ff1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ group.number = Size (Max)
group.newgroup = Create New Group
group.editgroup = Edit Group
group.nogroup = There are no groups defined.
group.role_prefix = Role:
group.section_prefix = Section:
editgroup.instruction = Select members of the site member list and add to group. Select members of group list and remove. Click {0} to save changes.
editgroup.membership = Membership
editgroup.remove = Remove?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ public class GroupEditProducer implements ViewComponentProducer, ActionResultInt
/** Our log (commons). */
private static final Logger M_log = LoggerFactory.getLogger(GroupEditProducer.class);

private static final String SECTION_PREFIX = "Section: ";
private static final String ROLE_PREFIX = "Role: ";

public SiteManageGroupSectionRoleHandler handler;
public static final String VIEW_ID = "GroupEdit";
public MessageLocator messageLocator;
Expand Down Expand Up @@ -238,7 +235,7 @@ public void fillComponents(UIContainer arg0, ViewParameters arg1, ComponentCheck
// not include in the group yet
if ((groupProviderId == null || !groupProviderId.contains(roster)) && !membersSelected.contains( roster ))
{
siteMemberLabels.add( SECTION_PREFIX + handler.getRosterLabel(roster) + " (" + roster + ")");
siteMemberLabels.add( messageLocator.getMessage("group.section_prefix") + handler.getRosterLabel(roster) + " (" + roster + ")");
siteMemberValues.add( roster );
}
}
Expand All @@ -248,7 +245,7 @@ public void fillComponents(UIContainer arg0, ViewParameters arg1, ComponentCheck
// not include in the group yet
if ((groupRoleProviderRoles == null || !groupRoleProviderRoles.contains(role.getId())) && !membersSelected.contains( role.getId() ))
{
siteMemberLabels.add( ROLE_PREFIX + role.getId() );
siteMemberLabels.add( messageLocator.getMessage("group.role_prefix") + role.getId() );
siteMemberValues.add( role.getId() );
}
}
Expand Down Expand Up @@ -302,7 +299,7 @@ public void fillComponents(UIContainer arg0, ViewParameters arg1, ComponentCheck
{
for (String groupRoster:groupRosters)
{
groupMemberLabels.add( SECTION_PREFIX + handler.getRosterLabel(groupRoster) + " (" + groupRoster + ")" );
groupMemberLabels.add( messageLocator.getMessage("group.section_prefix") + handler.getRosterLabel(groupRoster) + " (" + groupRoster + ")" );
groupMemberValues.add( groupRoster );
}
}
Expand All @@ -311,7 +308,7 @@ public void fillComponents(UIContainer arg0, ViewParameters arg1, ComponentCheck
{
for (String groupProviderRole:groupProviderRoles)
{
groupMemberLabels.add( ROLE_PREFIX + groupProviderRole );
groupMemberLabels.add( messageLocator.getMessage("group.role_prefix") + groupProviderRole );
groupMemberValues.add( groupProviderRole );
}
}
Expand Down Expand Up @@ -345,14 +342,14 @@ public void fillComponents(UIContainer arg0, ViewParameters arg1, ComponentCheck
// Selected roster...
if( siteRosters.contains( memberID ) )
{
groupMemberLabels.add( SECTION_PREFIX + handler.getRosterLabel(memberID) + " (" + memberID + ")" );
groupMemberLabels.add( messageLocator.getMessage("group.section_prefix") + handler.getRosterLabel(memberID) + " (" + memberID + ")" );
groupMemberValues.add( memberID );
}

// Selected role...
else if( siteRoleIDs.contains( memberID ) )
{
groupMemberLabels.add( ROLE_PREFIX + memberID );
groupMemberLabels.add( messageLocator.getMessage("group.role_prefix") + memberID );
groupMemberValues.add( memberID );
}

Expand Down

0 comments on commit 3b7ff1c

Please sign in to comment.