--- loncom/interface/londocs.pm 2003/10/08 17:34:33 1.86
+++ loncom/interface/londocs.pm 2003/10/22 19:47:52 1.87
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.86 2003/10/08 17:34:33 albertel Exp $
+# $Id: londocs.pm,v 1.87 2003/10/22 19:47:52 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -138,7 +138,7 @@ sub dumpcourse {
# Do the dumping
unless ($outhash{'home_'.$ENV{'form.authorspace'}}) { return ''; }
my ($ca,$cd)=split(/\@/,$ENV{'form.authorspace'});
- $r->print('
Copying Files
');
+ $r->print(''.&mt('Copying Files').'
');
my $title=$ENV{'form.authorfolder'};
$title=~s/[^\w\/]+/\_/g;
my %replacehash=();
@@ -396,7 +396,7 @@ sub entryline {
$foldertitle=&Apache::lontexconvert::msgtexconverted($4);
$renametitle=$4;
$title=''.&Apache::lonlocal::locallocaltime($1).' '.
- &Apache::loncommon::plainname($2,$3).':
'.
+ &Apache::loncommon::plainname($2,$3).':
'.
$foldertitle;
}
$renametitle=~s/\"\;/\\\"/g;
@@ -490,7 +490,7 @@ sub checkonthis {
my $result=&Apache::lonnet::repcopy(
&Apache::lonnet::filelocation('',$url));
if ($result==OK) {
- $r->print('ok');
+ $r->print(''.&mt('ok').'');
$r->rflush();
&Apache::lonnet::countacc($url);
$url=~/\.(\w+)$/;
@@ -511,7 +511,8 @@ sub checkonthis {
($Apache::lonxml::warningcount)) {
if ($Apache::lonxml::errorcount) {
$r->print(''.
- $Apache::lonxml::errorcount.' error(s) ');
+ $Apache::lonxml::errorcount.' '.
+ &mt('error(s)').' ');
}
if ($Apache::lonxml::warningcount) {
$r->print(''.
@@ -519,7 +520,7 @@ sub checkonthis {
&mt('warning(s)').'');
}
} else {
- $r->print('ok');
+ $r->print(''.&mt('ok').'');
}
$r->rflush();
}
@@ -612,7 +613,9 @@ sub checkversions {
'cc' => 'Content changed',
'fi' => 'File',
'md' => 'Modification Date',
- 've' => 'Version',
+ 'mr' => 'Most recently published Version',
+ 've' => 'Version used in Course',
+ 'vu' => 'Set Version to be used in Course',
'di' => 'Differences');
$r->print(<
@@ -627,8 +630,8 @@ sub checkversions {
$lt{'cc'} $seltext
-$lt{'fi'} | $lt{'md'} |
-$lt{'ve'} | $lt{'di'} |
+$lt{'fi'} | $lt{'md'} | $lt{'mr'} |
+$lt{'ve'} | $lt{'vu'} | $lt{'di'} |
ENDHEADERS
foreach (keys %changes) {
if ($changes{$_}>$starttime) {
@@ -638,8 +641,12 @@ ENDHEADERS
$r->print(
''.$linkurl.
' | '.
- &Apache::lonlocal::locallocaltime($changes{$_}).' | '.$currentversion.' | '.
- '');
+ &Apache::lonlocal::locallocaltime($changes{$_}).' | '.
+ $currentversion.' | ');
+# Used in course
+ $r->print(' | ');
+# Set version
+ $r->print(' | ');
my $lastold=1;
for (my $prevvers=1;$prevvers<$currentversion;$prevvers++) {
my $url=$root.'.'.$prevvers.'.'.$extension;
@@ -658,7 +665,7 @@ ENDHEADERS
$r->print(' Diffs');
+ '">'.&mt('Diffs').'');
}
$r->print(' ');
}
|