\n");
$r->print("\n");
- $r->print("Name | \n");
- $r->print("Title | \n")
+ $r->print("".&mt('Name')." | \n");
+ $r->print("".&mt('Title')." | \n")
if ($hash{'display_attrs_0'} == 1);
- $r->print("Size (bytes) ".
+ $r->print(" | ".&mt("Size")." (".&mt("bytes").") ".
" | \n") if ($hash{'display_attrs_1'} == 1);
- $r->print("Last accessed | \n")
+ $r->print("".&mt("Last accessed")." | \n")
if ($hash{'display_attrs_2'} == 1);
- $r->print("Last modified | \n")
+ $r->print("".&mt("Last modified")." | \n")
if ($hash{'display_attrs_3'} == 1);
- $r->print("Author(s) | \n")
+ $r->print("".&mt("Author(s)")." | \n")
if ($hash{'display_attrs_4'} == 1);
- $r->print("Keywords | \n")
+ $r->print("".&mt("Keywords")." | \n")
if ($hash{'display_attrs_5'} == 1);
- $r->print("Language | \n")
+ $r->print("".&mt("Language")." | \n")
if ($hash{'display_attrs_6'} == 1);
- $r->print("Resource | \n")
+ $r->print("".&mt("Resource")." | \n")
if ($hash{'display_attrs_7'} == 1);
- $r->print("Usage Statistics (Courses/Network Hits) | \n")
+ $r->print("".&mt("Usage Statistics")." (".
+ &mt("Courses/Network Hits").") | \n")
if ($hash{'display_attrs_8'} == 1);
$r->print(' ');
@@ -586,7 +637,7 @@ sub get_list {
my @list;
(my $luri = $uri) =~ s/\//_/g;
- if ($ENV{'form.attrs'} eq 'Update Display') {
+ if ($ENV{'form.attrs'} eq &mt('Update Display')) {
foreach (keys %hash) {
delete $hash{$_} if ($_ =~ /^dirlist_files_/);
}
@@ -649,7 +700,7 @@ sub match_ext {
push @trimlist,$line;
}
}
- @trimlist = sort (@trimlist);
+ @trimlist = sort {uc($a) cmp uc($b)} (@trimlist);
return @trimlist;
}
@@ -665,8 +716,8 @@ sub display_line {
my @pathcom = split (/\//,$filecom[0]);
my $listname = $pathcom[scalar(@pathcom)-1];
my $fnptr = $filecom[3]&$dirptr;
- my $msg = 'View '.$filecom[0].' resources';
- $msg = 'Close '.$filecom[0].' directory' if $diropen eq 'opened';
+ my $msg = &mt('View').' '.$filecom[0].' '.&mt('resources');
+ $msg = &mt('Close').' '.$filecom[0].' '.&mt('directory') if $diropen eq 'opened';
my $tabtag='';
my $i=0;
@@ -695,7 +746,7 @@ sub display_line {
$r->print ('print (' name="'.$msg.'" height="22" type="image" border="0">'.
"\n");
- $r->print("Up $tabtag\n");
+ $r->print(&mt("Up")." $tabtag\n");
return OK;
}
# Do we have permission to look at this?
@@ -720,7 +771,7 @@ sub display_line {
$r->print (' print (' border="0" />'."\n");
- $r->print ("Domain - $listname ");
+ $r->print (&mt("Domain")." - $listname ");
if ($Apache::lonnet::domaindescription{$listname}) {
$r->print("(".$Apache::lonnet::domaindescription{$listname}.
")");
@@ -758,6 +809,7 @@ sub display_line {
# display file
if ($fnptr == 0 and $filecom[3] ne '') {
my $filelink = $startdir.$filecom[0];
+ next if &Apache::lonnet::metadata($filelink,'obsolete');
my @file_ext = split (/\./,$listname);
my $curfext = $file_ext[-1];
if (@Omit) {
|