--- a/src/pyams_content/component/paragraph/keynumber.py Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/paragraph/keynumber.py Wed Jun 06 11:44:46 2018 +0200
@@ -20,7 +20,7 @@
from pyams_content.component.paragraph.interfaces import IParagraphFactory
from pyams_content.component.paragraph.interfaces.keynumber import IKeyNumber, IKeyNumberContainer, \
IKeyNumberContainerTarget, KEYNUMBER_CONTAINER_KEY, IKeyNumberParagraph, KEYNUMBER_PARAGRAPH_TYPE, \
- KEYNUMBER_PARAGRAPH_RENDERERS
+ KEYNUMBER_PARAGRAPH_RENDERERS, KEYNUMBER_PARAGRAPH_NAME
from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
from pyams_form.interfaces.form import IFormContextPermissionChecker
from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
@@ -47,8 +47,6 @@
from zope.location import locate
from zope.schema.fieldproperty import FieldProperty
-from pyams_content import _
-
#
# Key number class and adapters
@@ -180,7 +178,7 @@
class KeyNumberContainerContentChecker(BaseContentChecker):
"""Key numbers container content checker"""
- label = _("Key numbers")
+ label = KEYNUMBER_PARAGRAPH_NAME
sep = '\n'
weight = 200
@@ -204,7 +202,7 @@
"""Key numbers paragraph"""
icon_class = 'fa-list-ol'
- icon_hint = _("Key numbers")
+ icon_hint = KEYNUMBER_PARAGRAPH_NAME
renderer = FieldProperty(IKeyNumberParagraph['renderer'])
@@ -213,7 +211,7 @@
class KeyNumberParagraphFactory(BaseParagraphFactory):
"""Key numbers paragraph factory"""
- name = _("Key numbers paragraph")
+ name = KEYNUMBER_PARAGRAPH_NAME
content_type = KeyNumberParagraph