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)
|
2.0b1 (Unreleased)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
- Fixed internationalization issues.
|
||||||
|
[thomasdesvenain]
|
||||||
|
|
||||||
- Added Afrikaans translations
|
- Added Afrikaans translations
|
||||||
[jcbrand]
|
[jcbrand]
|
||||||
|
|
||||||
|
@ -316,9 +316,11 @@ class CommentsViewlet(ViewletBase):
|
|||||||
|
|
||||||
# text transform setting
|
# text transform setting
|
||||||
if settings.text_transform == "text/x-web-intelligent":
|
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:
|
else:
|
||||||
message = translate(Message(COMMENT_DESCRIPTION_PLAIN_TEXT))
|
message = translate(Message(COMMENT_DESCRIPTION_PLAIN_TEXT,
|
||||||
|
context=self.request))
|
||||||
|
|
||||||
# comment workflow
|
# comment workflow
|
||||||
wftool = getToolByName(context, "portal_workflow", None)
|
wftool = getToolByName(context, "portal_workflow", None)
|
||||||
@ -328,7 +330,8 @@ class CommentsViewlet(ViewletBase):
|
|||||||
# true comments are moderated
|
# true comments are moderated
|
||||||
if 'pending' in comment_workflow.states:
|
if 'pending' in comment_workflow.states:
|
||||||
message = message + " " + \
|
message = message + " " + \
|
||||||
translate(Message(COMMENT_DESCRIPTION_MODERATION_ENABLED))
|
translate(Message(COMMENT_DESCRIPTION_MODERATION_ENABLED),
|
||||||
|
context=self.request)
|
||||||
|
|
||||||
return message
|
return message
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user