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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 20 Nov 2006 17:45:12 -0000


albertel		Mon Nov 20 12:45:12 2006 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - change to translate the whole phrase not the fragment
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.253 loncom/interface/londocs.pm:1.254
--- loncom/interface/londocs.pm:1.253	Wed Nov 15 09:33:46 2006
+++ loncom/interface/londocs.pm	Mon Nov 20 12:45:11 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.253 2006/11/15 14:33:46 www Exp $
+# $Id: londocs.pm,v 1.254 2006/11/20 17:45:11 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1062,32 +1062,32 @@
     my ($r)=@_;
     $r->print(&Apache::loncommon::start_page('Course Document Change Log'));
     $r->print(&Apache::lonhtmlcommon::breadcrumbs('Course Document Change Log'));
-                                                                                                                            
+
     my %docslog=&Apache::lonnet::dump('nohist_docslog',
                                       $env{'course.'.$env{'request.course.id'}.'.domain'},
                                       $env{'course.'.$env{'request.course.id'}.'.num'});
-                                                                                                                            
+
     if ((keys(%docslog))[0]=~/^error\:/) { undef(%docslog); }
-                                                                                                                            
+
     $r->print('<form action="/adm/coursedocs" method="post" name="docslog">'.
               '<input type="hidden" name="docslog" value="1" />');
-                                                                                                                            
+
     my %saveable_parameters = ('show' => 'scalar',);
     &Apache::loncommon::store_course_settings('docs_log',
                                               \%saveable_parameters);
     &Apache::loncommon::restore_course_settings('docs_log',
                                                 \%saveable_parameters);
     if (!$env{'form.show'}) { $env{'form.show'}=10; }
-    my %lt=&Apache::lonlocal::texthash('hiddenresource' => 'Resources hidden',
-                                       'encrypturl' => 'URL hidden',
-                                       'randompick' => 'Randomly pick',
-                                       'set' => 'set to',
-                                       'del' => 'deleted');
-                                                                                                                     
+    my %lt=('hiddenresource' => 'Resources hidden',
+	    'encrypturl'     => 'URL hidden',
+	    'randompick'     => 'Randomly pick',
+	    'set'            => 'set to',
+	    'del'            => 'deleted');
+
     my $countselect =
         &Apache::lonmeta::selectbox('show',$env{'form.show'},undef,
                                     (&mt('all'),10,20,50,100,1000,10000));
-                                                                                                                            
+
     $r->print('<nobr>'.&mt('[_1] Records',$countselect).'</nobr>'.
               '<input type="submit" value="'.&mt('Display').'" /></form>');
     $r->print(&Apache::loncommon::start_data_table().&Apache::loncommon::start_data_table_header_row().
@@ -1158,8 +1158,10 @@
 	    $r->print(&LONCAPA::map::qtescape((split(/\:/,$docslog{$id}{'logentry'}{'parameter_res'}))[0]).':<ul>');
 	    foreach my $parameter ('randompick','hiddenresource','encrypturl') {
 		if ($docslog{$id}{'logentry'}{'parameter_action_'.$parameter}) {
-		    $r->print('<li>'.$lt{$parameter}.' '.$lt{$docslog{$id}{'logentry'}{'parameter_action_'.$parameter}}.' '.
-			      $docslog{$id}{'logentry'}{'parameter_value_'.$parameter}.'</li>');
+		    $r->print('<li>'.
+			      &mt($lt{$parameter}.' '.$lt{$docslog{$id}{'logentry'}{'parameter_action_'.$parameter}}.' [_1]',
+				  $docslog{$id}{'logentry'}{'parameter_value_'.$parameter})
+			      .'</li>');
 		}
 	    }
 	    $r->print('</ul>');