[Zope3-checkins] SVN: Zope3/trunk/src/zope/formlib/form.py fixed a bug releated to I18N on "add" and "apply" button.

Ryosuke Komatsu komatsu at zope.co.jp
Wed Nov 9 15:50:12 EST 2005


Log message for revision 40010:
  fixed a bug releated to I18N on "add" and "apply" button.
  

Changed:
  U   Zope3/trunk/src/zope/formlib/form.py

-=-
Modified: Zope3/trunk/src/zope/formlib/form.py
===================================================================
--- Zope3/trunk/src/zope/formlib/form.py	2005-11-09 19:56:21 UTC (rev 40009)
+++ Zope3/trunk/src/zope/formlib/form.py	2005-11-09 20:50:12 UTC (rev 40010)
@@ -586,7 +586,7 @@
         return ''
     label = self.label
     if isinstance(label, (zope.i18n.Message, zope.i18n.MessageID)):
-        label = zope.i18n.translate(self.label, self.form.request)
+        label = zope.i18n.translate(self.label, context=self.form.request)
     return ('<input type="submit" id="%s" name="%s" value="%s"'
             ' class="button" />' %
             (self.__name__, self.__name__, label)



More information about the Zope3-Checkins mailing list