[LON-CAPA-cvs] cvs: loncom /publisher lonpubdir.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Thu, 17 Jan 2008 04:51:02 -0000
raeburn Wed Jan 16 23:51:02 2008 EDT
Modified files:
/loncom/publisher lonpubdir.pm
Log:
- loncommon::start_page() does its own &mt() on the title passed to it as the first argument.
- $doctitle - change &mt() to reuse existing translation.
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.107 loncom/publisher/lonpubdir.pm:1.108
--- loncom/publisher/lonpubdir.pm:1.107 Wed Jan 16 13:15:15 2008
+++ loncom/publisher/lonpubdir.pm Wed Jan 16 23:50:57 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construction Space Directory Lister
#
-# $Id: lonpubdir.pm,v 1.107 2008/01/16 18:15:15 bisitz Exp $
+# $Id: lonpubdir.pm,v 1.108 2008/01/17 04:50:57 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -207,17 +207,17 @@
&Apache::lonhtmlcommon::store_recent('construct',$formaction,$formaction);
if ($env{'environment.remote'} eq 'off') {
$env{'request.noversionuri'}=$currdir.'/';
- $r->print(&Apache::loncommon::start_page(&mt('Construction Space'),undef,
+ $r->print(&Apache::loncommon::start_page('Construction Space',undef,
{'body_title' =>
$pagetitle,}));
} else {
- $r->print(&Apache::loncommon::start_page(&mt('Construction Space'),undef,
+ $r->print(&Apache::loncommon::start_page('Construction Space',undef,
{ 'only_body' => 1,}));
$r->print($pagetitle);
}
my $esc_thisdisfn = &Apache::loncommon::escape_single($thisdisfn);
- my $doctitle=&mt('LON-CAPA Construction Space');
+ my $doctitle = 'LON-CAPA '.&mt('Construction Space');
my $pubdirscript=(<<ENDPUBDIRSCRIPT);
<script type="text/javascript">
top.document.title = '$esc_thisdisfn/ - $doctitle';