src/pyams_content/component/paragraph/video.py
changeset 585 9fa8e9776bda
parent 584 bfc376efd87c
child 598 f9cd7d17430e
--- a/src/pyams_content/component/paragraph/video.py	Wed Jun 06 10:31:48 2018 +0200
+++ b/src/pyams_content/component/paragraph/video.py	Wed Jun 06 11:06:51 2018 +0200
@@ -18,7 +18,7 @@
 # import interfaces
 from pyams_content.component.paragraph.interfaces import IParagraphFactory
 from pyams_content.component.paragraph.interfaces.video import IVideoParagraph, VIDEO_PARAGRAPH_TYPE, \
-    VIDEO_PARAGRAPH_RENDERERS
+    VIDEO_PARAGRAPH_RENDERERS, VIDEO_PARAGRAPH_NAME
 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
 from pyams_i18n.interfaces import II18nManager, INegotiator, II18n
 
@@ -34,8 +34,6 @@
 from zope.interface import implementer
 from zope.schema.fieldproperty import FieldProperty
 
-from pyams_content import _
-
 
 @implementer(IVideoParagraph)
 @factory_config(provided=IVideoParagraph)
@@ -43,7 +41,7 @@
     """Video paragraph class"""
 
     icon_class = 'fa-film'
-    icon_hint = _("Video")
+    icon_hint = VIDEO_PARAGRAPH_NAME
 
     body = FieldProperty(IVideoParagraph['body'])
     description = FieldProperty(IVideoParagraph['description'])
@@ -56,7 +54,7 @@
 class VideoParagraphFactory(BaseParagraphFactory):
     """Video paragraph factory"""
 
-    name = _("Video")
+    name = VIDEO_PARAGRAPH_NAME
     content_type = VideoParagraph