--- a/src/pyams_content/component/video/paragraph.py Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/video/paragraph.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.video.interfaces import IExternalVideoParagraph, EXTERNAL_VIDEO_PARAGRAPH_TYPE, \
- EXTERNAL_VIDEO_PARAGRAPH_RENDERERS
+ EXTERNAL_VIDEO_PARAGRAPH_RENDERERS, EXTERNAL_VIDEO_PARAGRAPH_NAME
from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
@@ -35,8 +35,6 @@
from zope.interface import implementer
from zope.schema.fieldproperty import FieldProperty
-from pyams_content import _
-
@implementer(IExternalVideoParagraph)
@factory_config(provided=IExternalVideoParagraph)
@@ -44,7 +42,7 @@
"""External video paragraph"""
icon_class = 'fa-youtube-play'
- icon_hint = _("External video")
+ icon_hint = EXTERNAL_VIDEO_PARAGRAPH_NAME
body = FieldProperty(IExternalVideoParagraph['body'])
renderer = FieldProperty(IExternalVideoParagraph['renderer'])
@@ -54,7 +52,7 @@
class ExternalVideoParagraphFactory(BaseParagraphFactory):
"""External video paragraph factory"""
- name = _("External video")
+ name = EXTERNAL_VIDEO_PARAGRAPH_NAME
content_type = ExternalVideoParagraph