[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm lonrss.pm lonwhatsnew.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Sat, 03 Jun 2006 21:05:06 -0000
albertel Sat Jun 3 17:05:06 2006 EDT
Modified files:
/loncom/interface loncreatecourse.pm lonwhatsnew.pm lonrss.pm
Log:
-start_page &mt() the title auto-magically for you
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.90 loncom/interface/loncreatecourse.pm:1.91
--- loncom/interface/loncreatecourse.pm:1.90 Tue May 30 16:05:05 2006
+++ loncom/interface/loncreatecourse.pm Sat Jun 3 17:05:04 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.90 2006/05/30 20:05:05 raeburn Exp $
+# $Id: loncreatecourse.pm,v 1.91 2006/06/03 21:05:04 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -426,10 +426,10 @@
&Apache::loncommon::start_page($titles{$env{'form.phase'}},$js);
my $end_page =
&Apache::loncommon::end_page();
- my $type = $crstype;
- my $crumbs = &Apache::lonhtmlcommon::breadcrumbs(&mt('[_1] Information',
- $type),'Create_Course',
- undef,'Create_Courses');
+ my $crumbs =
+ &Apache::lonhtmlcommon::breadcrumbs($crstype.' Information',
+ 'Create_Course',undef,
+ 'Create_Courses');
$r->print($start_page.$crumbs);
if ($crstype eq 'Course') {
$r->print(<<ENDDOCUMENT);
@@ -802,7 +802,7 @@
}
}
my $logmsg;
- my $start_page=&Apache::loncommon::start_page(&mt('Create a New [_1]',$crstype));
+ my $start_page=&Apache::loncommon::start_page('Create a New '.$crstype);
my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('Creation Outcome','Create_Course',undef,'Create_Courses');
$r->print($start_page.$crumbs);
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.57 loncom/interface/lonwhatsnew.pm:1.58
--- loncom/interface/lonwhatsnew.pm:1.57 Wed May 31 10:25:02 2006
+++ loncom/interface/lonwhatsnew.pm Sat Jun 3 17:05:04 2006
@@ -1,5 +1,5 @@
#
-# $Id: lonwhatsnew.pm,v 1.57 2006/05/31 14:25:02 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.58 2006/06/03 21:05:04 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -228,8 +228,9 @@
</script>
';
}
- return &Apache::loncommon::start_page(&mt('[_1] Action Items',
- $env{'course.'.$env{'request.course.id'}.'.type'}),$scripttag);
+ my $course_type=&Apache::loncommon::course_type();
+ return &Apache::loncommon::start_page($course_type.' Action Items',
+ $scripttag);
}
#-------------------------------
Index: loncom/interface/lonrss.pm
diff -u loncom/interface/lonrss.pm:1.24 loncom/interface/lonrss.pm:1.25
--- loncom/interface/lonrss.pm:1.24 Fri Jun 2 06:02:37 2006
+++ loncom/interface/lonrss.pm Sat Jun 3 17:05:04 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network
# RSS Feeder
#
-# $Id: lonrss.pm,v 1.24 2006/06/02 10:02:37 www Exp $
+# $Id: lonrss.pm,v 1.25 2006/06/03 21:05:04 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -241,7 +241,9 @@
my $feedname=&feedname($filename);
my ($displayfeedname,$displayoption)=&displayfeedname($filename,$uname,$udom);
if ($html) {
- $r->print(&Apache::loncommon::start_page(($displayfeedname?$displayfeedname:&mt("Available RSS Feeds and Blogs")),undef,
+ my $title = $displayfeedname?$displayfeedname
+ :"Available RSS Feeds and Blogs";
+ $r->print(&Apache::loncommon::start_page($title,undef
{'domain' => $udom,
'force_register' =>
$env{'form.register'}}).