summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-05-06 07:18:20 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2016-05-06 07:18:20 (GMT)
commit6c2fac35e60eaf08cbd1a90bfc4be7e0b6fcc27c (patch)
tree80750234958136254bd795166113405fa6b72734
parent61f750a22394dbb0ae857ea19f90087ac474a08b (diff)
downloadtabellio.pfbviews-6c2fac35e60eaf08cbd1a90bfc4be7e0b6fcc27c.zip
tabellio.pfbviews-6c2fac35e60eaf08cbd1a90bfc4be7e0b6fcc27c.tar.gz
tabellio.pfbviews-6c2fac35e60eaf08cbd1a90bfc4be7e0b6fcc27c.tar.bz2
fix translation support for new homenews object
-rw-r--r--tabellio/pfbviews/__init__.py3
-rw-r--r--tabellio/pfbviews/homenews.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/tabellio/pfbviews/__init__.py b/tabellio/pfbviews/__init__.py
index e139fab..0d8a56b 100644
--- a/tabellio/pfbviews/__init__.py
+++ b/tabellio/pfbviews/__init__.py
@@ -5,3 +5,6 @@ def initialize(context):
class IHemicycleDocument(Interface):
pass
+
+import zope.i18nmessageid
+MessageFactory = zope.i18nmessageid.MessageFactory('tabellio.pfbviews')
diff --git a/tabellio/pfbviews/homenews.py b/tabellio/pfbviews/homenews.py
index fe4b27b..7ff74a6 100644
--- a/tabellio/pfbviews/homenews.py
+++ b/tabellio/pfbviews/homenews.py
@@ -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)