[LON-CAPA-cvs] cvs: loncom /interface lonmeta.pm

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Thu, 24 Jan 2008 10:05:14 -0000


bisitz		Thu Jan 24 05:05:14 2008 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  Optimized two &mt() calls for better translation handling
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.210 loncom/interface/lonmeta.pm:1.211
--- loncom/interface/lonmeta.pm:1.210	Wed Jan 23 12:23:16 2008
+++ loncom/interface/lonmeta.pm	Thu Jan 24 05:05:13 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.210 2008/01/23 17:23:16 bisitz Exp $
+# $Id: lonmeta.pm,v 1.211 2008/01/24 10:05:13 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1221,13 +1221,11 @@
 	}
 	$r->print('<br />'.$bombs);
     } else {
-        my $displayfile=&mt('Catalog Information for').' '.$disuri;
+        my $displayfile=&mt('Catalog Information for [_1]',$disuri);
         if ($disuri=~/\/default$/) {
             my $dir=$disuri;
             $dir=~s/default$//;
-            $displayfile=
-                &mt('Default Cataloging Information for Directory').' '.
-                $dir;
+            $displayfile=&mt('Default Cataloging Information for Directory [_1]',$dir);
         }
         %Apache::lonpublisher::metadatafields=();
         %Apache::lonpublisher::metadatakeys=();