--- loncom/interface/grouproster.pm 2006/08/17 23:36:05 1.4 +++ loncom/interface/grouproster.pm 2008/04/22 17:08:52 1.5 @@ -1,5 +1,7 @@ # The LearningOnline Network with CAPA # +# $Id +# # Copyright Michigan State University Board of Trustees # # This file is part of the LearningOnline Network with CAPA (LON-CAPA). @@ -65,14 +67,14 @@ sub handler { # Validating group input. my $badinput; if ((!defined($env{'form.group'})) || ($env{'form.group'} eq '')) { - $r->print(&mt('No group name provided.
')); + $r->print(&mt('No group name provided.').'
'); $badinput = 1; } else { $group = $env{'form.group'}; $group =~ s/\W//g; } if (!$badinput && $group eq '') { - $r->print(&mt('Invalid group name provided.
')); + $r->print(&mt('Invalid group name provided.').'
'); $badinput = 1; } @@ -80,7 +82,7 @@ sub handler { my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; if ($cdom eq '' || $cnum eq '') { - $r->print(&mt('Invalid [_1]
',$crstype)); + $r->print(&mt('Invalid [_1]',$crstype).'
'); $badinput = 1; } @@ -106,7 +108,7 @@ sub handler { my $editgrps = &Apache::lonnet::allowed('mdg',$env{'request.course.id'}); if ((!$can_view) && (!$view_details) && (!$viewgrps) && (!$editgrps)) { - $r->print(&mt('You do not have privileges to view the membership roster in this [_1]',$gpterm)); + $r->print(&mt('You do not have privileges to view the membership roster in this '.$gpterm.'.')); return OK; } my %content = &Apache::longroup::get_group_settings($curr_groups{$group}); @@ -165,7 +167,7 @@ function changeSort(caller) { {href=>'/adm/grouproster?group='.$group.'&'.$refarg, text=>"Membership roster", title=>"Display group membership"},); - $output .= &Apache::lonhtmlcommon::breadcrumbs(&mt('[_1] membership status - [_2]',$gpterm,$description)); + $output .= &Apache::lonhtmlcommon::breadcrumbs(&mt($gpterm.' membership status - [_1]',$description)); } return $output; } @@ -212,8 +214,7 @@ sub roster_table { if (($viewgrps) || ($editgrps) || (&Apache::lonnet::allowed('vmd',$env{'request.course.id'}.'/'.$group))) { if (keys(%{$memberinfo}) == 0) { - $r->print(&mt('There are no membership data to display for this [_1]', - $gpterm)); + $r->print(&mt('There are no membership data to display for this '.$gpterm.'.')); return; } $r->print('
'.&mt('Membership status: ').'