--- loncom/interface/domainprefs.pm 2008/07/19 02:28:44 1.64 +++ loncom/interface/domainprefs.pm 2008/07/21 16:24:31 1.66 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.64 2008/07/19 02:28:44 raeburn Exp $ +# $Id: domainprefs.pm,v 1.66 2008/07/21 16:24:31 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -80,7 +80,7 @@ sub handler { my %prefs = ( 'rolecolors' => { text => 'Default color schemes', - help => 'Default_Color_Schemes', + help => 'Domconfig_Color_Schemes', header => [{col1 => 'Student Settings', col2 => '',}, {col1 => 'Coordinator Settings', @@ -92,31 +92,31 @@ sub handler { }, 'login' => { text => 'Log-in page options', - help => 'Domain_Log-in_Page', + help => 'Domconfig_Login_Page', header => [{col1 => 'Item', col2 => '',}], }, 'defaults' => { text => 'Default authentication/language/timezone', - help => '', + help => 'Domconfig_LangTZAuth', header => [{col1 => 'Setting', col2 => 'Value'}], }, 'quotas' => { text => 'Default quotas for user portfolios', - help => 'Default_User_Quota', + help => 'Domconfig_Quotas', header => [{col1 => 'User type', col2 => 'Default quota'}], }, 'autoenroll' => { text => 'Auto-enrollment settings', - help => 'Domain_Auto_Enrollment', + help => 'Domconfig_Auto_Enrollment', header => [{col1 => 'Configuration setting', col2 => 'Value(s)'}], }, 'autoupdate' => { text => 'Auto-update settings', - help => 'Domain_Auto_Update', + help => 'Domconfig_Auto_Updates', header => [{col1 => 'Setting', col2 => 'Value',}, {col1 => 'User population', @@ -124,20 +124,20 @@ sub handler { }, 'directorysrch' => { text => 'Institutional directory searches', - help => 'Domain_Directory_Search', + help => 'Domconfig_InstDirectory_Search', header => [{col1 => 'Setting', col2 => 'Value',}], }, 'contacts' => { text => 'Contact Information', - help => 'Domain_Contact_Information', + help => 'Domconfig_Contact_Info', header => [{col1 => 'Setting', col2 => 'Value',}], }, 'usercreation' => { text => 'User creation', - help => 'Domain_User_Creation', + help => 'Domconfig_User_Creation', header => [{col1 => 'Format rule type', col2 => 'Format rules in force'}, {col1 => 'User account creation', @@ -147,7 +147,7 @@ sub handler { }, 'usermodification' => { text => 'User modification', - help => 'Domain_User_Modification', + help => 'Domconfig_User_Modification', header => [{col1 => 'Target user has role', col2 => 'User information updateable in author context'}, {col1 => 'Target user has role', @@ -157,14 +157,14 @@ sub handler { }, 'scantron' => { text => 'Scantron format file', - help => 'Domain_Scantron_Formats', + help => 'Domconfig_Scantron_Format', header => [ {col1 => 'Item', col2 => '', }], }, 'coursecategories' => { text => 'Cataloging of courses', - help => 'Domain_Course_Catalog', + help => 'Domconfig_Cataloging_Courses', header => [{col1 => 'Category settings', col2 => '',}, {col1 => 'Categories', @@ -319,7 +319,10 @@ sub handler { } $count = 0; foreach my $item (@prefs_order) { - $r->print('
'); + $r->print(''.&mt($item->{text}). - ' | '.&mt($item->{text}).' '. -# &Apache::loncommon::help_open_topic($item->{'help'}).' | -# '); +'. + &mt($item->{text}).' '. + &Apache::loncommon::help_open_topic($item->{'help'}).' | '."\n". + ''; $rowtotal ++; if (($action eq 'autoupdate') || ($action eq 'rolecolors') || ($action eq 'usercreation') || ($action eq 'usermodification') || @@ -1985,14 +1985,15 @@ sub print_scantronformat { $css_class = $itemcount%2?' class="LC_odd_row"':''; $datatable .= '||||||
---|---|---|---|---|---|---|---|---|
'.&mt('Default in use:').' '; + $datatable .= ' | '.&mt('Default in use:').' '. + ''; if ($scantronurl) { $datatable .= ''. &mt('Default scantron format file').''; } else { $datatable = &mt('File unavailable for display'); } - $datatable .= ' | ';
+ $datatable .= '';
if (keys(%error) == 0) {
$datatable .= ''; if (!$switchserver) { @@ -2013,19 +2014,21 @@ sub print_scantronformat { } $datatable .= ' | '.$errorstr.' | '; } elsif ($scantronurl) { - $datatable .= ' | ' - .&mt('Custom scantron format file').'' - .' | ' - .''.&mt('Replace:').' '; + $datatable .= ' | '. + ''. + &mt('Custom scantron format file').' | '. + ' '.
+ &mt('Replace:').' '; } } if (keys(%error) == 0) { if ($switchserver) { $datatable .= &mt('Upload to library server: [_1]',$switchserver); } else { - $datatable .=' '; + $datatable .=' '. + ''; } } $datatable .= ' |