src/pyams_content/component/paragraph/pictogram.py
changeset 586 28445044f6e3
parent 558 d9c6b1d7fefa
child 625 abd143a83a07
--- a/src/pyams_content/component/paragraph/pictogram.py	Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/paragraph/pictogram.py	Wed Jun 06 11:44:46 2018 +0200
@@ -21,7 +21,7 @@
 from pyams_content.component.paragraph import IParagraphFactory
 from pyams_content.component.paragraph.interfaces.pictogram import IPictogramItem, IPictogramContainerTarget, \
     IPictogramContainer, PICTOGRAM_CONTAINER_KEY, IPictogramParagraph, PICTOGRAM_PARAGRAPH_TYPE, \
-    PICTOGRAM_PARAGRAPH_RENDERERS
+    PICTOGRAM_PARAGRAPH_RENDERERS, PICTOGRAM_PARAGRAPH_NAME
 from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE, ERROR_VALUE
 from pyams_content.reference.pictograms.interfaces import IPictogramTable
 from pyams_form.interfaces.form import IFormContextPermissionChecker
@@ -186,7 +186,7 @@
 class PictogramContainerContentChecker(BaseContentChecker):
     """Pictogram container content checker"""
 
-    label = _("Pictograms")
+    label = PICTOGRAM_PARAGRAPH_NAME
     sep = '\n'
     weight = 210
 
@@ -209,7 +209,7 @@
     """Pictograms paragraph"""
 
     icon_class = 'fa-linode'
-    icon_hint = _("Pictograms")
+    icon_hint = PICTOGRAM_PARAGRAPH_NAME
 
     renderer = FieldProperty(IPictogramParagraph['renderer'])
 
@@ -218,7 +218,7 @@
 class PictogramParagraphFactory(BaseParagraphFactory):
     """Pictograms paragraph factory"""
 
-    name = _("Pictograms paragraph")
+    name = PICTOGRAM_PARAGRAPH_NAME
     content_type = PictogramParagraph