--- a/src/pyams_content/component/paragraph/html.py Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/paragraph/html.py Wed Jun 06 11:44:46 2018 +0200
@@ -22,8 +22,9 @@
from pyams_content.component.illustration.interfaces import IIllustrationTarget
from pyams_content.component.links.interfaces import ILinkContainerTarget, IInternalLink, IExternalLink, IMailtoLink
from pyams_content.component.paragraph.interfaces import IParagraphFactory
-from pyams_content.component.paragraph.interfaces.html import RAW_PARAGRAPH_TYPE, IRawParagraph, HTML_PARAGRAPH_TYPE, \
- IHTMLParagraph, RAW_PARAGRAPH_RENDERERS, HTML_PARAGRAPH_RENDERERS
+from pyams_content.component.paragraph.interfaces.html import \
+ RAW_PARAGRAPH_TYPE, RAW_PARAGRAPH_NAME, RAW_PARAGRAPH_RENDERERS, IRawParagraph, \
+ HTML_PARAGRAPH_TYPE, HTML_PARAGRAPH_NAME, HTML_PARAGRAPH_RENDERERS, IHTMLParagraph
from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
from pyams_sequence.interfaces import ISequentialIntIds
@@ -47,8 +48,6 @@
from zope.lifecycleevent import ObjectCreatedEvent
from zope.schema.fieldproperty import FieldProperty
-from pyams_content import _
-
#
# Raw HTML paragraph
@@ -60,7 +59,7 @@
"""Raw HTML paragraph"""
icon_class = 'fa-code'
- icon_hint = _("Raw HTML ")
+ icon_hint = RAW_PARAGRAPH_NAME
body = FieldProperty(IRawParagraph['body'])
renderer = FieldProperty(IRawParagraph['renderer'])
@@ -70,7 +69,7 @@
class RawParagraphFactory(BaseParagraphFactory):
"""Raw paragraph factory"""
- name = _("Raw HTML paragraph")
+ name = RAW_PARAGRAPH_NAME
content_type = RawParagraph
@@ -116,7 +115,7 @@
"""HTML paragraph"""
icon_class = 'fa-font'
- icon_hint = _("Rich text")
+ icon_hint = HTML_PARAGRAPH_NAME
body = FieldProperty(IHTMLParagraph['body'])
renderer = FieldProperty(IHTMLParagraph['renderer'])
@@ -126,7 +125,7 @@
class HTMLParagraphFactory(BaseParagraphFactory):
"""HTML paragraph factory"""
- name = _("Rich text paragraph")
+ name = HTML_PARAGRAPH_NAME
content_type = HTMLParagraph