[LON-CAPA-cvs] cvs: loncom /interface lonrequestcourse.pm
wenzelju
wenzelju@source.lon-capa.org
Mon, 08 Mar 2010 13:42:19 -0000
wenzelju Mon Mar 8 13:42:19 2010 EDT
Modified files:
/loncom/interface lonrequestcourse.pm
Log:
- Inserted texthash and &mt() for translation.
- Corrected pick_box-call.
Index: loncom/interface/lonrequestcourse.pm
diff -u loncom/interface/lonrequestcourse.pm:1.45 loncom/interface/lonrequestcourse.pm:1.46
--- loncom/interface/lonrequestcourse.pm:1.45 Thu Feb 25 08:18:32 2010
+++ loncom/interface/lonrequestcourse.pm Mon Mar 8 13:42:18 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Request a course
#
-# $Id: lonrequestcourse.pm,v 1.45 2010/02/25 08:18:32 raeburn Exp $
+# $Id: lonrequestcourse.pm,v 1.46 2010/03/08 13:42:18 wenzelju Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -773,7 +773,7 @@
<option value="view">'.&mt('View/Modify/Cancel pending requests').'</option>
<option value="log">'.&mt('View request history').'</option>
</select></form>'.
- &Apache::lonhtmlcommon::row_closure(1).
+ &Apache::lonhtmlcommon::row_closure().
&Apache::lonhtmlcommon::row_title(&mt('Type')).'
<form name="mainmenu_coursetype" method="post" action="">
<select size="1" name="crstype">');
@@ -1690,10 +1690,10 @@
}
$table = &Apache::lonhtmlcommon::row_title(&Apache::loncommon::help_open_topic($help_item{$prefix}{'start'}).
- ' '.$datetitles{'start'}).$startform.
+ ' '.&mt($datetitles{'start'})).$startform.
&Apache::lonhtmlcommon::row_closure(1).
&Apache::lonhtmlcommon::row_title(&Apache::loncommon::help_open_topic($help_item{$prefix}{'end'}).
- ' '.$datetitles{'end'}).$endform.$perpetual.
+ ' '.&mt($datetitles{'end'})).$endform.$perpetual.
&Apache::lonhtmlcommon::row_closure($closure);
return $table;
}
@@ -2419,6 +2419,8 @@
&Apache::lonhtmlcommon::row_closure().
&Apache::lonhtmlcommon::row_headline().
'<h3>'.&Apache::loncommon::help_open_topic('Course_Request_Clone').' '.$clonetitle.
+ &Apache::lonhtmlcommon::row_closure(1).
+ &Apache::lonhtmlcommon::row_title(&mt('Clone?')).
'<label><input type="radio" name="cloning" value="1" '.
'onclick="javascript:toggleCloning()" />'.
&mt('Yes').(' 'x2).'</label><label>'.
@@ -2476,7 +2478,7 @@
sub coursecode_form {
my ($dom,$context,$codetitles,$cat_titles,$cat_order,$num) = @_;
my $output;
- my %rowtitle = (
+ my %rowtitle = &Apache::lonlocal::texthash (
instcode => 'Course Category',
crosslist => 'Cross Listed Course',
);