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

raeburn lon-capa-cvs@mail.lon-capa.org
Tue, 30 May 2006 20:13:46 -0000


raeburn		Tue May 30 16:13:46 2006 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  Adding thin veneer to support ANGEL-style groups.
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.384 loncom/interface/lonnavmaps.pm:1.385
--- loncom/interface/lonnavmaps.pm:1.384	Tue May 30 08:46:09 2006
+++ loncom/interface/lonnavmaps.pm	Tue May 30 16:13:45 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.384 2006/05/30 12:46:09 www Exp $
+# $Id: lonnavmaps.pm,v 1.385 2006/05/30 20:13:45 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -250,6 +250,7 @@
 # ----------------------------------------------------- Force menu registration
     my $body_only='';
     my $js;
+    my $crstype = $env{'course.'.$env{'request.course.id'}.'.type'};
     if ($env{'environment.remotenavmap'} eq 'on') {
 	$js='<script type="text/javascript">
                 function collapse() {
@@ -260,7 +261,8 @@
     }
 
     # Header
-    $r->print(&Apache::loncommon::start_page('Navigate Course Contents',$js,
+    $r->print(&Apache::loncommon::start_page(&mt('Navigate [_1] Contents',
+                                                 $crstype),$js,
 					     {'only_body'       => $body_only,
 					      'force_register'  =>
 						  $env{'form.register'},}));