From 82ca44ee6875b2b823fe321d7894d4e95256caa4 Mon Sep 17 00:00:00 2001 From: Stefan Antonelli Date: Wed, 17 Feb 2021 16:02:26 +0100 Subject: [PATCH] add i18n message id --- plone/app/discussion/browser/controlpanel.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/browser/controlpanel.py b/plone/app/discussion/browser/controlpanel.py index 696b01c..272fbb0 100644 --- a/plone/app/discussion/browser/controlpanel.py +++ b/plone/app/discussion/browser/controlpanel.py @@ -180,7 +180,8 @@ class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper): if mailhost and email: pass else: - message = _(u'You have not configured a mail host or a site \'From\' address, various features including contact forms, email notification and password reset will not work. Go to the E-Mail Settings to fix this.') # noqa: E501 + message = _(u'discussion_text_no_mailhost_configured', + default=u'You have not configured a mail host or a site \'From\' address, various features including contact forms, email notification and password reset will not work. Go to the E-Mail Settings to fix this.') # noqa: E501 IStatusMessage(self.request).addStatusMessage(message, 'warning') def custom_comment_workflow_warning(self): @@ -194,7 +195,8 @@ class DiscussionSettingsControlPanel(controlpanel.ControlPanelFormWrapper): if one_state_workflow_enabled or comment_review_workflow_enabled: pass else: - message = _(u'You have configured a custom workflow for the \'Discussion Item\' content type. You can enable/disable the comment moderation in this control panel only if you use one of the default \'Discussion Item\' workflows. Go to the Types control panel to choose a workflow for the \'Discussion Item\' type.') # noqa: E501 + message = _(u'discussion_text_custom_comment_workflow', + default=u'You have configured a custom workflow for the \'Discussion Item\' content type. You can enable/disable the comment moderation in this control panel only if you use one of the default \'Discussion Item\' workflows. Go to the Types control panel to choose a workflow for the \'Discussion Item\' type.') # noqa: E501 IStatusMessage(self.request).addStatusMessage(message, 'warning')