--- a/src/pyams_content/component/paragraph/contact.py Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/paragraph/contact.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.contact import have_gis, IContactParagraph, CONTACT_PARAGRAPH_TYPE, \
- CONTACT_PARAGRAPH_RENDERERS
+ CONTACT_PARAGRAPH_RENDERERS, CONTACT_PARAGRAPH_NAME
from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
from pyams_file.interfaces import IImage, IResponsiveImage
from pyams_i18n.interfaces import II18n, II18nManager, INegotiator
@@ -35,8 +35,6 @@
from zope.interface import implementer, alsoProvides
from zope.schema.fieldproperty import FieldProperty
-from pyams_content import _
-
@implementer(IContactParagraph)
@factory_config(provided=IContactParagraph)
@@ -44,7 +42,7 @@
"""Contact paragraph"""
icon_class = 'fa-id-card-o'
- icon_hint = _("Contact card")
+ icon_hint = CONTACT_PARAGRAPH_NAME
name = FieldProperty(IContactParagraph['name'])
charge = FieldProperty(IContactParagraph['charge'])
@@ -73,7 +71,7 @@
class ContactParagraphFactory(BaseParagraphFactory):
"""Contact paragraph factory"""
- name = _("Contact card")
+ name = CONTACT_PARAGRAPH_NAME
content_type = ContactParagraph
secondary_menu = True