--- a/src/pyams_content/component/paragraph/milestone.py Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/paragraph/milestone.py Wed Jun 06 11:44:46 2018 +0200
@@ -21,7 +21,7 @@
IParagraphFactory
from pyams_content.component.paragraph.interfaces.milestone import IMilestone, IMilestoneContainer, \
IMilestoneContainerTarget, MILESTONE_CONTAINER_KEY, IMilestoneParagraph, MILESTONE_PARAGRAPH_TYPE, \
- MILESTONE_PARAGRAPH_RENDERERS
+ MILESTONE_PARAGRAPH_RENDERERS, MILESTONE_PARAGRAPH_NAME
from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE, ERROR_VALUE
from pyams_form.interfaces.form import IFormContextPermissionChecker
from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
@@ -196,7 +196,7 @@
class MilestoneContainerContentChecker(BaseContentChecker):
"""Milestones container content checker"""
- label = _("Milestones")
+ label = MILESTONE_PARAGRAPH_NAME
sep = '\n'
weight = 200
@@ -219,7 +219,7 @@
"""Milestones paragraph"""
icon_class = 'fa-arrows-h'
- icon_hint = _("Milestones")
+ icon_hint = MILESTONE_PARAGRAPH_NAME
renderer = FieldProperty(IMilestoneParagraph['renderer'])
@@ -228,7 +228,7 @@
class MilestoneParagraphFactory(BaseParagraphFactory):
"""Milestones paragraph factory"""
- name = _("Milestones paragraph")
+ name = MILESTONE_PARAGRAPH_NAME
content_type = MilestoneParagraph