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

bisitz bisitz at source.lon-capa.org
Tue Aug 20 10:37:33 EDT 2013


bisitz		Tue Aug 20 14:37:33 2013 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  Correct and improve error message:
  - Internationalization: Do not translate already translated phrase.
  - Style/Output: Error style not needed here - message will be wrapped in error style in sub routine
  
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.338 loncom/homework/lonhomework.pm:1.339
--- loncom/homework/lonhomework.pm:1.338	Tue Jun  4 22:20:24 2013
+++ loncom/homework/lonhomework.pm	Tue Aug 20 14:37:33 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.338 2013/06/04 22:20:24 raeburn Exp $
+# $Id: lonhomework.pm,v 1.339 2013/08/20 14:37:33 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1065,13 +1065,11 @@
 	    $problem='';
 	    my $filename=(split('/',$file))[-1];
 	    my $error =
-		'<p class="LC_error">'
-               .&mt('Unable to find [_1]',
-			   '<span class="LC_filename">'.$filename.'</span>')
-		."</p>";
+                &mt('Unable to find [_1]',
+			   '<span class="LC_filename">'.$filename.'</span>');
 	    $result.=
 		&Apache::loncommon::simple_error_page($request,'Not available',
-						      $error);
+						      $error,{'no_auto_mt_msg'});
 	    return;
 	}
 




More information about the LON-CAPA-cvs mailing list