src/pyams_content/component/paragraph/keypoint.py
changeset 586 28445044f6e3
parent 555 8e8a14452567
child 588 fafb10af74b3
--- a/src/pyams_content/component/paragraph/keypoint.py	Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/paragraph/keypoint.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.keypoint import IKeypointsParagraph, KEYPOINTS_PARAGRAPH_TYPE, \
-    KEYPOINTS_PARAGRAPH_RENDERERS
+    KEYPOINTS_PARAGRAPH_RENDERERS, KEYPOINTS_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(IKeypointsParagraph)
 @factory_config(provided=IKeypointsParagraph)
@@ -43,7 +41,7 @@
     """Key points paragraph"""
 
     icon_class = 'fa-key'
-    icon_hint = _("Key points")
+    icon_hint = KEYPOINTS_PARAGRAPH_NAME
 
     @property
     def title(self):
@@ -58,7 +56,7 @@
 class KeypointsParagraphFactory(BaseParagraphFactory):
     """Key points paragraph factory"""
 
-    name = _("Key points paragraph")
+    name = KEYPOINTS_PARAGRAPH_NAME
     content_type = KeypointsParagraph
     secondary_menu = True