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

bisitz bisitz@source.lon-capa.org
Wed, 04 Mar 2009 17:57:15 -0000


bisitz		Wed Mar  4 17:57:15 2009 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
    /loncom/localize/localize	de.pm zh.pm 
  Log:
  Localization:
  Optimized &mt() usage for error message and standard style for filename
  (re-use existing translation phrase)
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.304 loncom/homework/lonhomework.pm:1.305
--- loncom/homework/lonhomework.pm:1.304	Wed Mar  4 16:00:14 2009
+++ loncom/homework/lonhomework.pm	Wed Mar  4 17:57:11 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.304 2009/03/04 16:00:14 bisitz Exp $
+# $Id: lonhomework.pm,v 1.305 2009/03/04 17:57:11 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -855,8 +855,12 @@
     my $result;
     my $problem=&Apache::lonnet::getfile($file);
     if ($problem eq -1) {
-	&Apache::lonxml::error("<b> ".&mt('Unable to find').
-			       " <i>$file</i></b>");
+	&Apache::lonxml::error(
+            '<b> '
+           .&mt('Unable to find [_1]',
+                '<span class="LC_filename">'.$file.'</span>')
+           .'</b>');
+
 	$problem='';
     }
     if (defined($env{'form.editxmltext'}) || defined($env{'form.Undo'})) {
@@ -963,7 +967,7 @@
 	    my $filename=(split('/',$file))[-1];
 	    my $error =
 		"<b> ".&mt('Unable to find [_1]',
-			   ' <span class="LC_filename">'.$filename.'</span>')
+			   '<span class="LC_filename">'.$filename.'</span>')
 		."</b>";
 	    $result.=
 		&Apache::loncommon::simple_error_page($request,'Not available',
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.244 loncom/localize/localize/de.pm:1.245
--- loncom/localize/localize/de.pm:1.244	Wed Mar  4 17:07:36 2009
+++ loncom/localize/localize/de.pm	Wed Mar  4 17:57:15 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # German Localization Lexicon
 #
-# $Id: de.pm,v 1.244 2009/03/04 17:07:36 bisitz Exp $
+# $Id: de.pm,v 1.245 2009/03/04 17:57:15 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -672,9 +672,6 @@
    "Select a"
 => "Wählen Sie",
 
-   'Unable to find'
-=> 'Konnte nicht gefunden werden',
-
    'Part'
 => 'Aufgabenteil',
 
Index: loncom/localize/localize/zh.pm
diff -u loncom/localize/localize/zh.pm:1.23 loncom/localize/localize/zh.pm:1.24
--- loncom/localize/localize/zh.pm:1.23	Wed Mar  4 17:07:36 2009
+++ loncom/localize/localize/zh.pm	Wed Mar  4 17:57:15 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Chinese Simplified Localization Lexicon
 #
-# $Id: zh.pm,v 1.23 2009/03/04 17:07:36 bisitz Exp $
+# $Id: zh.pm,v 1.24 2009/03/04 17:57:15 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -653,9 +653,6 @@
    "Select a"
 => "Wählen Sie",
 
-   'Unable to find'
-=> 'Konnte nicht gefunden werden',
-
    'Part'
 => 'Aufgabenteil',