[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm /localize/localize de.pm
bisitz
bisitz@source.lon-capa.org
Tue, 02 Jun 2009 12:37:44 -0000
bisitz Tue Jun 2 12:37:44 2009 EDT
Modified files:
/loncom/localize/localize de.pm
/loncom/homework structuretags.pm
Log:
Localized due date and corresponding text for print outs
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.306 loncom/localize/localize/de.pm:1.307
--- loncom/localize/localize/de.pm:1.306 Thu May 28 14:30:09 2009
+++ loncom/localize/localize/de.pm Tue Jun 2 12:37:39 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# German Localization Lexicon
#
-# $Id: de.pm,v 1.306 2009/05/28 14:30:09 bisitz Exp $
+# $Id: de.pm,v 1.307 2009/06/02 12:37:39 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -5420,6 +5420,9 @@
'Duedate'
=> 'Fälligkeitsdatum',
+ 'Due date: [_1]'
+=> 'Fällig am [_1]',
+
'Each post can be toggled read/unread'
=> 'Jeder Diskussionsbeitrag kann zwischen als gelesen und als ungelesen umgeschaltet werden',
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.447 loncom/homework/structuretags.pm:1.448
--- loncom/homework/structuretags.pm:1.447 Thu May 28 12:39:17 2009
+++ loncom/homework/structuretags.pm Tue Jun 2 12:37:44 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.447 2009/05/28 12:39:17 bisitz Exp $
+# $Id: structuretags.pm,v 1.448 2009/06/02 12:37:44 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1074,6 +1074,8 @@
my $duetime = &Apache::lonnet::EXT("resource.$id.duedate");
my $duedate = POSIX::strftime("%c",localtime($duetime));
+ my $duedate_text = &mt('Due date: [_1]'
+ ,&Apache::lonlocal::locallocaltime($duetime));
my $temp_file;
my $filename = "/home/httpd/prtspool/$env{'user.name'}_$env{'user.domain'}_printout.due";
@@ -1105,13 +1107,13 @@
if (not $env{'request.symb'} =~ m/\.page_/) {
if(not $duedate=~m/1969/ and $Apache::lonhomework::type ne 'exam') {
$frontmatter .= $begin_doc.
- '\textit{Due date: '.$duedate.'} '.$toc_line;
+ '\textit{'.$duedate_text.'} '.$toc_line;
} else {
$frontmatter.= $begin_doc.$toc_line;
if ($Apache::lonhomework::type eq 'exam' and $allow_print_points==1) { $frontmatter .= '\fbox{\textit{'.$weight.' pt}}';}
}
} else {
- $frontmatter .= '\vskip 1mm\textit{Due date: '.$duedate.'} \\\\\\\\'.$startminipage;
+ $frontmatter .= '\vskip 1mm\textit{'.$duedate_text.'} \\\\\\\\'.$startminipage;
}
} else {
if (not $env{'request.symb'} =~ m/\.page_/) {