src/pyams_content/component/paragraph/frame.py
changeset 586 28445044f6e3
parent 555 8e8a14452567
child 923 b57388b3beb3
--- a/src/pyams_content/component/paragraph/frame.py	Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/paragraph/frame.py	Wed Jun 06 11:44:46 2018 +0200
@@ -21,7 +21,7 @@
 from pyams_content.component.links.interfaces import ILinkContainerTarget
 from pyams_content.component.paragraph.interfaces import IParagraphFactory
 from pyams_content.component.paragraph.interfaces.frame import IFrameParagraph, FRAME_PARAGRAPH_TYPE, \
-    FRAME_PARAGRAPH_RENDERERS
+    FRAME_PARAGRAPH_RENDERERS, FRAME_PARAGRAPH_NAME
 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
 from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
 
@@ -36,8 +36,6 @@
 from zope.interface import implementer
 from zope.schema.fieldproperty import FieldProperty
 
-from pyams_content import _
-
 
 #
 # Frame paragraph
@@ -49,7 +47,7 @@
     """Framed text paragraph"""
 
     icon_class = 'fa-list-alt'
-    icon_hint = _("Framed text")
+    icon_hint = FRAME_PARAGRAPH_NAME
 
     body = FieldProperty(IFrameParagraph['body'])
     renderer = FieldProperty(IFrameParagraph['renderer'])
@@ -59,7 +57,7 @@
 class FrameParagraphFactory(BaseParagraphFactory):
     """Framed text paragraph factory"""
 
-    name = _("Framed text paragraph")
+    name = FRAME_PARAGRAPH_NAME
     content_type = FrameParagraph
     secondary_menu = True