--- loncom/interface/lonannounce.pm 2008/12/15 16:37:44 1.76 +++ loncom/interface/lonannounce.pm 2009/11/04 20:01:24 1.80 @@ -1,7 +1,7 @@ # The LearningOnline Network # Announce # -# $Id: lonannounce.pm,v 1.76 2008/12/15 16:37:44 raeburn Exp $ +# $Id: lonannounce.pm,v 1.80 2009/11/04 20:01:24 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,7 +45,7 @@ my %todayhash; my %showedcheck; sub editfield { - my ($r,$start,$end,$text)=@_; + my ($r,$start,$end,$text,$crstype)=@_; # Deal with date forms my $startdateform = &Apache::lonhtmlcommon::date_setter('anno', 'startdate', @@ -61,6 +61,10 @@ sub editfield { 'start' => 'Starting date', 'end' => 'Ending date', 'incrss' => 'Include in course RSS newsfeed'); + if ($crstype eq 'Community') { + $lt{'anon'} = &mt('Community Announcements'); + $lt{'incrss'} = &mt('Include in community RSS newsfeed'); + } $r->print(<$lt{'annon'} $help @@ -415,7 +419,7 @@ sub picklink { sub dialscript { return (< +