web/formwidgets.py
changeset 9718 927d035b6921
parent 9716 c44224387028
child 9821 2077c8da1893
--- a/web/formwidgets.py	Mon Apr 14 23:00:19 2014 +0200
+++ b/web/formwidgets.py	Tue Jan 07 15:10:57 2014 +0100
@@ -210,6 +210,8 @@
             attrs['id'] = field.dom_id(form, self.suffix)
         if self.settabindex and not 'tabindex' in attrs:
             attrs['tabindex'] = form._cw.next_tabindex()
+        if 'placeholder' in attrs:
+            attrs['placeholder'] = form._cw._(attrs['placeholder'])
         return attrs
 
     def values(self, form, field):