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

droeschl droeschl@source.lon-capa.org
Mon, 01 Dec 2008 17:45:20 -0000


droeschl		Mon Dec  1 17:45:20 2008 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm 
  Log:
  Added mt() calls.
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.187 loncom/interface/lonhtmlcommon.pm:1.188
--- loncom/interface/lonhtmlcommon.pm:1.187	Mon Dec  1 16:33:32 2008
+++ loncom/interface/lonhtmlcommon.pm	Mon Dec  1 17:45:20 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.187 2008/12/01 16:33:32 droeschl Exp $
+# $Id: lonhtmlcommon.pm,v 1.188 2008/12/01 17:45:20 droeschl Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2048,23 +2048,23 @@
 
     foreach my $category (@menu) { #FIXME: insert appropriate classnames for styles when they're finished.
 	$menu_html .='<div class="ContentBox">
-			<h3 class="">'.$category->{'categorytitle'}.'</h3>
+			<h3 class="">'.mt($category->{'categorytitle'}).'</h3>
 			<ul class="ListStyleNormal">';
 	foreach my $item ( @{ $category->{items} } ) {
 	    next unless $item->{'permission'};
-	    $menu_html .= qq|<li class=""><a href="$item->{'url'}" title="$item->{'linktitle'}">|;
+	    $menu_html .= qq|<li class=""><a href="$item->{'url'}" title="|.mt($item->{'linktitle'}).'">';
             if($item->{'icon'}){
                 $menu_html .= qq|<img class ="noBorder" src="/res/adm/pages/$item->{'icon'}" alt="|;
 		if($item->{'alttext'}){
-		    $menu_html .= qq|$item->{'alttext'}"/></a>|;
+		    $menu_html .= $item->{'alttext'}.'"/></a>';
 		} else { #use linktext as alt text for the icon
 		    $menu_html .= qq|$item->{'linktext'}"/></a>|;
                 } 
             }
-	    $menu_html .= qq|<a href="$item->{'url'}" title="$item->{'linktitle'}">|;
-            $menu_html .= &mt($item->{'linktext'}).'</a>';
+	    $menu_html .= qq|<a href="$item->{'url'}" title="|.mt($item->{'linktitle'}).'">';
+            $menu_html .= mt($item->{'linktext'}).'</a>';
 	    if (exists($item->{'help'})) {
-		$menu_html .= &Apache::loncommon::help_open_topic($item->{'help'});
+		$menu_html .= Apache::loncommon::help_open_topic($item->{'help'});
 	    }
 	    $menu_html .= '</li>';
 	}