Ignore:
Timestamp:
24 Feb 2012, 23:04:05 (13 years ago)
Author:
Henrik Bettermann
Message:

More translations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py

    r7649 r7700  
    2424from grokcore.formlib.formlib import Action
    2525from cgi import escape
     26from zope.i18n import translate
    2627from zope.i18nmessageid import Message
    2728from hurry.resource import mode
     
    7071        label = self.label
    7172        if isinstance(label, Message):
    72             label = zope.i18n.translate(self.label, context=self.form.request)
     73            label = translate(self.label, context=self.form.request)
    7374        return ('<input type="submit" id="%s" name="%s" value="%s"'
    7475                ' class="btn %s"/>' %
     
    9293        label = self.label
    9394        if isinstance(label, Message):
    94             label = zope.i18n.translate(self.label, context=self.form.request)
     95            label = translate(self.label, context=self.form.request)
    9596        return ('<input type="submit" id="%s" name="%s" value="%s"'
    9697                ' class="btn" onclick="return confirmPost(%s)" />' %
Note: See TracChangeset for help on using the changeset viewer.