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

bisitz bisitz at source.lon-capa.org
Tue Feb 11 10:49:15 EST 2014


bisitz		Tue Feb 11 15:49:15 2014 EDT

  Modified files:              
    /loncom/interface	lonsource.pm 
  Log:
  Internationalization: Added missing &mt() calls
  
  
  
Index: loncom/interface/lonsource.pm
diff -u loncom/interface/lonsource.pm:1.31 loncom/interface/lonsource.pm:1.32
--- loncom/interface/lonsource.pm:1.31	Fri Jun  7 16:07:46 2013
+++ loncom/interface/lonsource.pm	Tue Feb 11 15:49:15 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Source Code handler
 #
-# $Id: lonsource.pm,v 1.31 2013/06/07 16:07:46 bisitz Exp $
+# $Id: lonsource.pm,v 1.32 2014/02/11 15:49:15 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -124,7 +124,7 @@
 
 sub confirm {
     my ($r, $newpath, $filename, $path_to_new_file) = @_;
-    $r->print("<b>Press delete to remove file and replace it with a copy of the source you are viewing</b><br /><br /	>");
+    $r->print('<b>'.&mt('Press delete to remove file and replace it with a copy of the source you are viewing.').'</b><br /><br />');
     $r->print('<form name="delete_confirm" action="/adm/source" target="_parent" method="post">
               <input type="hidden" name="filename" value="'.$filename.'" />
               <input type="hidden" name="path" value="'.$path_to_new_file.'" />
@@ -143,7 +143,7 @@
                  .'</span><br />'
                  .&mt('Please use the code view in previous window to use shared code.')
                  .'<br /><br />');
-        $r->print('<input type="button" value="Close Window" name="close"'
+        $r->print('<input type="button" value="'.&mt('Close Window').'" name="close"'
                  .' onclick="window.close()" />'
                  .'</p>');
     } else {
@@ -162,7 +162,7 @@
 
 sub copy_file {
     my ($r, $newpath, $filename, $path_to_new_file) = @_;
-    $r->print("<b>Creating directories</b>");
+    $r->print('<b>'.&mt('Creating directories').'</b>');
 
 #Figure out if we are author or co-author
     my ($role,$author_name,$domain)=&copy_author();
@@ -188,7 +188,7 @@
         } else { } #Just move along
 
     }
-    $r->print("<br /><b>Copying File</b>");
+    $r->print('<br /><b>'.&mt('Copying File').'</b>');
     my $problem_filename = $Apache::lonnet::perlvar{'lonDocRoot'}.$filename;
     my $file_output = &includemeta(&Apache::lonnet::getfile($problem_filename),$filename);
     my $fs=Apache::File->new(">$path_to_new_file");
@@ -196,7 +196,7 @@
         print $fs $file_output;
     }
     $r->print("<br /><br />");
-    $r->print('<input type="button" value="Close Window" name="close" onclick="window.close()" />');
+    $r->print('<input type="button" value="'.&mt('Close Window').'" name="close" onclick="window.close()" />');
     #Some 1.3'ish feature is to include the derivative feature, will go here..'
 }
 




More information about the LON-CAPA-cvs mailing list