web/application.py
changeset 8556 bbe0d6985e59
parent 8470 a85e107947e6
child 8560 fef0b8214fcf
--- a/web/application.py	Tue Sep 11 22:32:01 2012 +0200
+++ b/web/application.py	Mon Sep 17 17:48:55 2012 +0200
@@ -511,7 +511,7 @@
         return ''
 
     def validation_error_handler(self, req, ex):
-        ex.errors = dict((k, v) for k, v in ex.errors.items())
+        ex.tr(req._) # translate messages using ui language
         if '__errorurl' in req.form:
             forminfo = {'error': ex,
                         'values': req.form,