--- loncom/interface/lonhelper.pm 2004/04/21 17:57:02 1.72
+++ loncom/interface/lonhelper.pm 2004/04/21 19:03:02 1.73
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# .helper XML handler to implement the LON-CAPA helper
#
-# $Id: lonhelper.pm,v 1.72 2004/04/21 17:57:02 sakharuk Exp $
+# $Id: lonhelper.pm,v 1.73 2004/04/21 19:03:02 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3157,12 +3157,19 @@ sub render {
$result .= '
'.&mt('Confirm that this information is correct, then click "Finish Helper" to complete setting the parameter.').'
';
# Print the type of manipulation:
- $result .= '- '.&mt('Setting the').' ' . &mt($dateTypeHash{$vars->{ACTION_TYPE}}) . '';
+ my $extra;
if ($vars->{ACTION_TYPE} eq 'tries') {
- $result .= ' '.&mt('to').' ' . $vars->{TRIES} . '';
+ $extra = $vars->{TRIES};
}
if ($vars->{ACTION_TYPE} eq 'weight') {
- $result .= ' '.&mt('to').' ' . $vars->{WEIGHT} . '';
+ $extra = $vars->{WEIGHT};
+ }
+ $result .= "
- ";
+ my $what = &mt($dateTypeHash{$vars->{ACTION_TYPE}})
+ if ($extra) {
+ $result .= &mt('Setting the [_1] to [_2]',"$what",$extra);
+ } else {
+ $result .= &mt('Setting the [_1]',"$what");
}
$result .= "
\n";
if ($vars->{ACTION_TYPE} eq 'due_date' ||