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

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 08 Dec 2003 21:01:03 -0000


sakharuk		Mon Dec  8 16:01:03 2003 EDT

  Modified files:              
    /loncom/interface	londropadd.pm 
  Log:
  Some localization is added.
  
  
Index: loncom/interface/londropadd.pm
diff -u loncom/interface/londropadd.pm:1.91 loncom/interface/londropadd.pm:1.92
--- loncom/interface/londropadd.pm:1.91	Fri Dec  5 16:27:59 2003
+++ loncom/interface/londropadd.pm	Mon Dec  8 16:01:03 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to drop and add students in courses 
 #
-# $Id: londropadd.pm,v 1.91 2003/12/05 21:27:59 raeburn Exp $
+# $Id: londropadd.pm,v 1.92 2003/12/08 21:01:03 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -976,7 +976,7 @@
 # ========================================================= Menu Phase Two Drop
 sub print_drop_menu {
     my $r=shift;
-    $r->print("<h3>Drop Students</h3>");
+    $r->print("<h3>".&mt('Drop Students')."</h3>");
     my $cid=$ENV{'request.course.id'};
     my ($classlist,$keylist) = &Apache::loncoursedata::get_classlist();
     if (! defined($classlist)) {
@@ -1095,7 +1095,7 @@
             $r->print('"'.join('","',("username","domain","ID","student name",
                                       "section","status")).'"'."\n");
         } else {
-            $r->print('"'.join('","',("username","domain","ID","student name",
+            $r->print('"'.join('","',(&mt("username"),"domain","ID","student name",
                                       "section")).'"'."\n");
         }
     } elsif ($mode eq 'excel') {
@@ -1514,7 +1514,7 @@
 <tr>
     <th>&nbsp;</th>
     <th>username</th>
-    <th>domain</th>
+    <th>domaind</th>
     <th>ID</th>
     <th>student name</th>
     <th>section</th>
@@ -1522,19 +1522,23 @@
 END
 
     } else  {
+        my $wordusername=&mt('username');
+        my $worddomain=&mt('domain');
+        my $wordstudentname=&mt('student name');
+        my $wordsection=&mt('section');
         $r->print(<<END);
 <table border=2>
 <tr><th>&nbsp;</th>
     <th>
-       <a href="/adm/dropadd?action=$action&sortby=username">username</a>
+       <a href="/adm/dropadd?action=$action&sortby=username">$wordusername</a>
     </th><th>
-       <a href="/adm/dropadd?action=$action&sortby=domain">domain</a>
+       <a href="/adm/dropadd?action=$action&sortby=domain">$worddomain</a>
     </th><th>
        <a href="/adm/dropadd?action=$action&sortby=id">ID</a>
     </th><th>
-       <a href="/adm/dropadd?action=$action&sortby=fullname">student name</a>
+       <a href="/adm/dropadd?action=$action&sortby=fullname">$wordstudentname</a>
     </th><th>
-       <a href="/adm/dropadd?action=$action&sortby=section">section</a>
+       <a href="/adm/dropadd?action=$action&sortby=section">$wordsection</a>
     </th>
 </tr>
 END
@@ -1578,11 +1582,14 @@
 END
     }
     $r->print('</table><br>');
+    my $DropStudents=&mt('Drop Students');
+    my $CheckAll=&mt('check all');
+    my $UncheckAll=&mt('uncheck all');
     $r->print(<<"END");
 </p><p>
-<input type="button" value="check all" onclick="javascript:checkAll(document.studentform.droplist)"> &nbsp;
-<input type="button" value="uncheck all" onclick="javascript:uncheckAll(document.studentform.droplist)"> 
-<p><input type=submit value="Drop Students"></p>
+<input type="button" value="$CheckAll" onclick="javascript:checkAll(document.studentform.droplist)"> &nbsp;
+<input type="button" value="$UncheckAll" onclick="javascript:uncheckAll(document.studentform.droplist)"> 
+<p><input type=submit value="$DropStudents"></p>
 END
     return;
 }
@@ -1604,10 +1611,10 @@
     $str .= '<input type="checkbox" name="noFirstLine" /> '.
         &mt('Ignore First Line')."</p>\n";
     $str .= &Apache::loncommon::help_open_topic("Course_Create_Class_List",
-                         "How do I create a class list from a spreadsheet").
+                         &mt("How do I create a class list from a spreadsheet")).
                              "<br />\n";
     $str .= &Apache::loncommon::help_open_topic("Course_Convert_To_CSV",
-                           "How do I create a CSV file from a spreadsheet").
+                           &mt("How do I create a CSV file from a spreadsheet")).
                                "<br />\n";
     $str .= "</body>\n</html>\n";
     $r->print($str);