[LON-CAPA-cvs] cvs: loncom /interface lonhelper.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 21 Apr 2004 19:03:02 -0000


albertel		Wed Apr 21 15:03:02 2004 EDT

  Modified files:              
    /loncom/interface	lonhelper.pm 
  Log:
  - I think this might be more translatable
  
  
Index: loncom/interface/lonhelper.pm
diff -u loncom/interface/lonhelper.pm:1.72 loncom/interface/lonhelper.pm:1.73
--- loncom/interface/lonhelper.pm:1.72	Wed Apr 21 13:57:02 2004
+++ loncom/interface/lonhelper.pm	Wed Apr 21 15:03:02 2004
@@ -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 @@
     $result .= '<p>'.&mt('Confirm that this information is correct, then click &quot;Finish Helper&quot; to complete setting the parameter.').'<ul>';
     
     # Print the type of manipulation:
-    $result .= '<li>'.&mt('Setting the').' <b>' . &mt($dateTypeHash{$vars->{ACTION_TYPE}}) . '</b>';
+    my $extra;
     if ($vars->{ACTION_TYPE} eq 'tries') {
-	$result .= ' '.&mt('to').' <b>' . $vars->{TRIES} . '</b>';
+	$extra =  $vars->{TRIES};
     }
     if ($vars->{ACTION_TYPE} eq 'weight') {
-	$result .= ' '.&mt('to').' <b>' . $vars->{WEIGHT} . '</b>';
+	$extra =  $vars->{WEIGHT};
+    }
+    $result .= "<li>";
+    my $what = &mt($dateTypeHash{$vars->{ACTION_TYPE}}) 
+    if ($extra) {
+	$result .= &mt('Setting the [_1] to [_2]',"<b>$what</b>",$extra);
+    } else {
+	$result .= &mt('Setting the [_1]',"<b>$what</b>");
     }
     $result .= "</li>\n";
     if ($vars->{ACTION_TYPE} eq 'due_date' ||