--- loncom/publisher/lonpubdir.pm 2007/10/18 21:58:21 1.104 +++ loncom/publisher/lonpubdir.pm 2008/01/17 04:50:57 1.108 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construction Space Directory Lister # -# $Id: lonpubdir.pm,v 1.104 2007/10/18 21:58:21 albertel Exp $ +# $Id: lonpubdir.pm,v 1.108 2008/01/17 04:50:57 raeburn 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)."
". @@ -217,9 +217,10 @@ sub startpage { } my $esc_thisdisfn = &Apache::loncommon::escape_single($thisdisfn); + my $doctitle = 'LON-CAPA '.&mt('Construction Space'); my $pubdirscript=(< -top.document.title = '$esc_thisdisfn/ - LON-CAPA Construction Space'; +top.document.title = '$esc_thisdisfn/ - $doctitle'; // Store directory location for menu bar to find parent.lastknownpriv='/~$uname$esc_thisdisfn/'; @@ -362,12 +363,14 @@ sub dircontrols { move => 'Move current file to', copy => 'Copy current file to', type => 'Type Name Here', - go => 'Go', + go => 'Go', prnt => 'Print contents of directory', crea => 'Create a new directory or LON-CAPA document', acti => 'Actions for current directory', - updc => 'Upload a new document' + 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(< @@ -406,19 +409,29 @@ sub dircontrols { -    + +   
'.&mt('Type').''.&mt('Actions').'