merge r33351-r33355 from localization-enabled branch with current trunk.

svn path=/plone.app.discussion/trunk/; revision=33384
This commit is contained in:
Timo Stollenwerk 2010-01-24 19:46:14 +00:00
commit c96cafca18
8 changed files with 1010 additions and 35 deletions

View File

@ -87,7 +87,7 @@
<div class="commentActions">
<button class="context reply-to-comment-button hide allowMultiSubmit"
tal:condition="python:userHasReplyPermission and isDiscussionAllowed or isAnonymousDiscussionAllowed"
i18n:translate="label_reply;">
i18n:translate="label_reply">
Reply
</button>
@ -118,6 +118,7 @@
class="context"
type="submit"
tal:attributes="value action/title"
i18n:attributes="value"
/>
</form>

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')

View File

@ -14,17 +14,15 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
schema = IDiscussionSettings
label = _(u"Discussion settings")
description = _(u"""Some discussion related settings are not located
in the Discussion Control Panel.
To enable comments for a specific content type,
go to the Types Control Panel of this type and
choose 'enable moderation'.
To enable the moderation workflow for comments,
go to the Types Control Panel, choose "Comment"
and set workflow to "Comment Review Workflow".
""")
description = _(u"help_discussion_settings_editform",
default=u"Some discussion related settings are not located "
"in the Discussion Control Panel.\n"
"To enable comments for a specific content type, "
"go to the Types Control Panel of this type and "
"choose 'enable moderation'.\n"
"To enable the moderation workflow for comments, "
"go to the Types Control Panel, choose \"Comment\" "
"and set workflow to \"Comment Review Workflow\".")
def updateFields(self):
super(DiscussionSettingsEditForm, self).updateFields()
@ -34,9 +32,9 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
def updateWidgets(self):
super(DiscussionSettingsEditForm, self).updateWidgets()
self.widgets['globally_enabled'].label = u"Enable Comments"
self.widgets['anonymous_comments'].label = u"Anonymous Comments"
self.widgets['show_commenter_image'].label = u"Commenter Image"
self.widgets['globally_enabled'].label = _(u"Enable Comments")
self.widgets['anonymous_comments'].label = _(u"Anonymous Comments")
self.widgets['show_commenter_image'].label = _(u"Commenter Image")
class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper):

View File

@ -17,36 +17,41 @@ class IDiscussionSettings(Interface):
# - Types control panel: Allow comments on content types
# - Search control panel: Show comments in search results
globally_enabled = schema.Bool(title=_(u"Globally enable comments"),
description=_(u"""If selected, users are able to
post comments on the site."""),
globally_enabled = schema.Bool(title=_(u"label_globally_enabled",
default=u"Globally enable comments"),
description=_(u"help_globally_enabled",
default=u"If selected, users are able to "
"post comments on the site."),
required=False,
default=True)
anonymous_comments = schema.Bool(title=_(u"Enable anonymous comments"),
description=_(u"""If selected, anonymous users are
able to post comments without
logging in. It is highly
recommended to use a captcha
solution to prevent spam if
this setting is enabled."""),
description=_(u"help_anonymous_comments",
default=u"If selected, anonymous users are "
"able to post comments without "
"logging in. It is highly "
"recommended to use a captcha "
"solution to prevent spam if "
"this setting is enabled."),
required=False,
default=False)
captcha = schema.Choice(title=_(u"Captcha"),
description=_(u"""Use this setting to enable or disable
captcha validation for comments. If no
captcha options are currently available,
install plone.formwidget.captcha or
plone.formwidget.recaptcha."""),
description=_(u"help_captcha",
default=u"Use this setting to enable or disable "
"captcha validation for comments. If no "
"captcha options are currently available, "
"install plone.formwidget.captcha or "
"plone.formwidget.recaptcha."),
required=True,
default='disabled',
vocabulary='plone.app.discussion.vocabularies.CaptchaVocabulary',)
show_commenter_image = schema.Bool(title=_(u"Show commenter image"),
description=_(u"""If selected, an image of the
user is shown next to the
comment."""),
description=_(u"help_show_commenter_image",
default=u"If selected, an image of the "
"user is shown next to the "
"comment."),
required=False,
default=True)

View File

@ -0,0 +1,322 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2010-01-24 19:38+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: DOMAIN\n"
#: ./interfaces.py:165
msgid "A comment id unique to this conversation"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "A simple workflow for comments"
msgstr ""
#: ./browser/comments.py:59
msgid "Add a comment"
msgstr ""
#: ./browser/controlpanel.py:36
msgid "Anonymous Comments"
msgstr ""
#: ./interfaces.py:180
msgid "Author name (for display)"
msgstr ""
#: ./browser/comments.py:177
msgid "Cancel"
msgstr ""
#: ./interfaces.py:39
msgid "Captcha"
msgstr ""
#: ./interfaces.py:178
#: ./profiles/default/types/Discussion_Item.xml
msgid "Comment"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Comment Review Workflow"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Comment about the last transition"
msgstr ""
#: ./browser/moderation.py:87
msgid "Comment deleted."
msgstr ""
#: ./browser/moderation.py:109
msgid "Comment published."
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Commentators"
msgstr ""
#: ./browser/controlpanel.py:37
msgid "Commenter Image"
msgstr ""
#: ./profiles/default/types/Discussion_Item.xml
msgid "Comments added to a content item."
msgstr ""
#: ./interfaces.py:162
msgid "Conversation"
msgstr ""
#: ./interfaces.py:181
msgid "Creation date"
msgstr ""
#: ./interfaces.py:80
msgid "Date of the most recent comment"
msgstr ""
#: ./vocabularies.py:30
msgid "Disabled"
msgstr ""
#: ./profiles/default/controlpanel.xml
msgid "Discussion"
msgstr ""
#: ./browser/controlpanel.py:16
msgid "Discussion settings"
msgstr ""
#: ./interfaces.py:173
msgid "Email"
msgstr ""
#: ./browser/controlpanel.py:35
msgid "Enable Comments"
msgstr ""
#: ./interfaces.py:28
msgid "Enable anonymous comments"
msgstr ""
#: ./interfaces.py:166
msgid "Id of comment this comment is in reply to"
msgstr ""
#: ./interfaces.py:177
msgid "MIME type"
msgstr ""
#: ./profiles/default/actions.xml
msgid "Moderate comments"
msgstr ""
#: ./interfaces.py:182
msgid "Modification date"
msgstr ""
#: ./interfaces.py:163
msgid "Name"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Pending"
msgstr ""
#: ./interfaces.py:160
msgid "Portal type"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Previous transition"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Provides access to workflow history"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Publish"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Published"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Publishing the comment makes it visible to other users."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Reviewer publishes content"
msgstr ""
#: ./interfaces.py:50
msgid "Show commenter image"
msgstr ""
#: ./interfaces.py:175
msgid "Subject"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Submitted, pending review."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "The ID of the user who performed the previous transition"
msgstr ""
#: ./browser/validator.py:28
msgid "The code you entered was wrong, please enter the new one."
msgstr ""
#: ./interfaces.py:81
msgid "The set of unique commentators (usernames)"
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Total number of comments"
msgstr ""
#: ./interfaces.py:79
msgid "Total number of comments on this item"
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Total number of comments on this item."
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Users who have commented on the item"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Visible to everyone, non-editable."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "When the previous transition was performed"
msgstr ""
#: ./browser/comments.py:170
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"
msgstr ""
#. Default: "Publish"
#: ./browser/moderation.pt:49
msgid "bulkactions_publish"
msgstr ""
#. Default: "Action"
#: ./browser/moderation.pt:70
msgid "heading_action"
msgstr ""
#. Default: "Commenter"
#: ./browser/moderation.pt:65
msgid "heading_author"
msgstr ""
#. Default: "Comment"
#: ./browser/moderation.pt:69
msgid "heading_comment"
msgstr ""
#. Default: "In Response To"
#: ./browser/moderation.pt:67
msgid "heading_context"
msgstr ""
#. Default: "Date"
#: ./browser/moderation.pt:66
msgid "heading_date"
msgstr ""
#. Default: "Subject"
#: ./browser/moderation.pt:68
msgid "heading_subject"
msgstr ""
#. Default: "If selected, anonymous users are able to post comments without logging in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled."
#: ./interfaces.py:29
msgid "help_anonymous_comments"
msgstr ""
#. Default: "Use this setting to enable or disable captcha validation for comments. If no captcha options are currently available, install plone.formwidget.captcha or plone.formwidget.recaptcha."
#: ./interfaces.py:40
msgid "help_captcha"
msgstr ""
#. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose 'enable moderation'.\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"."
#: ./browser/controlpanel.py:17
msgid "help_discussion_settings_editform"
msgstr ""
#. Default: "If selected, users are able to post comments on the site."
#: ./interfaces.py:22
msgid "help_globally_enabled"
msgstr ""
#. Default: "If selected, an image of the user is shown next to the comment."
#: ./interfaces.py:51
msgid "help_show_commenter_image"
msgstr ""
#. Default: "Apply"
#: ./browser/moderation.pt:55
msgid "label_apply"
msgstr ""
#. Default: "Delete"
#: ./browser/moderation.pt:113
msgid "label_delete"
msgstr ""
#. Default: "Globally enable comments"
#: ./interfaces.py:20
msgid "label_globally_enabled"
msgstr ""
#. Default: "Publish"
#: ./browser/moderation.pt:104
msgid "label_publish"
msgstr ""
#. Default: "No comments to moderate."
#: ./browser/moderation.pt:27
msgid "message_nothing_to_moderate"
msgstr ""
#. Default: "Bulk Actions"
#: ./browser/moderation.pt:48
msgid "title_bulkactions"
msgstr ""
#. Default: "Moderate comments"
#: ./browser/moderation.pt:21
msgid "title_review"
msgstr ""

View File

@ -0,0 +1,322 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2010-01-24 19:38+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: DOMAIN\n"
#: ./interfaces.py:165
msgid "A comment id unique to this conversation"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "A simple workflow for comments"
msgstr ""
#: ./browser/comments.py:59
msgid "Add a comment"
msgstr ""
#: ./browser/controlpanel.py:36
msgid "Anonymous Comments"
msgstr ""
#: ./interfaces.py:180
msgid "Author name (for display)"
msgstr ""
#: ./browser/comments.py:177
msgid "Cancel"
msgstr ""
#: ./interfaces.py:39
msgid "Captcha"
msgstr ""
#: ./interfaces.py:178
#: ./profiles/default/types/Discussion_Item.xml
msgid "Comment"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Comment Review Workflow"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Comment about the last transition"
msgstr ""
#: ./browser/moderation.py:87
msgid "Comment deleted."
msgstr ""
#: ./browser/moderation.py:109
msgid "Comment published."
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Commentators"
msgstr ""
#: ./browser/controlpanel.py:37
msgid "Commenter Image"
msgstr ""
#: ./profiles/default/types/Discussion_Item.xml
msgid "Comments added to a content item."
msgstr ""
#: ./interfaces.py:162
msgid "Conversation"
msgstr ""
#: ./interfaces.py:181
msgid "Creation date"
msgstr ""
#: ./interfaces.py:80
msgid "Date of the most recent comment"
msgstr ""
#: ./vocabularies.py:30
msgid "Disabled"
msgstr ""
#: ./profiles/default/controlpanel.xml
msgid "Discussion"
msgstr ""
#: ./browser/controlpanel.py:16
msgid "Discussion settings"
msgstr ""
#: ./interfaces.py:173
msgid "Email"
msgstr ""
#: ./browser/controlpanel.py:35
msgid "Enable Comments"
msgstr ""
#: ./interfaces.py:28
msgid "Enable anonymous comments"
msgstr ""
#: ./interfaces.py:166
msgid "Id of comment this comment is in reply to"
msgstr ""
#: ./interfaces.py:177
msgid "MIME type"
msgstr ""
#: ./profiles/default/actions.xml
msgid "Moderate comments"
msgstr ""
#: ./interfaces.py:182
msgid "Modification date"
msgstr ""
#: ./interfaces.py:163
msgid "Name"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Pending"
msgstr ""
#: ./interfaces.py:160
msgid "Portal type"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Previous transition"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Provides access to workflow history"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Publish"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Published"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Publishing the comment makes it visible to other users."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Reviewer publishes content"
msgstr ""
#: ./interfaces.py:50
msgid "Show commenter image"
msgstr ""
#: ./interfaces.py:175
msgid "Subject"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Submitted, pending review."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "The ID of the user who performed the previous transition"
msgstr ""
#: ./browser/validator.py:28
msgid "The code you entered was wrong, please enter the new one."
msgstr ""
#: ./interfaces.py:81
msgid "The set of unique commentators (usernames)"
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Total number of comments"
msgstr ""
#: ./interfaces.py:79
msgid "Total number of comments on this item"
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Total number of comments on this item."
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Users who have commented on the item"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Visible to everyone, non-editable."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "When the previous transition was performed"
msgstr ""
#: ./browser/comments.py:170
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"
msgstr ""
#. Default: "Publish"
#: ./browser/moderation.pt:49
msgid "bulkactions_publish"
msgstr ""
#. Default: "Action"
#: ./browser/moderation.pt:70
msgid "heading_action"
msgstr ""
#. Default: "Commenter"
#: ./browser/moderation.pt:65
msgid "heading_author"
msgstr ""
#. Default: "Comment"
#: ./browser/moderation.pt:69
msgid "heading_comment"
msgstr ""
#. Default: "In Response To"
#: ./browser/moderation.pt:67
msgid "heading_context"
msgstr ""
#. Default: "Date"
#: ./browser/moderation.pt:66
msgid "heading_date"
msgstr ""
#. Default: "Subject"
#: ./browser/moderation.pt:68
msgid "heading_subject"
msgstr ""
#. Default: "If selected, anonymous users are able to post comments without logging in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled."
#: ./interfaces.py:29
msgid "help_anonymous_comments"
msgstr ""
#. Default: "Use this setting to enable or disable captcha validation for comments. If no captcha options are currently available, install plone.formwidget.captcha or plone.formwidget.recaptcha."
#: ./interfaces.py:40
msgid "help_captcha"
msgstr ""
#. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose 'enable moderation'.\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"."
#: ./browser/controlpanel.py:17
msgid "help_discussion_settings_editform"
msgstr ""
#. Default: "If selected, users are able to post comments on the site."
#: ./interfaces.py:22
msgid "help_globally_enabled"
msgstr ""
#. Default: "If selected, an image of the user is shown next to the comment."
#: ./interfaces.py:51
msgid "help_show_commenter_image"
msgstr ""
#. Default: "Apply"
#: ./browser/moderation.pt:55
msgid "label_apply"
msgstr ""
#. Default: "Delete"
#: ./browser/moderation.pt:113
msgid "label_delete"
msgstr ""
#. Default: "Globally enable comments"
#: ./interfaces.py:20
msgid "label_globally_enabled"
msgstr ""
#. Default: "Publish"
#: ./browser/moderation.pt:104
msgid "label_publish"
msgstr ""
#. Default: "No comments to moderate."
#: ./browser/moderation.pt:27
msgid "message_nothing_to_moderate"
msgstr ""
#. Default: "Bulk Actions"
#: ./browser/moderation.pt:48
msgid "title_bulkactions"
msgstr ""
#. Default: "Moderate comments"
#: ./browser/moderation.pt:21
msgid "title_review"
msgstr ""

View File

@ -0,0 +1,325 @@
# --- PLEASE EDIT THE LINES BELOW CORRECTLY ---
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2010-01-24 19:38+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: plone.app.discussion\n"
#: ./interfaces.py:165
msgid "A comment id unique to this conversation"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "A simple workflow for comments"
msgstr ""
#: ./browser/comments.py:59
msgid "Add a comment"
msgstr ""
#: ./browser/controlpanel.py:36
msgid "Anonymous Comments"
msgstr ""
#: ./interfaces.py:180
msgid "Author name (for display)"
msgstr ""
#: ./browser/comments.py:177
msgid "Cancel"
msgstr ""
#: ./interfaces.py:39
msgid "Captcha"
msgstr ""
#: ./interfaces.py:178
#: ./profiles/default/types/Discussion_Item.xml
msgid "Comment"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Comment Review Workflow"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Comment about the last transition"
msgstr ""
#: ./browser/moderation.py:87
msgid "Comment deleted."
msgstr ""
#: ./browser/moderation.py:109
msgid "Comment published."
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Commentators"
msgstr ""
#: ./browser/controlpanel.py:37
msgid "Commenter Image"
msgstr ""
#: ./profiles/default/types/Discussion_Item.xml
msgid "Comments added to a content item."
msgstr ""
#: ./interfaces.py:162
msgid "Conversation"
msgstr ""
#: ./interfaces.py:181
msgid "Creation date"
msgstr ""
#: ./interfaces.py:80
msgid "Date of the most recent comment"
msgstr ""
#: ./vocabularies.py:30
msgid "Disabled"
msgstr ""
#: ./profiles/default/controlpanel.xml
msgid "Discussion"
msgstr ""
#: ./browser/controlpanel.py:16
msgid "Discussion settings"
msgstr ""
#: ./interfaces.py:173
msgid "Email"
msgstr ""
#: ./browser/controlpanel.py:35
msgid "Enable Comments"
msgstr ""
#: ./interfaces.py:28
msgid "Enable anonymous comments"
msgstr ""
#: ./interfaces.py:166
msgid "Id of comment this comment is in reply to"
msgstr ""
#: ./interfaces.py:177
msgid "MIME type"
msgstr ""
#: ./profiles/default/actions.xml
msgid "Moderate comments"
msgstr ""
#: ./interfaces.py:182
msgid "Modification date"
msgstr ""
#: ./interfaces.py:163
msgid "Name"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Pending"
msgstr ""
#: ./interfaces.py:160
msgid "Portal type"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Previous transition"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Provides access to workflow history"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Publish"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Published"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Publishing the comment makes it visible to other users."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Reviewer publishes content"
msgstr ""
#: ./interfaces.py:50
msgid "Show commenter image"
msgstr ""
#: ./interfaces.py:175
msgid "Subject"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Submitted, pending review."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "The ID of the user who performed the previous transition"
msgstr ""
#: ./browser/validator.py:28
msgid "The code you entered was wrong, please enter the new one."
msgstr ""
#: ./interfaces.py:81
msgid "The set of unique commentators (usernames)"
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Total number of comments"
msgstr ""
#: ./interfaces.py:79
msgid "Total number of comments on this item"
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Total number of comments on this item."
msgstr ""
#: ./profiles/default/portal_atct.xml
msgid "Users who have commented on the item"
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "Visible to everyone, non-editable."
msgstr ""
#: ./profiles/default/workflows/comment_review_workflow/definition.xml
msgid "When the previous transition was performed"
msgstr ""
#: ./browser/comments.py:170
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"
msgstr ""
#. Default: "Publish"
#: ./browser/moderation.pt:49
msgid "bulkactions_publish"
msgstr ""
#. Default: "Action"
#: ./browser/moderation.pt:70
msgid "heading_action"
msgstr ""
#. Default: "Commenter"
#: ./browser/moderation.pt:65
msgid "heading_author"
msgstr ""
#. Default: "Comment"
#: ./browser/moderation.pt:69
msgid "heading_comment"
msgstr ""
#. Default: "In Response To"
#: ./browser/moderation.pt:67
msgid "heading_context"
msgstr ""
#. Default: "Date"
#: ./browser/moderation.pt:66
msgid "heading_date"
msgstr ""
#. Default: "Subject"
#: ./browser/moderation.pt:68
msgid "heading_subject"
msgstr ""
#. Default: "If selected, anonymous users are able to post comments without logging in. It is highly recommended to use a captcha solution to prevent spam if this setting is enabled."
#: ./interfaces.py:29
msgid "help_anonymous_comments"
msgstr ""
#. Default: "Use this setting to enable or disable captcha validation for comments. If no captcha options are currently available, install plone.formwidget.captcha or plone.formwidget.recaptcha."
#: ./interfaces.py:40
msgid "help_captcha"
msgstr ""
#. Default: "Some discussion related settings are not located in the Discussion Control Panel.\nTo enable comments for a specific content type, go to the Types Control Panel of this type and choose 'enable moderation'.\nTo enable the moderation workflow for comments, go to the Types Control Panel, choose \"Comment\" and set workflow to \"Comment Review Workflow\"."
#: ./browser/controlpanel.py:17
msgid "help_discussion_settings_editform"
msgstr ""
#. Default: "If selected, users are able to post comments on the site."
#: ./interfaces.py:22
msgid "help_globally_enabled"
msgstr ""
#. Default: "If selected, an image of the user is shown next to the comment."
#: ./interfaces.py:51
msgid "help_show_commenter_image"
msgstr ""
#. Default: "Apply"
#: ./browser/moderation.pt:55
msgid "label_apply"
msgstr ""
#. Default: "Delete"
#: ./browser/moderation.pt:113
msgid "label_delete"
msgstr ""
#. Default: "Globally enable comments"
#: ./interfaces.py:20
msgid "label_globally_enabled"
msgstr ""
#. Default: "Publish"
#: ./browser/moderation.pt:104
msgid "label_publish"
msgstr ""
#. Default: "No comments to moderate."
#: ./browser/moderation.pt:27
msgid "message_nothing_to_moderate"
msgstr ""
#. Default: "Bulk Actions"
#: ./browser/moderation.pt:48
msgid "title_bulkactions"
msgstr ""
#. Default: "Moderate comments"
#: ./browser/moderation.pt:21
msgid "title_review"
msgstr ""

View File

@ -3,6 +3,8 @@ from zope import component
import zope.schema.interfaces
import zope.schema.vocabulary
from plone.app.discussion.interfaces import _
HAS_CAPTCHA=False
try:
import plone.formwidget.captcha
@ -25,7 +27,7 @@ def captcha_vocabulary(context):
zope.schema.vocabulary.SimpleTerm(
value='disabled',
token='disabled',
title='Disabled'))
title=_(u'Disabled')))
if HAS_CAPTCHA:
terms.append(