--- loncom/interface/courseprefs.pm 2010/12/24 17:16:04 1.37 +++ loncom/interface/courseprefs.pm 2011/01/15 01:33:04 1.43 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set configuration settings for a course # -# $Id: courseprefs.pm,v 1.37 2010/12/24 17:16:04 raeburn Exp $ +# $Id: courseprefs.pm,v 1.43 2011/01/15 01:33:04 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -268,8 +268,8 @@ sub handler { my %lt; if ($crstype eq 'Community') { %lt = ( - conf => 'Community Configuration', - edit => 'Edit Community Configuration', + conf => 'Community Settings', + edit => 'Edit Community Settings', gens => 'General community settings', idnu => 'Community ID or number', desc => 'Community Description', @@ -287,7 +287,7 @@ sub handler { defd => 'Default dates for member access', stuv => 'Member-viewable membership list options', stul => 'Member agreement needed to be listed', - clas => 'Membership and Facilitator Listing', + clas => 'Membership and facilitator listing', priv => 'Privileged users (Domain Coordinators) in facilitator listing', defc => 'Default Community Spreadsheet', defs => 'Default User Spreadsheet', @@ -295,8 +295,8 @@ sub handler { ); } else { %lt = ( - conf => 'Course Configuration', - edit => 'Edit Course Configuration', + conf => 'Course Settings', + edit => 'Edit Course Settings', gens => 'General course settings', idnu => 'Course ID or number', desc => 'Course Description', @@ -314,7 +314,7 @@ sub handler { defd => 'Default dates for student access', stuv => 'Student-viewable classlist options', stul => 'Student agreement needed to be listed', - clas => 'Classlists and Staff Listing', + clas => 'Classlists and staff listing', priv => 'Privileged users (Domain Coordinators) in staff listing', defc => 'Default Course Spreadsheet', defs => 'Default Student Spreadsheet', @@ -372,7 +372,7 @@ sub handler { }, }, 'localization' => - { text => 'Language and Time Localization', + { text => 'Language and time localization', help => 'Course_Environment', ordered => ['languages','timezone','datelocale'], itemtext => { @@ -577,12 +577,12 @@ sub print_config_box { '
'.&mt($item->{'header'}->[0]->{'col1'}).' | -'.&mt($item->{'header'}->[0]->{'col2'}).' | +'.&mt($item->{'header'}->[2]->{'col1'}).' | +'.&mt($item->{'header'}->[2]->{'col2'}).' | '.$scope.' | '; + $output .= ''.$lt{$scope}.' | '; foreach my $which (sort(keys(%{$fromparam{$rev}{$scope}}))) { $output .= ''.$which.' | '.
join(' ',@{$fromparam{$rev}{$scope}{$which}}).' | ';
@@ -2205,7 +2202,7 @@ sub display_loncaparev_constraints {
if ($newrow) {
$output .= &Apache::loncommon::continue_data_table_row();
}
- $output .= ''.$scope.' | '. + $output .= ' | '.$lt{$scope}.' | '.
join(' ',@{$fromparam{$rev}{$scope}}).' | '.
&Apache::loncommon::end_data_table_row();
$newrow = 1;
@@ -2311,7 +2308,7 @@ sub display_loncaparev_constraints {
$r->print($output);
if (defined($navmap)) {
&show_contents_view($r,$navmap,$cid,\%toshow,\%bymap,\%byresource,\%bysubmission,
- \%byresponsetype,\@scopeorder);
+ \%byresponsetype,\@scopeorder,\%lt);
}
$r->print(''.$icon.' '.&mt('Main Course Documents').' | '); - &releases_by_map($r,$bymap,$topmap,$scopeorder); + &releases_by_map($r,$bymap,$topmap,$scopeorder,$lt); $r->print(&Apache::loncommon::end_data_table_row()); my $it=$navmap->getIterator(undef,undef,undef,1,1,undef); my $curRes; @@ -2406,7 +2404,7 @@ sub show_contents_view { $r->print('
'.&mt('Setting - scope: [_1]',$scope).' | '); + $r->print('||
'.&mt('Setting - scope: [_1]',$lt->{$scope}).' | '); foreach my $which (sort(keys(%{$byresource->{$symb}{$rev}{$scope}}))) { $r->print(''.$which.' | '.
join(' ',@{$byresource->{$symb}{$rev}{$scope}{$which}}). @@ -2414,7 +2412,7 @@ sub show_contents_view { } $r->print(' |
'.&mt('Setting - scope: [_1]',$scope).' | '. + $r->print('||
'.&mt('Setting - scope: [_1]',$lt->{$scope}).' | '. ''.
join(' ',@{$byresource->{$symb}{$rev}{$scope}}).' |
'.&mt('Setting - scope: [_1]',$scope).' | '); + $r->print('||
'.&mt('Setting - scope: [_1]',$lt->{$scope}).' | '); foreach my $which (sort(keys(%{$bymap->{$url}{$rev}{$scope}}))) { $r->print(''.$which.' | '.
join(' ',@{$bymap->{$url}{$rev}{$scope}{$which}}). @@ -2480,7 +2478,7 @@ sub releases_by_map { } $r->print(' |
'.&mt('Setting - scope: [_1]',$scope). + $r->print(' | ||
'.&mt('Setting - scope: [_1]',$lt->{$scope}). ' | '.
join(' ',@{$bymap->{$url}{$rev}{$scope}}).' |