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

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


raeburn		Fri May 25 03:23:36 2012 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonmenu.pm 
  Log:
  - For 2.11.
    - Backport 1.377, and other internationalization.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.369.2.6 loncom/interface/lonmenu.pm:1.369.2.7
--- loncom/interface/lonmenu.pm:1.369.2.6	Thu May 24 23:36:17 2012
+++ loncom/interface/lonmenu.pm	Fri May 25 03:23:36 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.369.2.6 2012/05/24 23:36:17 raeburn Exp $
+# $Id: lonmenu.pm,v 1.369.2.7 2012/05/25 03:23:36 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -259,7 +259,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
@@ -389,7 +389,7 @@
                 if (@scndsub > 0) {
                     $menu .= &create_submenu($link,$target,$title,\@scndsub);
                 } 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 'Roles' && $env{'request.course.id'}) {
@@ -433,7 +433,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>';
@@ -449,7 +449,7 @@
             $menu .= '<li style="margin:0;padding:0;'.
                      $borderbot.'"><a href="'.$item->[0].'">'.
                      '" style="padding:0;">'.
-                     $item->[1].'</a></li>';
+                     &mt($item->[1]).'</a></li>';
         }
     }
     $menu .= '</ul></li>';




More information about the LON-CAPA-cvs mailing list