diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index fabd721..80acbb3 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -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') diff --git a/plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po b/plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po index 8f87693..29e9628 100644 --- a/plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po +++ b/plone/app/discussion/locales/it/LC_MESSAGES/plone.app.discussion.po @@ -2,18 +2,18 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-01-24 12:55+0000\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" +"POT-Creation-Date: 2010-01-24 13:53+0000\n" +"PO-Revision-Date: 2010-01-24 14:59+0000\n" "Last-Translator: Luca Fabbri \n" "Language-Team: RedTurtle Technology \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0\n" -"Language-Code: en\n" -"Language-Name: English\n" +"Language-Code: it\n" +"Language-Name: Italian\n" "Preferred-Encodings: utf-8 latin1\n" -"Domain: DOMAIN\n" +"Domain: plone.app.discussion\n" #: ./interfaces.py:165 msgid "A comment id unique to this conversation" @@ -43,7 +43,6 @@ msgstr "Annulla" msgid "Captcha" msgstr "" -#: ./browser/comments.py:85 #: ./interfaces.py:178 #: ./profiles/default/types/Discussion_Item.xml msgid "Comment" @@ -217,6 +216,11 @@ msgstr "" msgid "Your comment awaits moderator approval." msgstr "Il tuo commento รจ in attesa di approvazione" +#. Default: "Comment" +#: ./browser/comments.py:85 +msgid "add_comment_button" +msgstr "Commenta" + #. Default: "Delete" #: ./browser/moderation.pt:52 msgid "bulkactions_delete" @@ -319,3 +323,4 @@ msgstr "Azioni in blocco" #: ./browser/moderation.pt:21 msgid "title_review" msgstr "Moderazione dei commenti" + diff --git a/plone/app/discussion/locales/plone.app.discussion.pot b/plone/app/discussion/locales/plone.app.discussion.pot index 90d0f3d..9c268dd 100644 --- a/plone/app/discussion/locales/plone.app.discussion.pot +++ b/plone/app/discussion/locales/plone.app.discussion.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-01-24 12:55+0000\n" +"POT-Creation-Date: 2010-01-24 13:53+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -45,7 +45,6 @@ msgstr "" msgid "Captcha" msgstr "" -#: ./browser/comments.py:85 #: ./interfaces.py:178 #: ./profiles/default/types/Discussion_Item.xml msgid "Comment" @@ -219,6 +218,11 @@ msgstr "" msgid "Your comment awaits moderator approval." msgstr "" +#. Default: "Comment" +#: ./browser/comments.py:85 +msgid "add_comment_button" +msgstr "" + #. Default: "Delete" #: ./browser/moderation.pt:52 msgid "bulkactions_delete"