src/pyams_content/component/paragraph/header.py
changeset 586 28445044f6e3
parent 555 8e8a14452567
child 889 16a39f306f05
--- a/src/pyams_content/component/paragraph/header.py	Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/paragraph/header.py	Wed Jun 06 11:44:46 2018 +0200
@@ -18,7 +18,7 @@
 # import interfaces
 from pyams_content.component.paragraph.interfaces import IParagraphFactory
 from pyams_content.component.paragraph.interfaces.header import IHeaderParagraph, HEADER_PARAGRAPH_TYPE, \
-    HEADER_PARAGRAPH_RENDERERS
+    HEADER_PARAGRAPH_RENDERERS, HEADER_PARAGRAPH_NAME
 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
 from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
 
@@ -34,8 +34,6 @@
 from zope.interface import implementer
 from zope.schema.fieldproperty import FieldProperty
 
-from pyams_content import _
-
 
 @implementer(IHeaderParagraph)
 @factory_config(provided=IHeaderParagraph)
@@ -43,7 +41,7 @@
     """Header paragraph"""
 
     icon_class = 'fa-download fa-rotate-180'
-    icon_hint = _("Header")
+    icon_hint = HEADER_PARAGRAPH_NAME
 
     @property
     def title(self):
@@ -58,7 +56,7 @@
 class HeaderParagraphFactory(BaseParagraphFactory):
     """Header paragraph factory"""
 
-    name = _("Header paragraph")
+    name = HEADER_PARAGRAPH_NAME
     content_type = HeaderParagraph