[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Thu, 07 Aug 2008 10:19:27 -0000


bisitz		Thu Aug  7 06:19:27 2008 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - Added two missing &mt() calls to error messages
  - tth - same wording everywhere
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.482 loncom/xml/lonxml.pm:1.483
--- loncom/xml/lonxml.pm:1.482	Fri Aug  1 12:31:26 2008
+++ loncom/xml/lonxml.pm	Thu Aug  7 06:19:26 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.482 2008/08/01 16:31:26 bisitz Exp $
+# $Id: lonxml.pm,v 1.483 2008/08/07 10:19:26 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -486,10 +486,10 @@
 	    while ($token->[1] ne $$stack['-1'] && ($#$stack > -1)) {
 		my $lasttag=$$stack[-1];
 		if ($token->[1] =~ /^\Q$lasttag\E$/i) {
-		    &Apache::lonxml::warning('Using tag </'.$token->[1].'> on line '.$token->[3].' as end tag to <'.$$stack[-1].'>');
+		    &Apache::lonxml::warning(&mt('Using tag [_1] on line [_2] as end tag to [_3]','</'.$token->[1].'>','.$token->[3].','<'.$$stack[-1].'>'));
 		    last;
 		} else {
-		    &Apache::lonxml::warning('Found tag </'.$token->[1].'> on line '.$token->[3].' when looking for </'.$$stack[-1].'> in file');
+                    &Apache::lonxml::warning(&mt('Found tag [_1] on line [_2] when looking for [_3] in file.','</'.$token->[1].'>',$token->[3],'</'.$$stack[-1].'>'));
 		    &end_tag($stack,$parstack,$token);
 		}
 	    }
@@ -1519,7 +1519,7 @@
        &mt('Math Rendering:').' '.
        &Apache::loncommon::select_form($env{'form.texengine'},'texengine',
                                                      ('' => '',
-                                                      'tth' => 'tth (Tex-to-HTML)',
+                                                      'tth' => 'tth (TeX to HTML)',
                                                       'jsMath' => 'jsMath',
                                                       'mimetex' => 'mimetex (Convert to Images)')).'
      </span>';