--- loncom/interface/loncommunicate.pm 2006/04/25 17:08:27 1.33 +++ loncom/interface/loncommunicate.pm 2006/05/30 20:09:25 1.34 @@ -1,7 +1,7 @@ # The LearningOnline Network # Communicate # -# $Id: loncommunicate.pm,v 1.33 2006/04/25 17:08:27 albertel Exp $ +# $Id: loncommunicate.pm,v 1.34 2006/05/30 20:09:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -38,16 +38,24 @@ use Apache::lonnet; sub menu { my $r=shift; + my $crstype = 'Course'; + my $usertype = 'Student'; + if (defined($env{'course.'.$env{'request.course.id'}.'.type'})) { + $crstype = $env{'course.'.$env{'request.course.id'}.'.type'}; + if ($crstype eq 'Group') { + $usertype = 'Member'; + } + } my %lt=&Apache::lonlocal::texthash( 'mnf' => 'Make New Folder', 'vcm' => 'View Critical Messages', 'smu' => 'Send Message to User(s)', -'bmc' => 'Broadcast Message to Course', -'dmu' => 'Distribute Messages from Uploaded File to Course', +'bmc' => "Broadcast Message to $crstype", +'dmu' => "Distribute Messages from Uploaded File to $crstype", 'unr' => 'User Notes, Records of Face-to-Face Discussions, and Critical Messages', -'cbs' => 'Configure Blocking of Student Communication during Exams', +'cbs' => "Configure Blocking of $usertype Communication during Exams", 'blog' => 'Add or Edit Blog Entries' );