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

raeburn raeburn@source.lon-capa.org
Sun, 23 May 2010 19:16:03 -0000


raeburn		Sun May 23 19:16:03 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/interface	lonmenu.pm 
  Log:
  - Course -> Community.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.244.2.14 loncom/interface/lonmenu.pm:1.244.2.15
--- loncom/interface/lonmenu.pm:1.244.2.14	Tue Jan 19 16:53:10 2010
+++ loncom/interface/lonmenu.pm	Sun May 23 19:16:02 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.244.2.14 2010/01/19 16:53:10 raeburn Exp $
+# $Id: lonmenu.pm,v 1.244.2.15 2010/05/23 19:16:02 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -163,8 +163,8 @@
 }
 
 sub initlittle {
-    return &Apache::lonlocal::texthash('ret' => 'Return to Last Location',
-				       'nav' => 'Navigate Contents',
+    my %lt=&Apache::lonlocal::texthash('ret' => 'Return to Last Location',
+				       'nav' => 'Course Contents',
 				       'main' => 'Main Menu',
                                        'roles' => (&Apache::loncommon::show_course()?
                                                     'Courses':'Roles'),
@@ -176,6 +176,11 @@
                                        'groups' => 'Groups',
                                        'gdoc' => 'Community Documents',
                                        );
+    if (&Apache::loncommon::course_type() eq 'Community') {
+        $lt{'nav'} = &mt('Community Contents');
+        $lt{'docs'} = &mt('Edit Community');
+    }
+    return %lt;
 }
 
 sub menubuttons {