Fix missing translations for comment formatting. This fixes #11671; Update translations.

svn path=/plone.app.discussion/branches/1.x/; revision=49302
This commit is contained in:
Timo Stollenwerk
2011-05-03 14:02:21 +00:00
parent 5f064b16d1
commit 62faba42ce
16 changed files with 1221 additions and 610 deletions
+7 -8
View File
@@ -50,14 +50,11 @@ except ImportError: # pragma: no cover
COMMENT_DESCRIPTION_PLAIN_TEXT = _(
u"comment_description_plain_text",
default=u"You can add a comment by filling out the form below. " +
"Plain text formatting.")
default=u"You can add a comment by filling out the form below. Plain text formatting.")
COMMENT_DESCRIPTION_INTELLIGENT_TEXT = _(
u"comment_description_intelligent_text",
default=u"You can add a comment by filling out the form below. " +
"Plain text formatting. Web and email addresses are transformed " +
"into clickable links.")
default=u"You can add a comment by filling out the form below. Plain text formatting. Web and email addresses are transformed into clickable links.")
COMMENT_DESCRIPTION_MODERATION_ENABLED = _(
u"comment_description_moderation_enabled",
@@ -316,10 +313,12 @@ class CommentsViewlet(ViewletBase):
# text transform setting
if settings.text_transform == "text/x-web-intelligent":
message = translate(Message(COMMENT_DESCRIPTION_INTELLIGENT_TEXT))
message = translate(Message(COMMENT_DESCRIPTION_INTELLIGENT_TEXT),
context=self.request)
else:
message = translate(Message(COMMENT_DESCRIPTION_PLAIN_TEXT))
message = translate(Message(COMMENT_DESCRIPTION_PLAIN_TEXT),
context=self.request)
# comment workflow
wftool = getToolByName(context, "portal_workflow", None)
comment_workflow = wftool.getChainForPortalType('Discussion Item')[0]