[LON-CAPA-cvs] cvs: loncom /homework lonsimpleproblemedit.pm

www lon-capa-cvs@mail.lon-capa.org
Sat, 08 Nov 2003 02:56:09 -0000


www		Fri Nov  7 21:56:09 2003 EDT

  Modified files:              
    /loncom/homework	lonsimpleproblemedit.pm 
  Log:
  i18n
  
  
Index: loncom/homework/lonsimpleproblemedit.pm
diff -u loncom/homework/lonsimpleproblemedit.pm:1.8 loncom/homework/lonsimpleproblemedit.pm:1.9
--- loncom/homework/lonsimpleproblemedit.pm:1.8	Tue Nov  4 14:18:16 2003
+++ loncom/homework/lonsimpleproblemedit.pm	Fri Nov  7 21:56:09 2003
@@ -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 questiontext {
     my $text=$qparms{$prefix.'questiontext'};
+    my $qt=&mt('Question Text');
     return (<<ENDQUESTION);
 <table bgcolor="#dddd22" cellspacing="4" cellpadding="2">
-<tr><td><b>Question Text</b><br />
+<tr><td><b>$qt</b><br />
 <textarea name="questiontext" cols="80" rows="8">$text</textarea>
 </td></tr>
 </table>
@@ -83,9 +84,10 @@
 
 sub hint {
     my $text=$qparms{$prefix.'hinttext'};
+    my $ht=&mt('Hint Text');
     return (<<ENDHINT);
 <table bgcolor="#accacc" cellspacing="4" cellpadding="2">
-<tr><td><b>Hint Text</b><br />
+<tr><td><b>$ht</b><br />
 <textarea name="hinttext" cols="80" rows="4">$text</textarea>
 </td></tr>
 </table>
@@ -118,11 +120,16 @@
     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 (<<ENDFOIL);
 <table bgcolor="#dd55ff" cellspacing="4" cellpadding="2">
-<tr><td colspan="2"><b>Foil</b></td></tr>
-<tr><td>Value: $selectvalue</td><td>Position: $selectposition</td></tr>
-<tr><td colspan="2">Text:<br />
+<tr><td colspan="2"><b>$lt{'foil'}</b></td></tr>
+<tr><td>$lt{'value'}: $selectvalue</td><td>$lt{'position'}: $selectposition</td></tr>
+<tr><td colspan="2">$lt{'text'}:<br />
 <textarea name="text$number" cols="80" rows="4">$text</textarea>
 </td></tr>
 </table>
@@ -213,7 +220,8 @@
         $qtype=$qparms{$prefix.'questiontype'};
         unless (defined($qtype)) { $qtype='radio'; }
         unless ($questiontypes{$qtype}) { $qtype='radio'; }
-        $r->print('<b>Question Type: '.&Apache::loncommon::select_form
+        $r->print('<b>'.&mt('Question Type').
+		  ': '.&Apache::loncommon::select_form
 	                               ($qtype,'questiontype',%questiontypes).
   '</b><br /><input type="submit" value="'.&mt('Store Changes').
   '" /><p>&nbsp;</p>');
@@ -246,7 +254,7 @@
 		$r->print(
 		  '<table bgcolor="#ffcc22" cellspacing="4" cellpadding="2">'.
 		  '<tr><td><input type="hidden" name="options" value="'.
-                  $options.'" />Add new option: '.
+                  $options.'" />'.&mt('Add new option').': '.
           '<input type="text" name="newopt" size="15" />'.
           &mt('Delete an option').': '.
           &Apache::loncommon::select_form('','delopt',('' => '',%optionshash)).