[LON-CAPA-cvs] cvs: loncom /html/adm/helper parameter.helper
sakharuk
lon-capa-cvs@mail.lon-capa.org
Tue, 27 Apr 2004 15:14:56 -0000
sakharuk Tue Apr 27 11:14:56 2004 EDT
Modified files:
/loncom/html/adm/helper parameter.helper
Log:
Localization of warning messages is done.
Index: loncom/html/adm/helper/parameter.helper
diff -u loncom/html/adm/helper/parameter.helper:1.10 loncom/html/adm/helper/parameter.helper:1.11
--- loncom/html/adm/helper/parameter.helper:1.10 Wed Apr 21 14:32:56 2004
+++ loncom/html/adm/helper/parameter.helper Tue Apr 27 11:14:56 2004
@@ -102,7 +102,7 @@
</eval>
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT">
<validator>if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) {
- return &mt('"[_1]" is not an acceptable weight. Weight must be a positive number.',$element->getValue());
+ return '"'.$element->getValue().'" '.&mt('is not an acceptable weight. Weight must be a positive number.');
}
return undef;
</validator>
@@ -116,9 +116,7 @@
</eval>
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="TRIES">
<validator>if ($val !~ /^[1234567890]+$/) {
- return '"' . $element->getValue() . '" is not '.
- 'an acceptable number of tries. Tries must be a positive number ' .
- 'with no decimal point.';}
+ return '"' . $element->getValue() . '" '.&mt('is not an acceptable number of tries. Tries must be a positive number with no decimal point.');}
return undef;
</validator>
</string>