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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 05 Jan 2007 17:55:42 -0000


albertel		Fri Jan  5 12:55:42 2007 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm londocs.pm 
  Log:
  - stop trying to mt the name of the folders
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.155 loncom/interface/lonhtmlcommon.pm:1.156
--- loncom/interface/lonhtmlcommon.pm:1.155	Mon Dec  4 21:55:53 2006
+++ loncom/interface/lonhtmlcommon.pm	Fri Jan  5 12:55:41 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.155 2006/12/05 02:55:53 albertel Exp $
+# $Id: lonhtmlcommon.pm,v 1.156 2007/01/05 17:55:41 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1202,7 +1202,8 @@
 
 input: $breadcrumb, a hash reference.  The keys 'href','title', and 'text'
 are required.  If present the keys 'faq' and 'bug' will be used to provide
-links to the FAQ and bug sites.
+links to the FAQ and bug sites. If the key 'no_mt' is present the 'title' 
+and 'text' values won't be sent through &mt()
 
 returns: nothing    
 
@@ -1252,13 +1253,22 @@
                      if (defined($_->{'target'}) && $_->{'target'} ne '') {
                          $result .= 'target="'.$_->{'target'}.'" ';
                      }
-                     $result .='title="'.&mt($_->{'title'}).'">'.
-                         &mt($_->{'text'}).'</a>';
+		     if ($_->{'no_mt'}) {
+			 $result .='title="'.$_->{'title'}.'">'.
+			     $_->{'text'}.'</a>';
+		     } else {
+			 $result .='title="'.&mt($_->{'title'}).'">'.
+			     &mt($_->{'text'}).'</a>';
+		     }
                      $result;
                      } @Crumbs
                  );
         $links .= '-&gt;' if ($links ne '');
-        $links .= '<b>'.&mt($last->{'text'}).'</b>';
+	if ($last->{'no_mt'}) {
+	    $links .= '<b>'.$last->{'text'}.'</b>';
+	} else {
+	    $links .= '<b>'.&mt($last->{'text'}).'</b>';
+	}
         #
         my $icons = '';
         $faq = $last->{'faq'} if (exists($last->{'faq'}));
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.265 loncom/interface/londocs.pm:1.266
--- loncom/interface/londocs.pm:1.265	Fri Jan  5 11:40:27 2007
+++ loncom/interface/londocs.pm	Fri Jan  5 12:55:41 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.265 2007/01/05 16:40:27 albertel Exp $
+# $Id: londocs.pm,v 1.266 2007/01/05 17:55:41 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -988,7 +988,8 @@
 		      {'href'=>$url.$cpinfo,
 		       'title'=>$name,
 		       'text'=>'<font size="+1">'.
-			   $name.'</font>'
+			   $name.'</font>',
+		       'no_mt'=>1,
 		       });
 	$plain.=$name.' &gt; ';
     }