--- loncom/publisher/lonpubdir.pm 2008/01/16 18:15:15 1.107 +++ loncom/publisher/lonpubdir.pm 2008/08/08 10:08:48 1.110 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.107 2008/01/16 18:15:15 bisitz Exp $ +# $Id: lonpubdir.pm,v 1.110 2008/08/08 10:08:48 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -207,17 +207,18 @@ sub startpage { &Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction); if ($env{'environment.remote'} eq 'off') { $env{'request.noversionuri'}=$currdir.'/'; - $r->print(&Apache::loncommon::start_page(&mt('Construction Space'),undef, + $r->print(&Apache::loncommon::start_page('Construction Space',undef, {'body_title' => $pagetitle,})); } else { - $r->print(&Apache::loncommon::start_page(&mt('Construction Space'),undef, + $r->print(&Apache::loncommon::start_page('Construction Space',undef, { 'only_body' => 1,})); $r->print($pagetitle); } my $esc_thisdisfn = &Apache::loncommon::escape_single($thisdisfn); - my $doctitle=&mt('LON-CAPA Construction Space'); + my $doctitle = 'LON-CAPA '.&mt('Construction Space'); + my $newname = &mt('New Name'); my $pubdirscript=(< top.document.title = '$esc_thisdisfn/ - $doctitle'; @@ -314,7 +315,7 @@ parent.lastknownpriv='/~$uname$esc_thisd } function changename(theform,activity) { var oldname=theform.dispfilename.value; - var newname=prompt('New Name',oldname); + var newname=prompt('$newname',oldname); if (newname == "" || !newname || newname == oldname) { return } @@ -540,7 +541,7 @@ sub putdirectory { )); my $actionitem = ''; if ($dirname eq '..') { - $actionitem = 'Go to ...'; + $actionitem = &mt('Go to ...'); } else { $actionitem = '
'. - ($$bombs{$targetdir.'/'.$filename}?'bomb':'Edit Metadata').''; + ($$bombs{$targetdir.'/'.$filename}?''.&mt('bomb').'':&mt('Edit Metadata')).''; if (!$meta_same) { $title = &mt('Metadata Modified').'
'.$title.