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

raeburn raeburn at source.lon-capa.org
Thu May 24 23:22:43 EDT 2012


raeburn		Fri May 25 03:22:43 2012 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - Internationalization.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.376 loncom/interface/lonmenu.pm:1.377
--- loncom/interface/lonmenu.pm:1.376	Thu May 24 23:30:16 2012
+++ loncom/interface/lonmenu.pm	Fri May 25 03:22:43 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.376 2012/05/24 23:30:16 raeburn Exp $
+# $Id: lonmenu.pm,v 1.377 2012/05/25 03:22:43 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -260,7 +260,7 @@
                 if (@primsub > 0) {
                     $menu .= &create_submenu($link,$target,$title,\@primsub);
                 } elsif ($link) {
-                    $menu .= '<li><a href="'.$link.'" target="'.$target.'">'.$title.'</a></li>';
+                    $menu .= '<li><a href="'.$link.'" target="'.$target.'">'.&mt($title).'</a></li>';
                 }
             }
         } elsif ($$menuitem[3] eq 'Help') { # special treatment for helplink
@@ -404,7 +404,7 @@
     return unless (ref($submenu) eq 'ARRAY');
     my $menu = '<li class="LC_hoverable">'.
                '<a href="'.$link.'" target="'.$target.'">'.
-               '<span class="LC_nobreak">'.$title.
+               '<span class="LC_nobreak">'.&mt($title).
                '<span class="LC_fontsize_small" style="font-weight:normal;">'.
                ' ▼</span></span></a>'.
                '<ul>';
@@ -419,7 +419,7 @@
             }
             $menu .= '<li style="margin:0;padding:0;'.
                      $borderbot.'"><a href="'.$item->[0].'">'.
-                     $item->[1].'</a></li>';
+                     &mt($item->[1]).'</a></li>';
         }
     }
     $menu .= '</ul></li>';




More information about the LON-CAPA-cvs mailing list