- This helper will assist you in setting the open,
- due, and answer dates for problems, or in
- setting the number of tries for problems.
+
+ This helper will assist you in setting the open, due,
+ and answer dates for problems, setting the problem
+ weights, or in setting the number of tries for
+ problems.
You will be asked to select which problems you wish to
set the parameters for, then what parameter you
@@ -73,7 +75,7 @@
Select the problem you wish to set the parameter for:
-
+
CHOOSE_ACTION
return $res->is_map || $res->is_problem()
return $res->is_problem()
@@ -102,7 +104,7 @@
if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) {
- return '"'.$element->getValue().'" '.&mt('is not an acceptable weight. Weight must be a positive number.');
+ return &mt('" [_1] " is not an acceptable weight. Weight must be a positive number.',$element->getValue());
}
return undef;
@@ -116,7 +118,7 @@
if ($val !~ /^[1234567890]+$/) {
- return '"' . $element->getValue() . '" '.&mt('is not an acceptable number of tries. Tries must be a positive number with no decimal point.');}
+ return &mt('" [_1] " is not an acceptable number of tries. Tries must be a positive number with no decimal point.',$element->getValue());}
return undef;