--- loncom/publisher/lonpubdir.pm 2007/11/02 19:24:44 1.105 +++ loncom/publisher/lonpubdir.pm 2008/01/16 12:08:04 1.106 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.105 2007/11/02 19:24:44 albertel Exp $ +# $Id: lonpubdir.pm,v 1.106 2008/01/16 12:08:04 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -105,7 +105,7 @@ sub handler { my $numres = 0; # Start off the directory table. - $r->print('

Directory Contents:

'); + $r->print('

'.&mt('Directory Contents:').'

'); $r->print(''. ''. ''. @@ -197,7 +197,7 @@ sub startpage { my $formaction='/priv/'.$uname.$thisdisfn.'/'; $formaction=~s|/+|/|g; my $pagetitle .= &Apache::loncommon::help_open_menu('','',3,'Authoring'). - 'Construction Space: '. + ''.&mt('Construction Space').': '. ''. &Apache::lonhtmlcommon::crumbs($uname.$thisdisfn.'/','_top','/priv','','+1',1)."
". @@ -207,11 +207,11 @@ 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('Construction Space',undef, + $r->print(&Apache::loncommon::start_page(&mt('Construction Space'),undef, {'body_title' => $pagetitle,})); } else { - $r->print(&Apache::loncommon::start_page('Construction Space',undef, + $r->print(&Apache::loncommon::start_page(&mt('Construction Space'),undef, { 'only_body' => 1,})); $r->print($pagetitle); } @@ -219,7 +219,7 @@ sub startpage { my $esc_thisdisfn = &Apache::loncommon::escape_single($thisdisfn); my $pubdirscript=(< -top.document.title = '$esc_thisdisfn/ - LON-CAPA Construction Space'; +top.document.title = '$esc_thisdisfn/ - '.&mt('LON-CAPA Construction Space'); // Store directory location for menu bar to find parent.lastknownpriv='/~$uname$esc_thisdisfn/'; @@ -369,6 +369,7 @@ sub dircontrols { updc => 'Upload a new document', pick => 'Please select an action to perform using the new filename', ); + my $mytype = $lt{'type'}; # avoid conflict with " and ' in javascript $r->print(< @@ -429,7 +430,7 @@ sub dircontrols { -    +   
'.&mt('Type').''.&mt('Actions').'