--- loncom/homework/bridgetask.pm 2007/08/09 00:59:16 1.237 +++ loncom/homework/bridgetask.pm 2008/09/11 14:47:17 1.240 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.237 2007/08/09 00:59:16 albertel Exp $ +# $Id: bridgetask.pm,v 1.240 2008/09/11 14:47:17 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -252,10 +252,10 @@ sub add_grading_button { my ($entries,$ready,$locks)=&get_queue_counts('gradingqueue'); $result.="\n\t".'
Specify a section: | '. + $result.="\n\t\t\t".''.&mt('Specify a section:').' | '. "\n\t\t\t".''.$sec_select."\n\t\t\t".' | '; } else { - $result.="\n\t\t\t".'Grading section: | '. + $result.="\n\t\t\t".''.&mt('Grading section:').' | '. "\n\t\t\t".''.$env{'request.course.sec'}."\n\t\t\t".' | '; } $result.="\n\t\t\t".''.' Will be next available: $description
-STUFF
+ $result.=' ' + .&mt('Will be next available:') + .' '.$description + .' '; } if ($env{'request.enc'}) { $symb=&Apache::lonenc::encrypted($symb); } @@ -322,7 +323,7 @@ STUFF ''."\n\t\t". ''."\n\t\t". ''."\n\t". + $text.'" />'."\n\t". ''."\n"; return $result; } @@ -540,17 +541,19 @@ sub done_screen { foreach my $file (@files) { my $url="/uploaded/$domain/$user/portfolio$file"; if (! &Apache::lonnet::stat_file($url)) { - $file = &mt(' Nonexistent file: '. - '[_1]',$file); - $msg .= "Submitted non-existant file $file \n"; + $file = '' + .&mt('[_1]Nonexistent file:[_2]' + ,' ' + ,' '.$file.''); + $msg .= "".&mt('Submitted non-existant file [_1]',$file)." \n"; } else { $file = ''.$file.''; - $msg .= "Submitted file $file \n"; + $msg .= "".&mt('Submitted file [_1]',$file)." \n"; } $files .= ''.&mt('Message sent to instructor: [_1]', $comment_status).' '; } - return <Files submitted: $files -You are now done with this Bridge Task -- - -$message_status -$comment_status -DONESCREEN + return " $title" + .''.&mt('Files submitted: [_1]',$files).' ' + .''.&mt('You are now done with this Bridge Task').' ' + .'' + .'' +.'' +.$message_status +.$comment_status } @@ -630,7 +631,7 @@ sub start_Task { my $target_id = &Apache::lonstathelpers::make_target_id({symb => $symb, part => '0'}); - if (§ion_restricted()) { + if (!§ion_restricted()) { $result.=' |