Final fixes: now also the "Comment" button is translated

svn path=/plone.app.discussion/branches/localization-enabled/; revision=33354
This commit is contained in:
Luca Fabbri
2010-01-24 14:00:51 +00:00
parent a6a1904d3e
commit 677490a445
3 changed files with 19 additions and 10 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone import PloneMessageFactory as _
from plone.app.discussion.interfaces import _
from Products.statusmessages.interfaces import IStatusMessage
from plone.registry.interfaces import IRegistry
@@ -82,7 +82,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
# integrators or later use.
self.widgets['author_email'].mode = interfaces.HIDDEN_MODE
@button.buttonAndHandler(_(u"Comment"))
@button.buttonAndHandler(_(u"add_comment_button",default=u"Comment"), name='comment')
def handleComment(self, action):
context = aq_inner(self.context)
wf = getToolByName(context, 'portal_workflow')