[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm /localize/localize de.pm
christianto
christianto at source.lon-capa.org
Mon Jul 25 08:02:49 EDT 2011
christianto Mon Jul 25 12:02:49 2011 EDT
Modified files:
/loncom/homework structuretags.pm
/loncom/localize/localize de.pm
Log:
further localization for word 'pt' or point when printing exam problem in PDF format
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.491 loncom/homework/structuretags.pm:1.492
--- loncom/homework/structuretags.pm:1.491 Thu Jul 21 09:18:40 2011
+++ loncom/homework/structuretags.pm Mon Jul 25 12:02:45 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.491 2011/07/21 09:18:40 christianto Exp $
+# $Id: structuretags.pm,v 1.492 2011/07/25 12:02:45 christianto Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1290,7 +1290,7 @@
} else {
$frontmatter.= $begin_doc.$toc_line;
if ($Apache::lonhomework::type eq 'exam' and $allow_print_points==1) {
- $frontmatter .= '\fbox{\textit{'.$weight.&mt(' pt').'}}';
+ $frontmatter .= '\fbox{\textit{'.&mt('[quant,_1,pt,pt]',$weight ).'}}';
}
}
} else {
@@ -1300,7 +1300,7 @@
if (not $env{'request.symb'} =~ m/\.page_/) {
$frontmatter .= $begin_doc.$toc_line;
if (($Apache::lonhomework::type eq 'exam') and ($allow_print_points==1)) {
- $frontmatter .= '\fbox{\textit{'.$weight.&mt(' pt').'}}';
+ $frontmatter .= '\fbox{\textit{'.&mt('[quant,_1,pt,pt]',$weight ).'}}';
}
} else {
$frontmatter .= '\vskip 1mm \\\\\\\\'.$startminipage;
@@ -1991,8 +1991,7 @@
$allow_print_points=0;
}
if (($Apache::lonhomework::type eq 'exam') && ($allow_print_points)) {
- $result .= '\vskip
-10mm\fbox{\textit{'.$weight.&mt(' pt').'}}';
+ $result .= '\vskip 10mm\fbox{\textit{'.&mt('[quant,_1,pt,pt]',$weight ).'}}';
}
} elsif ($target eq 'web') {
Index: loncom/localize/localize/de.pm
diff -u loncom/localize/localize/de.pm:1.423 loncom/localize/localize/de.pm:1.424
--- loncom/localize/localize/de.pm:1.423 Thu Jul 21 09:18:44 2011
+++ loncom/localize/localize/de.pm Mon Jul 25 12:02:49 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# German Localization Lexicon
#
-# $Id: de.pm,v 1.423 2011/07/21 09:18:44 christianto Exp $
+# $Id: de.pm,v 1.424 2011/07/25 12:02:49 christianto Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -21677,8 +21677,8 @@
'Question Type was [_1]not[_2] set to [_3].'
=> 'Aufgabentyp wurde [_1]nicht[_2] in [_3] geändert.',
- ' pt'
-=> ' pkt.',
+ '[quant,_1,pt,pt]'
+=> '[quant,_1,Pkt.,Pkt.]',
''
=> '',
More information about the LON-CAPA-cvs
mailing list