Skip to content

Commit

Permalink
use PMF instead of _ so i18ndude doesn't extract comment_
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Jun 18, 2020
1 parent ab99c5d commit eb8b473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plone/app/discussion/browser/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
_('Approve')
_('Reject')
_('Spam')
PMF = _


class TranslationHelper(BrowserView):
Expand All @@ -37,7 +38,8 @@ def translate(self, text=""):
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):
Expand Down

0 comments on commit eb8b473

Please sign in to comment.