Markdown syntax added to possible comment text transforms.

svn path=/plone.app.discussion/trunk/; revision=51530
This commit is contained in:
Timo Stollenwerk
2011-08-05 10:08:39 +00:00
parent cdf2beda40
commit 87700f3810
3 changed files with 17 additions and 0 deletions
+9
View File
@@ -49,6 +49,12 @@ COMMENT_DESCRIPTION_PLAIN_TEXT = _(
default=u"You can add a comment by filling out the form below. " +
"Plain text formatting.")
COMMENT_DESCRIPTION_MARKDOWN = _(
u"comment_description_markdown",
default=u"You can add a comment by filling out the form below. " +
"Plain text formatting. You can use the Markdown syntax for " +
"links and images.")
COMMENT_DESCRIPTION_INTELLIGENT_TEXT = _(
u"comment_description_intelligent_text",
default=u"You can add a comment by filling out the form below. " +
@@ -293,6 +299,9 @@ class CommentsViewlet(ViewletBase):
if settings.text_transform == "text/x-web-intelligent":
message = translate(Message(COMMENT_DESCRIPTION_INTELLIGENT_TEXT),
context=self.request)
elif settings.text_transform == "text/x-web-markdown":
message = translate(Message(COMMENT_DESCRIPTION_MARKDOWN),
context=self.request)
else:
message = translate(Message(COMMENT_DESCRIPTION_PLAIN_TEXT),
context=self.request)