version 1.17, 2006/05/18 18:54:51
|
version 1.18, 2009/07/08 17:55:07
|
Line 104
|
Line 104
|
</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 &mt('" [_1] " is not an acceptable weight. Weight must be a positive number.',$element->getValue()); |
return &mt('[_1] is not an acceptable weight. Weight must be a positive number.','"'.$element->getValue().'"'); |
} |
} |
return undef; |
return undef; |
</validator> |
</validator> |
Line 118
|
Line 118
|
</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 &mt('" [_1] " is not an acceptable number of tries. Tries must be a positive number with no decimal point.',$element->getValue());} |
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> |