src/pyams_content/component/illustration/paragraph.py
changeset 586 28445044f6e3
parent 407 0ef5de2d5674
child 1243 837612af4dc3
--- a/src/pyams_content/component/illustration/paragraph.py	Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/illustration/paragraph.py	Wed Jun 06 11:44:46 2018 +0200
@@ -16,7 +16,8 @@
 # import standard library
 
 # import interfaces
-from pyams_content.component.illustration.interfaces import IIllustrationParagraph, ILLUSTRATION_PARAGRAPH_TYPE
+from pyams_content.component.illustration.interfaces import IIllustrationParagraph, ILLUSTRATION_PARAGRAPH_TYPE, \
+    ILLUSTRATION_PARAGRAPH_NAME
 from pyams_content.component.paragraph.interfaces import IParagraphFactory
 from pyams_content.features.checker.interfaces import IContentChecker
 from pyams_i18n.interfaces import II18n
@@ -29,22 +30,20 @@
 from pyams_utils.request import check_request
 from zope.interface import implementer
 
-from pyams_content import _
-
 
 @implementer(IIllustrationParagraph)
 class Illustration(BaseIllustration, BaseParagraph):
     """Illustration class"""
 
     icon_class = 'fa-file-image-o'
-    icon_hint = _("Illustration")
+    icon_hint = ILLUSTRATION_PARAGRAPH_NAME
 
 
 @utility_config(name=ILLUSTRATION_PARAGRAPH_TYPE, provides=IParagraphFactory)
 class IllustrationFactory(BaseParagraphFactory):
     """Illustration paragraph factory"""
 
-    name = _("Illustration")
+    name = ILLUSTRATION_PARAGRAPH_NAME
     content_type = Illustration