use PMF instead of _ so i18ndude doesn't extract comment_
This commit is contained in:
parent
ab99c5d015
commit
eb8b473610
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user