--- loncom/homework/lonsimpleproblemedit.pm 2003/11/04 19:18:16 1.8 +++ loncom/homework/lonsimpleproblemedit.pm 2003/11/08 02:56:09 1.9 @@ -1,7 +1,7 @@ # The LearningOnline Network # Simple Problem Parameter Setting "Editor" # -# $Id: lonsimpleproblemedit.pm,v 1.8 2003/11/04 19:18:16 www Exp $ +# $Id: lonsimpleproblemedit.pm,v 1.9 2003/11/08 02:56:09 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -71,9 +71,10 @@ sub rawrendering { sub questiontext { my $text=$qparms{$prefix.'questiontext'}; + my $qt=&mt('Question Text'); return (< -Question Text
+$qt
@@ -83,9 +84,10 @@ ENDQUESTION sub hint { my $text=$qparms{$prefix.'hinttext'}; + my $ht=&mt('Hint Text'); return (< -Hint Text
+$ht
@@ -118,11 +120,16 @@ sub foil { my $selectposition=&Apache::loncommon::select_form ($position,'position'.$number,%positions); my $text=$qparms{$prefix.'text'.$number}; + my %lt=&Apache::lonlocal::texthash('foil' => 'Foil', + 'value' => 'Value', + 'pos' => 'Position', + 'text' => 'Text'); + return (< -Foil -Value: $selectvaluePosition: $selectposition -Text:
+$lt{'foil'} +$lt{'value'}: $selectvalue$lt{'position'}: $selectposition +$lt{'text'}:
@@ -213,7 +220,8 @@ ENDDOCUMENT $qtype=$qparms{$prefix.'questiontype'}; unless (defined($qtype)) { $qtype='radio'; } unless ($questiontypes{$qtype}) { $qtype='radio'; } - $r->print('Question Type: '.&Apache::loncommon::select_form + $r->print(''.&mt('Question Type'). + ': '.&Apache::loncommon::select_form ($qtype,'questiontype',%questiontypes). '

 

'); @@ -246,7 +254,7 @@ ENDDOCUMENT $r->print( ''. '
Add new option: '. + $options.'" />'.&mt('Add new option').': '. ''. &mt('Delete an option').': '. &Apache::loncommon::select_form('','delopt',('' => '',%optionshash)).