--- loncom/interface/londocs.pm 2009/10/30 19:50:24 1.406
+++ loncom/interface/londocs.pm 2009/10/30 20:24:39 1.407
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: londocs.pm,v 1.406 2009/10/30 19:50:24 raeburn Exp $
+# $Id: londocs.pm,v 1.407 2009/10/30 20:24:39 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3016,7 +3016,16 @@ HIDDENFORM
my $activeClass = 1;
my $active = '';
-
+ my %tabtitles = (
+ main => {
+ Course => &mt('Main Course Documents'),
+ Community => &mt('Main Community Documents'),
+ },
+ supplemental => {
+ Course => &mt('Supplemental Course Documents'),
+ Community => &mt('Supplemental Community Documents'),
+ },
+ );
if ($allowed) {
$r->print('
');
if (($standard) && ($allowed) && (!$forcesupplement) && (($env{'form.folderpath'}=~/^default/) || $env{'form.folderpath'}eq"" || ($env{'form.pagepath'}))) {
@@ -3025,14 +3034,14 @@ HIDDENFORM
$activeClass = 0;
}
}
- $r->print('- '.&mt('Main Course Documents').'
');
+ $r->print('- '.$tabtitles{'main'}{$type}.'
');
$active = '';
if (!$forcestandard || ($env{'form.folderpath'}=~/^supplemental/)) {
if($activeClass == 1){
$active = 'class="active"';
}
}
- $r->print('- '.&mt('Supplemental Course Documents').'
');
+ $r->print('- '.$tabtitles{'supplemental'}{$type}.'
');
$r->print('
');
} else {
$r->print('
');
@@ -3051,7 +3060,7 @@ HIDDENFORM
if ($folder eq '' || $folder=~/^supplemental/) {
$folder='default';
$savefolderpath = $env{'form.folderpath'};
- $env{'form.folderpath'}='default&'.&escape(&mt('Main '.$type.' Documents'));
+ $env{'form.folderpath'}='default&'.&escape($tabtitles{'main'}{$type});
$uploadtag = '';
}