--- loncom/interface/lonstatistics.pm 2012/03/20 16:03:54 1.155 +++ loncom/interface/lonstatistics.pm 2014/02/26 01:18:49 1.160 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.155 2012/03/20 16:03:54 bisitz Exp $ +# $Id: lonstatistics.pm,v 1.160 2014/02/26 01:18:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -511,7 +511,7 @@ sub map_select { if ($selected_maps[0] eq 'all') { $form .= ' selected="selected"'; } - $form .= ">all\n"; + $form .= '>'.&mt('all').''."\n"; # # Loop through the sequences my @sequences = &selected_sequences_with_assessments('all'); @@ -615,7 +615,7 @@ sub DisplayClasslist { # Output some of the standard interface components my $Str; $Str .= &Apache::lonhtmlcommon::breadcrumbs('Select One Student'); - $Str .= '

'."\n"; + $Str .= '
'."\n"; $Str .= ''; $Str .= ''; $Str .= ''; @@ -633,7 +633,7 @@ sub DisplayClasslist { ''; $Str .= ''.$/; - $Str .= '
'.&mt('Sections').''.&mt('Groups').'

'; + $Str .= ''; $Str .= ''; $r->print($Str); @@ -691,13 +691,13 @@ sub DisplayClasslist { } $Str .= '

'.&mt('Select One Student').'

' - .'

'.&mt("Click on a student's name or username to view their chart").'

' + .'

'.&mt("Click on a student's name or username to view their chart.").'

' .&Apache::loncommon::start_data_table() .&Apache::loncommon::start_data_table_header_row(); foreach my $field (@Fields) { $Str .= ''.&mt($field). ''; } @@ -712,15 +712,19 @@ sub DisplayClasslist { if ($field eq 'fullname' || $field eq 'username') { $Str .= ''; - $Str .= $student->{$field}.' '; + $Str .= $student->{$field}; $Str .= ''; } elsif ($field eq 'status') { $Str .= &mt($student->{$field}); } else { - $Str .= $student->{$field}; + if ($student->{$field} eq 'none') { + $Str .= &mt('none') + } else { + $Str .= $student->{$field}; + } } $Str .= ''; } @@ -846,9 +850,9 @@ ENDSTYLE # if (! &Apache::lonmysql::verify_sql_connection()) { my $serveradmin = $r->dir_config('lonAdmEMail'); - $r->print('

'. + $r->print('

'. &mt('Unable to connect to database!'). - '

'); + '

'); $r->print('

' .&mt('Please notify the server administrator [_1]', ,''.$serveradmin.'')