--- a/src/pyams_content/component/gallery/paragraph.py Wed Jun 06 11:06:51 2018 +0200
+++ b/src/pyams_content/component/gallery/paragraph.py Wed Jun 06 11:44:46 2018 +0200
@@ -16,7 +16,7 @@
# import standard library
# import interfaces
-from pyams_content.component.gallery.interfaces import IGalleryParagraph, GALLERY_PARAGRAPH_TYPE
+from pyams_content.component.gallery.interfaces import IGalleryParagraph, GALLERY_PARAGRAPH_TYPE, GALLERY_PARAGRAPH_NAME
from pyams_content.component.paragraph.interfaces import IParagraphFactory
from pyams_content.features.checker.interfaces import IContentChecker, MISSING_VALUE, MISSING_LANG_VALUE
from pyams_i18n.interfaces import II18n, INegotiator, II18nManager
@@ -29,22 +29,20 @@
from pyams_utils.traversing import get_parent
from zope.interface import implementer
-from pyams_content import _
-
@implementer(IGalleryParagraph)
class Gallery(BaseGallery, BaseParagraph):
"""Gallery class"""
icon_class = 'fa-picture-o'
- icon_hint = _("Medias gallery")
+ icon_hint = GALLERY_PARAGRAPH_NAME
@utility_config(name=GALLERY_PARAGRAPH_TYPE, provides=IParagraphFactory)
class GalleryFactory(BaseParagraphFactory):
"""Gallery paragraph factory"""
- name = _("Medias gallery")
+ name = GALLERY_PARAGRAPH_NAME
content_type = Gallery