--- loncom/publisher/lonpubdir.pm 2007/11/02 19:24:44 1.105 +++ 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.105 2007/11/02 19:24:44 albertel Exp $ +# $Id: lonpubdir.pm,v 1.110 2008/08/08 10:08:48 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)."
". @@ -217,9 +217,11 @@ sub startpage { } my $esc_thisdisfn = &Apache::loncommon::escape_single($thisdisfn); + my $doctitle = 'LON-CAPA '.&mt('Construction Space'); + my $newname = &mt('New Name'); 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/'; @@ -313,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 } @@ -369,6 +371,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 +432,7 @@ sub dircontrols { -    +    @@ -538,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.
'.&mt('Type').''.&mt('Actions').'