Fixed internationalization issues.
svn path=/plone.app.discussion/trunk/; revision=48110
This commit is contained in:
parent
cf5f101538
commit
7c2a815fdb
@ -4,6 +4,9 @@ Changelog
|
||||
2.0b1 (Unreleased)
|
||||
------------------
|
||||
|
||||
- Fixed internationalization issues.
|
||||
[thomasdesvenain]
|
||||
|
||||
- Added Afrikaans translations
|
||||
[jcbrand]
|
||||
|
||||
|
@ -316,9 +316,11 @@ 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)
|
||||
@ -328,7 +330,8 @@ class CommentsViewlet(ViewletBase):
|
||||
# true comments are moderated
|
||||
if 'pending' in comment_workflow.states:
|
||||
message = message + " " + \
|
||||
translate(Message(COMMENT_DESCRIPTION_MODERATION_ENABLED))
|
||||
translate(Message(COMMENT_DESCRIPTION_MODERATION_ENABLED),
|
||||
context=self.request)
|
||||
|
||||
return message
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user