--- loncom/interface/londocs.pm 2003/09/22 03:02:05 1.83 +++ loncom/interface/londocs.pm 2003/09/28 00:14:25 1.84 @@ -1,7 +1,7 @@ # The LearningOnline Network # Documents # -# $Id: londocs.pm,v 1.83 2003/09/22 03:02:05 www Exp $ +# $Id: londocs.pm,v 1.84 2003/09/28 00:14:25 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -500,7 +500,7 @@ sub checkonthis { for (my $i=0;$i<=$level*5;$i++) { $r->print(' '); } - $r->print('- Rendering: '); + $r->print('- '.&mt('Rendering').': '); my $oldpath=$ENV{'request.filename'}; $ENV{'request.filename'}=&Apache::lonnet::filelocation('',$url); &Apache::lonxml::xmlparse($r,'web', @@ -515,7 +515,8 @@ sub checkonthis { } if ($Apache::lonxml::warningcount) { $r->print(''. - $Apache::lonxml::warningcount.' warning(s)'); + $Apache::lonxml::warningcount.' '. + &mt('warning(s)').''); } } else { $r->print('ok'); @@ -530,11 +531,11 @@ sub checkonthis { } } } elsif ($result==HTTP_SERVICE_UNAVAILABLE) { - $r->print('connection down'); + $r->print(''.&mt('connection down').''); } elsif ($result==HTTP_NOT_FOUND) { - $r->print('not found'); + $r->print(''.&mt('not found').''); } else { - $r->print('access denied'); + $r->print(''.&mt('access denied').''); } } } @@ -580,7 +581,8 @@ sub checkversions { unless ($ENV{'form.timerange'}) { $ENV{'form.timerange'}=604800; } - my $seltext='during the last '.$ENV{'form.timerange'}.' seconds'; + my $seltext=&mt('during the last').' '.$ENV{'form.timerange'}.' ' + .&mt('seconds'); my $startsel=''; my $monthsel=''; my $weeksel=''; @@ -592,31 +594,41 @@ sub checkversions { } my $starttime=time-$ENV{'form.timerange'}; if ($ENV{'form.timerange'}==2592000) { - $seltext='during the last month ('.localtime($starttime).')'; + $seltext=&mt('during the last month').' ('.localtime($starttime).')'; $monthsel='selected'; } elsif ($ENV{'form.timerange'}==604800) { - $seltext='during the last week ('.localtime($starttime).')'; + $seltext=&mt('during the last week').' ('.localtime($starttime).')'; $weeksel='selected'; } elsif ($ENV{'form.timerange'}==86400) { - $seltext='since yesterday ('.localtime($starttime).')'; + $seltext=&mt('since yesterday').' ('.localtime($starttime).')'; $daysel='selected'; } - + my %lt=&Apache::lonlocal::texthash + ('st' => 'Since Start of Course', + 'lm' => 'Last Month', + 'lw' => 'Last Week', + 'sy' => 'Since Yesterday', + 'di' => 'Display', + 'cc' => 'Content changed', + 'fi' => 'File', + 'md' => 'Modification Date', + 've' => 'Version', + 'di' => 'Differences'); $r->print(< - + -

Content changed $seltext

+

$lt{'cc'} $seltext

- - + + ENDHEADERS foreach (keys %changes) { if ($changes{$_}>$starttime) {
FileModification DateVersionDifferences
$lt{'fi'}$lt{'md'}$lt{'ve'}$lt{'di'}