Skip to content

Commit

Permalink
use PMF here because we don't want this dynamic message to be extracted
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed May 31, 2016
1 parent f695802 commit 2e42c0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plone/app/vocabularies/images.py
Expand Up @@ -6,7 +6,7 @@
from zope.schema.vocabulary import SimpleTerm
from zope.schema.vocabulary import SimpleVocabulary

_ = MessageFactory('plone')
PMF = MessageFactory('plone')


@provider(IVocabularyFactory)
Expand All @@ -15,7 +15,7 @@ def ScalesVocabulary(context):
"""
terms = []
for scale, (width, height) in getAllowedSizes().iteritems():
translated = _(
translated = PMF(
'imagescale_{0:s}'.format(scale),
default='{0:s} ${{width}}x${{height}}'.format(scale),
mapping={'width': str(width), 'height': str(height)})
Expand Down

0 comments on commit 2e42c0e

Please sign in to comment.