use PMF instead of _ so i18ndude doesn't extract comment_

This commit is contained in:
Vincent Fretin 2020-06-18 11:58:24 +02:00
parent ab99c5d015
commit eb8b473610

View File

@ -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):