--- loncom/interface/lonannounce.pm 2009/04/04 21:47:40 1.79
+++ loncom/interface/lonannounce.pm 2013/05/25 21:45:42 1.86
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Announce
#
-# $Id: lonannounce.pm,v 1.79 2009/04/04 21:47:40 bisitz Exp $
+# $Id: lonannounce.pm,v 1.86 2013/05/25 21:45:42 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,17 +61,21 @@ sub editfield {
'start' => 'Starting date',
'end' => 'Ending date',
'incrss' => 'Include in course RSS newsfeed');
+ if ($crstype eq 'Community') {
+ $lt{'annon'} = &mt('Community Announcements');
+ $lt{'incrss'} = &mt('Include in community RSS newsfeed');
+ }
$r->print(<
'. - '
'.&mt($localdays[$i]).' | '); } @@ -742,22 +771,23 @@ ENDDOCUMENT } } # ------------------------------------------------------------------- End table - $r->print('
---|
'. - ''.&mt('Previous Month').' '. - ''.&mt('Next Month').''. ' '.&mt('Current Month').'
'. - ($pickdatemode?'':'').&Apache::loncommon::end_page()); - $r->print(''.&mt('Download your Calendar as iCalendar File').''); + ($pickdatemode?'':''). + ''.&mt('Download your Calendar as iCalendar File').''. + &Apache::loncommon::end_page()); return OK; }