--- loncom/publisher/testbankimport.pm 2012/10/29 17:38:55 1.35 +++ loncom/publisher/testbankimport.pm 2013/04/11 14:59:58 1.38 @@ -1,5 +1,5 @@ # Handler for parsing text upload problem descriptions into .problems -# $Id: testbankimport.pm,v 1.35 2012/10/29 17:38:55 raeburn Exp $ +# $Id: testbankimport.pm,v 1.38 2013/04/11 14:59:58 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -444,7 +444,7 @@ function verify() { if ($numitems > 0) { my $maxnum = $numitems - 1; my %lt = &Apache::lonlocal::texthash( - fnmb => 'File names must be unique', + fnmb => 'Filenames must be unique', isum => 'is used more than once', ); $$jsref .= qq| @@ -489,7 +489,7 @@ sub display_zero { if ($fn eq '') { $r->print(''.&mt('Incomplete file upload').' '.&mt('Return to the [_1]construction space menu[_2] to upload a file','','')); } - $r->print(&mt('The Testbank Upload utility can be used by LON-CAPA authors to generate LON-CAPA problem files from a testbank file of questions/answers.').'
'. + $r->print(&mt('The [_1]Testbank Upload[_2] utility can be used by LON-CAPA authors to generate LON-CAPA problem files from a testbank file of questions/answers.','','').'
'. &mt('The following question types can be converted:').' '. &page_footer($env{'form.newdir'},$fn,$page).' @@ -681,7 +681,7 @@ sub display_three { my %lt = &Apache::lonlocal::texthash ( crt => 'Create?', typ => 'Type', - fnam => 'File Name', + fnam => 'Filename', ques => 'Question', answ => 'Answer', chka => 'check all', @@ -1578,6 +1578,7 @@ sub create_ess { if (open(PROB,">$destdir$libfile")) { print PROB $output; close(PROB); + $result = 'ok'; } else { $result = 'failed'; }