[LON-CAPA-cvs] cvs: rat / lonratedt.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Fri, 12 Dec 2003 15:16:35 -0000


sakharuk		Fri Dec 12 10:16:35 2003 EDT

  Modified files:              
    /rat	lonratedt.pm 
  Log:
  Localization is finished. All entries are in ru.pm and probably translated.
  
  
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.48 rat/lonratedt.pm:1.49
--- rat/lonratedt.pm:1.48	Tue Oct 21 16:40:10 2003
+++ rat/lonratedt.pm	Fri Dec 12 10:16:35 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.48 2003/10/21 20:40:10 albertel Exp $
+# $Id: lonratedt.pm,v 1.49 2003/12/12 15:16:35 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -206,7 +206,7 @@
             $links[$number]=$content;
         }
         if ($command eq 'objparms') {
-	    return('Map has resource parameters. Use advanced editor.',1);
+	    return(&mt('Map has resource parameters. Use advanced editor.'),1);
         }
     }
 # ------------------------------------------------------- Is this a linear map?
@@ -220,13 +220,13 @@
 	    my ($start,$end,$cond)=split(/\:/,$_);
             if ((defined($starters[$start])) || (defined($endings[$end]))) { 
 		return
-                 ('Map has branchings. Use advanced editor.',1);
+                 (&mt('Map has branchings. Use advanced editor.'),1);
             }
 	    $starters[$start]=1;
 	    $endings[$end]=1;
 	    if ($cond) {
 		return
-                 ('Map has conditions. Use advanced editor.',1);
+                 (&mt('Map has conditions. Use advanced editor.'),1);
             }
 	}
 
@@ -235,7 +235,7 @@
         if (defined($resources[$i])) {
 	    unless (($starters[$i]) || ($endings[$i])) {
                 return
-		 ('Map has unconnected resources. Use advanced editor.',1);
+		 (&mt('Map has unconnected resources. Use advanced editor.'),1);
             }
         }
     }
@@ -414,12 +414,12 @@
     my $adv=shift;
     my $output='<form method=post>';     
     if ($adv==1) {
-	$output.='<input type=submit name=forceadv value="Edit">';
+	$output.='<input type=submit name=forceadv value="'.&mt('Edit').'">';
     } else {
         unless ($adv==2) {
-           $output.='<input type=submit name=forcesmp value="Simple Edit">';
+           $output.='<input type=submit name=forcesmp value="'.&mt('Simple Edit').'">';
         }
-	$output.='<input type=submit name=forceadv value="Advanced Edit">';
+	$output.='<input type=submit name=forceadv value="'.&mt('Advanced Edit').'">';
     }
     return $output.'</form><hr>';
 }
@@ -654,7 +654,7 @@
    }
    if (-e $tmpfn) {
       $targetmsg=
-        '<b><font color="red">You are working with an unsaved version of your map.</font></b><br>';
+        '<b><font color="red">'.&mt('You are working with an unsaved version of your map.').'</font></b><br>';
       my ($errtext,$fatal)=&mapread($tmpfn,'');
    }
 # ---------------------------------------------------------- Process form input
@@ -893,7 +893,7 @@
    $idx=0;
    $targetdetail='';
    my $targetwindow=       
-       '<option value="0"> ------- Target Edit Map ------- </option>'.
+       '<option value="0"> ------- '.&mt('Target Edit Map').' ------- </option>'.
      join("\n",map { 
        my ($name,$url)=split(/\:/,$resources[$_]);
        unless ($name) {  $name=(split(/\//,$url))[-1]; }
@@ -923,6 +923,10 @@
                                       'mu' => 'Move Up',
                                       'md' => 'Move Down',
                                       're' => 'Rename',
+                                      'as' => 'after selected',
+                                      'cs' => 'Cut selected',
+                                      'ps' => 'Copy selected',
+                                      'pas' => 'Paste after selected',
 				      );
    $r->print(<<ENDSMPHEAD);
 <html>
@@ -986,7 +990,7 @@
 <tr><td bgcolor="#FFFFCC">
 <input type=button onClick="javascript:groupsearch()" value="$lt{'se'}">
 <input type=button onClick="javascript:groupimport();" value="$lt{'im'}">
-after selected
+$lt{'as'}
 <hr>
 <input type=text size=20 name=importmap>
 <input type=button 
@@ -1002,7 +1006,7 @@
 "javascript:impfortarget.value=1;groupsearch()" value="$lt{'se'}">
 <input type=button onClick=
 "javascript:impfortarget.value=1;groupimport();" value="$lt{'im'}">
-after selected
+$lt{'as'}
 <hr>
 <input type=submit name="moveup" value="$lt{'mu'}">
 <input type=submit name="movedown" value="$lt{'md'}">
@@ -1018,13 +1022,13 @@
 </select>
 </td>
 <td bgcolor="#FFFFAA" align="center">
-Cut selected<br>
+$lt{'cs'}<br>
 <input type=submit name=cut value='<<<'><p>
 <hr>
-Copy selected<br>
+$lt{'ps'}<br>
 <input type=submit name=copy value='<--'><p>
 <hr>
-Paste after selected<br>
+$lt{'pas'}<br>
 <input type=submit name=paste value='-->'>
 </td>
 <td bgcolor="#FFFFCC"><select name="target" size=10 multiple>