$lt{'rev'} | $lt{'del'} | $lt{'rol'} | $lt{'ext'} | $lt{'sta'} | $lt{'end'} |
END
foreach my $area (sort { my $a1=join('_',(split('_',$a))[1,0]);
my $b1=join('_',(split('_',$b))[1,0]);
@@ -334,11 +374,11 @@ END
&Apache::lonnet::coursedescription($1.'_'.$2);
my $carea;
if (defined($coursedata{'description'})) {
- $carea='Course: '.$coursedata{'description'}.
- '
Domain: '.$coursedom.(' 'x8).
+ $carea=&mt('Course').': '.$coursedata{'description'}.
+ '
'.&mt('Domain').': '.$coursedom.(' 'x8).
&Apache::loncommon::syllabuswrapper('Syllabus',$coursedir,$coursedom);
} else {
- $carea='Unavailable course: '.$area;
+ $carea=&mt('Unavailable course').': '.$area;
}
$inccourses{$1.'_'.$2}=1;
if ((&Apache::lonnet::allowed('c'.$role_code,$1.'/'.$2)) ||
@@ -400,7 +440,7 @@ END
if ($active) {
$row.=' ';
} else {
- $row.='expired or revoked';
+ $row.=&mt('expired or revoked');
}
}
$row.='';
@@ -513,7 +553,7 @@ ENDOTHERAUTHS
}
} ## End of "check for bad authentication type" logic
} ## End of new user/old user logic
- $r->print('
Add Roles');
+ $r->print('
'.&mt('Add Roles').'');
#
# Co-Author
#
@@ -522,20 +562,31 @@ ENDOTHERAUTHS
# No sense in assigning co-author role to yourself
my $cuname=$ENV{'user.name'};
my $cudom=$ENV{'request.role.domain'};
+ my %lt=&Apache::lonlocal::texthash(
+ 'cs' => "Construction Space",
+ 'act' => "Activate",
+ 'rol' => "Role",
+ 'ext' => "Extent",
+ 'sta' => "Start",
+ 'end' => "End".
+ 'cau' => "Co-Author",
+ 'ssd' => "Set Start Date",
+ 'sed' => "Set End Date"
+ );
$r->print(<Construction Space
-Activate | Role | Extent |
-Start | End |
+$lt{'cs'}
+${'act'} | ${'rol'} | ${'ext'} |
+$lt{'sta'} | $lt{'end'} |
|
-Co-Author |
+$lt{'cau'} |
$cudom\_$cuname |
Set Start Date |
+"javascript:pjump('date_start','Start Date Co-Author',document.cu.start_$cudom\_$cuname\_ca.value,'start_$cudom\_$cuname\_ca','cu.pres','dateset')">$lt{'ssd'}
Set End Date |
+"javascript:pjump('date_end','End Date Co-Author',document.cu.end_$cudom\_$cuname\_ca.value,'end_$cudom\_$cuname\_ca','cu.pres','dateset')">$lt{'sed'}
ENDCOAUTH
@@ -543,14 +594,18 @@ ENDCOAUTH
#
# Domain level
#
- $r->print('Domain Level'.
+ $r->print(''.&mt('Domain Level').''.
'Activate | Role | Extent | '.
'Start | End | ');
foreach ( sort( keys(%incdomains))) {
my $thisdomain=$_;
- foreach ('dc','li','dg','au') {
+ foreach ('dc','li','dg','au','sc') {
if (&Apache::lonnet::allowed('c'.$_,$thisdomain)) {
my $plrole=&Apache::lonnet::plaintext($_);
+ my %lt=&Apache::lonlocal::texthash(
+ 'ssd' => "Set Start Date",
+ 'sed' => "Set End Date"
+ );
$r->print(<
|
@@ -558,10 +613,10 @@ ENDCOAUTH
$thisdomain |
Set Start Date |
+"javascript:pjump('date_start','Start Date $plrole',document.cu.start_$thisdomain\_$_.value,'start_$thisdomain\_$_','cu.pres','dateset')">$lt{'ssd'}
Set End Date |
+"javascript:pjump('date_end','End Date $plrole',document.cu.end_$thisdomain\_$_.value,'end_$thisdomain\_$_','cu.pres','dateset')">$lt{'sed'}
ENDDROW
}
@@ -572,7 +627,7 @@ ENDDROW
# Course level
#
$r->print(&course_level_table(%inccourses));
- $r->print(" \n");
+ $r->print(" \n");
$r->print("
|
---|