[LON-CAPA-cvs] cvs: loncom /localize/localize newphrases.txt /xml lontexconvert.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 04 Mar 2004 15:46:43 -0000


albertel		Thu Mar  4 10:46:43 2004 EDT

  Modified files:              
    /loncom/xml	lontexconvert.pm 
    /loncom/localize/localize	newphrases.txt 
  Log:
  -localizing the tex conversion
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.32 loncom/xml/lontexconvert.pm:1.33
--- loncom/xml/lontexconvert.pm:1.32	Thu Mar  4 10:41:18 2004
+++ loncom/xml/lontexconvert.pm	Thu Mar  4 10:46:43 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.32 2004/03/04 15:41:18 albertel Exp $
+# $Id: lontexconvert.pm,v 1.33 2004/03/04 15:46:43 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -42,12 +42,13 @@
 package Apache::lontexconvert;
 
 use strict;
-use tth;
+use tth();
 use vars qw($errorstring);
 use Apache();
-use Apache::lonmsg;
-use Apache::lonxml;
-use Apache::lonmenu;
+use Apache::lonmsg();
+use Apache::lonxml();
+use Apache::lonmenu();
+use Apache::lonlocal;
 
 # ====================================================================== Header
 
@@ -86,9 +87,9 @@
 $Apache::lontexconvert::messedup=0;
 sub converted {
     my $texstring=shift;
-    my $xmlstring='[UNDISPLAYABLE]';
+    my $xmlstring=&mt('[UNDISPLAYABLE]');
     if ($Apache::lontexconvert::messedup) {
-	return '[TeX Unconverted Due To Previous Errors]';
+	return &mt('[TeX Unconverted Due To Previous Errors]');
     }
     eval(<<'ENDCONV');
     {
@@ -109,7 +110,7 @@
     }
 ENDCONV
     if ($@) {
-	$errorstring.="Evaluation Error $@";
+	$errorstring.=&mt("Evaluation Error ").$@;
 	$Apache::lontexconvert::messedup=1;
     }
     if ($Apache::lontexconvert::messedup || &tth::tthmessedup()) {
Index: loncom/localize/localize/newphrases.txt
diff -u loncom/localize/localize/newphrases.txt:1.39 loncom/localize/localize/newphrases.txt:1.40
--- loncom/localize/localize/newphrases.txt:1.39	Fri Feb 27 13:16:54 2004
+++ loncom/localize/localize/newphrases.txt	Thu Mar  4 10:46:43 2004
@@ -63,4 +63,7 @@
 <*response>s are both inside of <part> and outside of <part>, this is not a valid problem, errors in grading may occur.
 Please click Back on your browser and select another user, or 
 Create User
-Return to DOCS
\ No newline at end of file
+Return to DOCS
+[UNDISPLAYABLE]
+[TeX Unconverted Due To Previous Errors]
+Evaluation Error