Commiting working translation.

Some light fixes was needed also to the code. 

svn path=/plone.app.discussion/branches/localization-enabled/; revision=33353
This commit is contained in:
Luca Fabbri
2010-01-24 13:47:39 +00:00
parent 569cd0f33b
commit a6a1904d3e
5 changed files with 120 additions and 93 deletions
+2 -1
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>
+12 -14
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):