--- loncom/interface/slotrequest.pm 2013/05/21 18:54:15 1.118 +++ loncom/interface/slotrequest.pm 2014/09/12 15:22:58 1.121 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for requesting to have slots added to a students record # -# $Id: slotrequest.pm,v 1.118 2013/05/21 18:54:15 raeburn Exp $ +# $Id: slotrequest.pm,v 1.121 2014/09/12 15:22:58 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -696,7 +696,7 @@ STUFF } my %lt = &Apache::lonlocal::texthash( - 'request' => 'Availibility list', + 'request' => 'Availability list', 'try' => 'Try again?', 'or' => 'or', ); @@ -847,13 +847,13 @@ sub show_choices { if (ref($consumed_uniqueperiods) eq 'HASH') { if (&Apache::lonnet::error(%$consumed_uniqueperiods)) { $r->print(''. - &mt('An error occurred determining slot availability'). + &mt('An error occurred determining slot availability.'). ''); return; } } elsif ($consumed_uniqueperiods =~ /^error: /) { $r->print(''. - &mt('An error occurred determining slot availability'). + &mt('An error occurred determining slot availability.'). ''); return; } @@ -862,7 +862,7 @@ sub show_choices { my @got_slots=&check_for_reservation($symb,'allslots'); if ($got_slots[0] =~ /^error: /) { $r->print(''. - &mt('An error occurred determining slot availability'). + &mt('An error occurred determining slot availability.'). ''); return; } @@ -877,12 +877,11 @@ sub show_choices { push(@available,$slot); } if (!@available) { - $output = '
'.&mt('No available times.'); + $output = ''.&mt('No available times.').''; if ($env{'form.command'} ne 'manageresv') { $output .= ' '. &mt('Return to last resource').''; } - $output .= '
'; $r->print($output); return; } @@ -958,6 +957,7 @@ STUFF $output .= &Apache::loncommon::end_data_table(); } $r->print($output); + return; } sub to_show { @@ -1211,11 +1211,11 @@ sub show_table { - - + + - +
Deleted slots:'.&mt('Deleted slots:').'
@@ -2298,7 +2298,7 @@ ENDPICK } sub csvupload_javascript_reverse_associate { - my $error1=&mt('You need to specify the name, starttime, endtime and a type'); + my $error1=&mt('You need to specify the name, start time, end time and a type.'); return(<print('
'); &show_choices($r,$symb); + $r->print('
'); } elsif ($env{'form.command'} eq 'release') { &release_slot($r,$symb); } elsif ($env{'form.command'} eq 'get') {