[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 04 Dec 2003 20:06:29 -0000


sakharuk		Thu Dec  4 15:06:29 2003 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  Some localization is done.
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.139 loncom/interface/lonparmset.pm:1.140
--- loncom/interface/lonparmset.pm:1.139	Fri Nov 21 14:54:42 2003
+++ loncom/interface/lonparmset.pm	Thu Dec  4 15:06:29 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.139 2003/11/21 19:54:42 albertel Exp $
+# $Id: lonparmset.pm,v 1.140 2003/12/04 20:06:29 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1099,9 +1099,9 @@
                                   'rl'     => "Resource Level",
 				  'ic'     => 'in Course',
 				  'aut'    => "Assessment URL and Title",
-				  'type'   => 'Type',
+				  'type'   => &mt('Type'),
 				  'emof'   => "Enclosing Map or Folder",
-				  'part'   => 'Part',
+				  'part'   => &mt('Part'),
                                   'pn'     => 'Parameter Name',
 				  'def'    => 'default',
 				  'femof'  => 'from Enclosing Map or Folder',
@@ -1507,26 +1507,29 @@
 # -------------------------------------------------------- Get parameters again
 
     my %values=&Apache::lonnet::dump('environment',$dom,$crs);
+    my $SelectStyleFile=&mt('Select Style File');
     my $output='';
     if (! exists($values{'con_lost'})) {
         my %descriptions=
-	    ('url'            => '<b>Top Level Map</b> '.
+	    ('url'            => '<b>'.&mt('Top Level Map').'</b> '.
                                  '<a href="javascript:openbrowser'.
                                  "('envform','url','sequence')\">".
-                                 'Select Map</a><br /><font color=red> '.
-                                 'Modification may make assessment data '.
-                                 'inaccessible</font>',
-             'description'    => '<b>Course Description</b>',
-             'courseid'       => '<b>Course ID or number</b><br />'.
-                                 '(internal, optional)',
-             'grading'        => '<b>Grading</b>'.
-                                 '"standard", "external", or any other value.'.
-                                 '  Default for new courses is "standard".',
-
-             'default_xml_style' => '<b>Default XML Style File</b> '.
+                                 &mt('Select Map').'</a><br /><font color=red> '.
+                                 &mt('Modification may make assessment data inaccessible').
+                                 '</font>',
+             'description'    => '<b>'.&mt('Course Description').'</b>',
+             'courseid'       => '<b>'.&mt('Course ID').' '.&mt('or').' '.&mt('number').
+                                 '</b><br />'.
+                                 '('.&mt('internal').', '.&mt('optional').')',
+             'grading'        => '<b>'.&mt('Grading').'</b>'.
+                                 ' "'.&mt('standard').'", "'.&mt('external').'", '.
+                                 &mt('or any other value').'.'.
+                                 '  '.&mt('Default for new courses is').' "'.
+                                 &mt('standard').'".',
+             'default_xml_style' => '<b>'.&mt('Default XML Style File').'</b> '.
                     '<a href="javascript:openbrowser'.
                     "('envform','default_xml_style'".
-                    ",'sty')\">Select Style File</a><br>",
+                    ",'sty')\">$SelectStyleFile</a><br>",
              'question.email' => '<b>Feedback Addresses for Resource Content '.
                                  'Questions</b><br />(<tt>user:domain,'.
                                  'user:domain(section;section;...;*;...),...</tt>)',
@@ -1578,9 +1581,9 @@
 	         => '<b>Allow limited HTML in discussion posts</b><br />'.
 	            '(Set value to "<tt>yes</tt>" to allow)',
 	     'rndseed'
-	         => '<b>Randomization algorithm used</b> <br />'.
-                    '<font color="red">Modifying this will make problems '.
-                    'have different numbers and answers</font>',
+	         => '<b>'.&mt('Randomization algorithm used').'</b> <br />'.
+                    '<font color="red">'.&mt('Modifying this will make problems').' '.
+                    &mt('have different numbers and answers').'</font>',
              'problem_stream_switch'
                  => '<b>Allow problems to be split over pages</b><br />'.
                     ' ("<tt>yes</tt>" if allowed, anything else if not)',
@@ -1591,7 +1594,7 @@
                                                 'when enrolling students</b>',
              'default_enrollment_end_date'   => '<b>Default ending date '.
                                                 'when enrolling students</b>',
-             'languages' => '<b>Languages used</b>',
+             'languages' => '<b>'.&mt('Languages used').'</b>',
              'disable_receipt_display'
                  => '<b>Disable display of problem receipts</b><br />'.
                     ' ("<tt>yes</tt>" to disable, anything else if not)'
@@ -1654,6 +1657,8 @@
                 $onchange.' /></td><td>'.
 	    '<input type="checkbox" name="newp_setparmval" /></td></tr>';
     }
+    my $Parameter=&mt('Parameter');
+    my $Value=&mt('Value');
     $r->print(<<ENDENV);
 <html>
 <script type="text/javascript" language="Javascript" >
@@ -1688,7 +1693,7 @@
 $setoutput
 <p>
 <table border=2>
-<tr><th>Parameter</th><th>Value</th><th>Set?</th></tr>
+<tr><th>$Parameter</th><th>$Value</th><th>Set?</th></tr>
 $output
 </table>
 <input type="submit" name="crsenv" value="Set Course Environment">