[LON-CAPA-cvs] cvs: loncom /html/adm/helper parameter.helper
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 21 Apr 2004 18:32:56 -0000
albertel Wed Apr 21 14:32:56 2004 EDT
Modified files:
/loncom/html/adm/helper parameter.helper
Log:
- trying to i8nl some errormessages
Index: loncom/html/adm/helper/parameter.helper
diff -u loncom/html/adm/helper/parameter.helper:1.9 loncom/html/adm/helper/parameter.helper:1.10
--- loncom/html/adm/helper/parameter.helper:1.9 Tue Apr 20 14:15:55 2004
+++ loncom/html/adm/helper/parameter.helper Wed Apr 21 14:32:56 2004
@@ -102,8 +102,8 @@
</eval>
<string nextstate="CHOOSE_STUDENT_LEVEL" variable="WEIGHT">
<validator>if ($val !~ /^[1234567890]+(\.[1234567890]+)?$/) {
- return '"' . $element->getValue() . '" 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>
</string>