[LON-CAPA-cvs] cvs: loncom /homework edit.pm

bisitz bisitz at source.lon-capa.org
Tue Dec 3 12:47:30 EST 2013


bisitz		Tue Dec  3 17:47:30 2013 EDT

  Modified files:              
    /loncom/homework	edit.pm 
  Log:
  Internationalization of colorful editor - added missing &mt() call to translate all items in all insert lists
  
  
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.150 loncom/homework/edit.pm:1.151
--- loncom/homework/edit.pm:1.150	Tue Dec  3 17:22:08 2013
+++ loncom/homework/edit.pm	Tue Dec  3 17:47:30 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.150 2013/12/03 17:22:08 bisitz Exp $
+# $Id: edit.pm,v 1.151 2013/12/03 17:47:30 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -296,7 +296,7 @@
 	    my $descrip=$Apache::lonxml::insertlist{"$tag.description"};
 	    my $tagnum =$Apache::lonxml::insertlist{"$tag.num"};
 	    $options{$descrip} ="<option value=\"$tagnum\">".
-		$descrip."</option>\n";
+		&mt($descrip)."</option>\n";
 	}
 	foreach my $option (sort(keys(%options))) {$result.=$options{$option};}
 	if ($result) { $result='<option selected="selected"></option>'.$result; }




More information about the LON-CAPA-cvs mailing list