From eb8b473610b19e9f052257aaf3169aecadcc4140 Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Thu, 18 Jun 2020 11:58:24 +0200 Subject: [PATCH] use PMF instead of _ so i18ndude doesn't extract comment_ --- plone/app/discussion/browser/moderation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/moderation.py b/plone/app/discussion/browser/moderation.py index 05c0236..03540b2 100644 --- a/plone/app/discussion/browser/moderation.py +++ b/plone/app/discussion/browser/moderation.py @@ -29,6 +29,7 @@ _('Recall') _('Approve') _('Reject') _('Spam') +PMF = _ class TranslationHelper(BrowserView): @@ -37,7 +38,8 @@ class TranslationHelper(BrowserView): return _(text) def translate_comment_review_state(self, rs): - return _("comment_" + rs, default=rs) + # use PMF instead of _ here so i18ndude doesn't extract "comment_" + return PMF("comment_" + rs, default=rs) class View(BrowserView):