[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 08 Dec 2003 18:26:02 -0000
sakharuk Mon Dec 8 13:26:02 2003 EDT
Modified files:
/loncom/publisher lonpublisher.pm
Log:
Added some localization statements.
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.145 loncom/publisher/lonpublisher.pm:1.146
--- loncom/publisher/lonpublisher.pm:1.145 Sat Nov 8 06:20:22 2003
+++ loncom/publisher/lonpublisher.pm Mon Dec 8 13:26:01 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Publication Handler
#
-# $Id: lonpublisher.pm,v 1.145 2003/11/08 11:20:22 albertel Exp $
+# $Id: lonpublisher.pm,v 1.146 2003/12/08 18:26:01 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -267,7 +267,7 @@
my ($logfile,$fn,$prefix)=@_;
unless (-e $fn) {
print($logfile 'No file '.$fn."\n");
- return '<br /><b>No file:</b> <tt>'.
+ return '<br /><b>'.&mt('No file').':</b> <tt>'.
&Apache::loncfile::display($fn).'</tt>';
}
print($logfile 'Processing '.$fn."\n");
@@ -892,7 +892,7 @@
if ($error) { return ($outstring,$error); }
# ------------------------------------------------------------ Construct Allows
- $scrout.='<h3>Dependencies</h3>';
+ $scrout.='<h3>'.&mt('Dependencies').'</h3>';
my $allowstr='';
foreach (sort(keys(%allow))) {
my $thisdep=$_;
@@ -1087,7 +1087,7 @@
unless ($batch) {
$scrout.=
'<form name="pubform" action="/adm/publish" method="post">'.
- '<p><input type="submit" value="Finalize Publication" /></p>'.
+ '<p><input type="submit" value="'.&mt('Finalize Publication').'" /></p>'.
&hiddenfield('phase','two').
&hiddenfield('filename',$ENV{'form.filename'}).
&hiddenfield('allmeta',&Apache::lonnet::escape($allmeta)).
@@ -1099,6 +1099,9 @@
# --------------------------------------------------- Scan content for keywords
my $keywords_help = Apache::loncommon::help_open_topic("Publishing_Keywords");
+ my $KEYWORDS=&mt('KEYWORDS');
+ my $CheckAll=&mt('check all');
+ my $UncheckAll=&mt('uncheck all');
my $keywordout=<<"END";
<script>
function checkAll(field) {
@@ -1111,10 +1114,10 @@
field[i].checked = false ;
}
</script>
-<p><font color="#800000" face="helvetica"><b>KEYWORDS:</b></font>
+<p><font color="#800000" face="helvetica"><b>$KEYWORDS:</b></font>
$keywords_help</b>
-<input type="button" value="check all" onclick="javascript:checkAll(document.pubform.keywords)" />
-<input type="button" value="uncheck all" onclick="javascript:uncheckAll(document.pubform.keywords)" />
+<input type="button" value="$CheckAll" onclick="javascript:checkAll(document.pubform.keywords)" />
+<input type="button" value="$UncheckAll" onclick="javascript:uncheckAll(document.pubform.keywords)" />
</p>
<br />
END
@@ -1147,7 +1150,7 @@
$scrout.=&textfield('Notes','notes',$metadatafields{'notes'});
$scrout.=
- "\n<p><font color=\"#800000\" face=\"helvetica\"><b>ABSTRACT:".
+ "\n<p><font color=\"#800000\" face=\"helvetica\"><b>".&mt('ABSTRACT').":".
"</b></font></p><br />".
'<textarea cols="80" rows="5" name="abstract">'.
$metadatafields{'abstract'}.'</textarea></p>';