[LON-CAPA-cvs] cvs: loncom /html/adm/helper parameter.helper
sakharuk
lon-capa-cvs@mail.lon-capa.org
Tue, 27 Apr 2004 17:58:35 -0000
sakharuk Tue Apr 27 13:58:35 2004 EDT
Modified files:
/loncom/html/adm/helper parameter.helper
Log:
Restored the whole warning message (with parameter).
Index: loncom/html/adm/helper/parameter.helper
diff -u loncom/html/adm/helper/parameter.helper:1.11 loncom/html/adm/helper/parameter.helper:1.12
--- loncom/html/adm/helper/parameter.helper:1.11 Tue Apr 27 11:14:56 2004
+++ loncom/html/adm/helper/parameter.helper Tue Apr 27 13:58:35 2004
@@ -102,7 +102,7 @@
</eval>
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT">
<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;
</validator>
@@ -116,7 +116,7 @@
</eval>
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="TRIES">
<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;
</validator>
</string>