--- loncom/interface/lonpopulate.pm 2008/03/06 21:42:51 1.53 +++ loncom/interface/lonpopulate.pm 2008/06/04 21:33:54 1.56 @@ -1,5 +1,5 @@ # automated enrollment configuration handler -# $Id: lonpopulate.pm,v 1.53 2008/03/06 21:42:51 raeburn Exp $ +# $Id: lonpopulate.pm,v 1.56 2008/06/04 21:33:54 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -208,9 +208,9 @@ sub print_mainbox { } my $page = ''; if ($action eq "information") { - $page = "Automated Student Enrollment"; + $page = "".&mt("Automated Enrollment").""; } else { - $page = 'Automated Student Enrollment'; + $page = ''.&mt('Automated Enrollment').''; if ($reply) { if ($action eq "newcross") { $action = "crosslist"; @@ -222,14 +222,16 @@ sub print_mainbox { $page .= " -> ".$$tasklongref{$action}.""; } } + my $usrmang = &mt('User Management'); + my $autenrl = &mt('Automated Enrollment Manager'); $r->print(< - $realm -> User Management -> $page
+ $realm -> $usrmang -> $page
- Automated Student Enrollment Manager  + $autenrl  @@ -1000,8 +1002,11 @@ ENDTWO } $r->print(' - '. -&mt('The policies of your institution ([_1]) require that the course owner ([_2]) must indicate acceptance of the conditions of use of digital photos of registered students, before they may be made available for use in a course.',$institution,$ownername).'

'.&mt('Please direct the course owner [_1] to visit the "Student photos" page in the Automated Student Enrollment Manager to indicate acceptance of these conditions of use.',$emailstr).'

+ ' + .&mt('The policies of your institution ([_1]) require that the course owner ([_2]) must indicate acceptance of the conditions of use of digital photos of registered students, before they may be made available for use in a course.',$institution,$ownername) + .'

' + .&mt('Please direct the course owner [_1] to visit the "Student photos" page in the Automated Enrollment Manager to indicate acceptance of these conditions of use.',$emailstr) + .'

@@ -1089,7 +1094,8 @@ onclick="javascript:document.photoupdate '); } else { - $r->print(&mt('Update of photos via the Automated Student Enrollment Manager is unavailable in this domain.').'

'); + $r->print(&mt('Update of photos via the Automated Enrollment Manager is unavailable in this domain.') + .'

'); } } else { $r->print('Update of photos is unavailable, as import of student photos is currently disabled.
Enable this first via: '.$$tasktitleref{'photos'}.''); @@ -2419,7 +2425,9 @@ function agreement_result(caller) { if ($owneremail) { $emailstr = "(e-mail: $owneremail)"; } - $response = &mt('The policies of your institution [_1] require that the course owner [_2] must indicate acceptance of the conditions of use of digital photos of registered students, before they may be made available for use in a course.',$institution,$ownername).'

'.&mt('Please direct the course owner [_1] to visit the "Student photos" page in the Automated Student Enrollment Manager to indicate acceptance of these conditions of use',$emailstr); + $response = &mt('The policies of your institution [_1] require that the course owner [_2] must indicate acceptance of the conditions of use of digital photos of registered students, before they may be made available for use in a course.',$institution,$ownername) + .'

' + .&mt('Please direct the course owner [_1] to visit the "Student photos" page in the Automated Enrollment Manager to indicate acceptance of these conditions of use.',$emailstr); } &print_reply($r,$response,$$tasktitleref{$action}); } @@ -2485,7 +2493,7 @@ onclick="javascript:document.photoupdate } } if (keys(%newenv) > 0) { - &Apache::lonnet::appenv(%newenv); + &Apache::lonnet::appenv(\%newenv); } &print_reply($r,$response,$$tasktitleref{$action}); return; @@ -2697,7 +2705,7 @@ sub print_viewclass_response { } elsif ($newtype eq '') { $newlock = '1'; } - my $modreply = &Apache::lonnet::modify_student_enrollment($udom,$uname,$uid,'','','','',$section,$end,$start,$newtype,$newlock,$cid); + my $modreply = &Apache::lonnet::modify_student_enrollment($udom,$uname,$uid,'','','','',$section,$end,$start,$newtype,$newlock,$cid,'','chgtype'); if ($modreply eq 'ok') { $chgok ++; $chg{$student} = "Changed to $change"; @@ -2729,7 +2737,7 @@ sub print_viewclass_response { $newlockname = &mt('unlocked'); $oldlockname = &mt('locked'); } - my $lockreply = &Apache::lonnet::modify_student_enrollment($udom,$uname,$uid,'','','','',$section,$end,$start,$type,$newlock,$cid); + my $lockreply = &Apache::lonnet::modify_student_enrollment($udom,$uname,$uid,'','','','',$section,$end,$start,$type,$newlock,$cid,'','chgtype'); if ($lockreply eq 'ok') { $lockok ++; $lockchg{$student} = 'Changed to '.$newlockname;