version 1.11, 2004/04/27 15:14:56
|
version 1.12, 2004/04/27 17:58:35
|
Line 102
|
Line 102
|
</eval> |
</eval> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT"> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT"> |
<validator>if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) { |
<validator>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; |
return undef; |
</validator> |
</validator> |
Line 116
|
Line 116
|
</eval> |
</eval> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="TRIES"> |
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="TRIES"> |
<validator>if ($val !~ /^[1234567890]+$/) { |
<validator>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; |
return undef; |
</validator> |
</validator> |
</string> |
</string> |