fix translation support for new homenews object

This commit is contained in:
Frédéric Péters 2016-05-06 09:18:20 +02:00
parent 61f750a223
commit 6c2fac35e6
2 changed files with 4 additions and 1 deletions

View File

@ -5,3 +5,6 @@ def initialize(context):
class IHemicycleDocument(Interface):
pass
import zope.i18nmessageid
MessageFactory = zope.i18nmessageid.MessageFactory('tabellio.pfbviews')

View File

@ -10,7 +10,7 @@ from plone.formwidget.contenttree import ObjPathSourceBinder
from plone.app.textfield import RichText
from plone.namedfile.field import NamedImage
from tabellio.pcfviews import MessageFactory as _
from tabellio.pfbviews import MessageFactory as _
class IHomeNews(form.Schema):
picture = NamedImage(title=_(u'Picture'), required=False)