Added location map paragraph
authorThierry Florac <thierry.florac@onf.fr>
Wed, 18 Jul 2018 15:50:14 +0200
changeset 861 36f6bb152718
parent 860 9d1653c0e04d
child 862 617532ab2dab
Added location map paragraph
src/pyams_content/component/paragraph/interfaces/map.py
src/pyams_content/component/paragraph/map.py
src/pyams_content/component/paragraph/zmi/map.py
src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.mo
src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po
src/pyams_content/locales/pyams_content.pot
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/component/paragraph/interfaces/map.py	Wed Jul 18 15:50:14 2018 +0200
@@ -0,0 +1,60 @@
+#
+# Copyright (c) 2008-2018 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+
+__docformat__ = 'restructuredtext'
+
+
+try:
+    from pyams_gis.schema import GeoPointField
+except ImportError:
+    have_gis = False
+else:
+    have_gis = True
+
+if have_gis:
+
+    # import standard library
+
+    # import interfaces
+    from pyams_content.component.paragraph.interfaces import IBaseParagraph
+
+    # import packages
+    from zope.schema import Choice, Bool
+
+    from pyams_content import _
+
+
+    #
+    # Map paragraph
+    #
+
+    MAP_PARAGRAPH_TYPE = 'Map'
+    MAP_PARAGRAPH_NAME = _("Location map")
+    MAP_PARAGRAPH_RENDERERS = 'PyAMS.paragraph.map.renderers'
+
+
+    class IMapParagraph(IBaseParagraph):
+        """Map paragraph interface"""
+
+        gps_location = GeoPointField(title=_("GPS location"),
+                                     description=_("GPS coordinates used to locate map"),
+                                     required=False)
+
+        display_marker = Bool(title=_("Display location mark?"),
+                              description=_("If 'yes', a location marker will be displayed on map"),
+                              required=True,
+                              default=True)
+
+        renderer = Choice(title=_("Map template"),
+                          description=_("Presentation template used for this map"),
+                          vocabulary=MAP_PARAGRAPH_RENDERERS,
+                          default='default')
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/component/paragraph/map.py	Wed Jul 18 15:50:14 2018 +0200
@@ -0,0 +1,64 @@
+#
+# Copyright (c) 2008-2018 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+
+__docformat__ = 'restructuredtext'
+
+
+from pyams_content.component.paragraph.interfaces.map import have_gis
+if have_gis:
+
+    # import standard library
+
+    # import interfaces
+    from pyams_content.component.paragraph.interfaces import IParagraphFactory
+    from pyams_content.component.paragraph.interfaces.map import IMapParagraph, MAP_PARAGRAPH_NAME, have_gis, \
+        MAP_PARAGRAPH_TYPE, MAP_PARAGRAPH_RENDERERS
+
+    # import packages
+    from pyams_content.component.paragraph import BaseParagraph, BaseParagraphFactory
+    from pyams_content.features.renderer import RenderersVocabulary
+    from pyams_utils.factory import factory_config
+    from pyams_utils.registry import utility_config
+    from pyams_utils.vocabulary import vocabulary_config
+    from zope.interface import implementer
+    from zope.schema.fieldproperty import FieldProperty
+
+
+    @implementer(IMapParagraph)
+    @factory_config(provided=IMapParagraph)
+    class MapParagraph(BaseParagraph):
+        """Map paragraph"""
+
+        icon_class = 'fa-map-marker'
+        icon_hint = MAP_PARAGRAPH_NAME
+
+        if have_gis:
+            gps_location = FieldProperty(IMapParagraph['gps_location'])
+            display_marker = FieldProperty(IMapParagraph['display_marker'])
+
+        renderer = FieldProperty(IMapParagraph['renderer'])
+
+
+    @utility_config(name=MAP_PARAGRAPH_TYPE, provides=IParagraphFactory)
+    class MapParagraphFactory(BaseParagraphFactory):
+        """Map paragraph factory"""
+
+        name = MAP_PARAGRAPH_NAME
+        content_type = MapParagraph
+        secondary_menu = True
+
+
+    @vocabulary_config(name=MAP_PARAGRAPH_RENDERERS)
+    class MapParagraphRenderersVocabulary(RenderersVocabulary):
+        """Map paragraph renderers vocabulary"""
+
+        content_interface = IMapParagraph
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/component/paragraph/zmi/map.py	Wed Jul 18 15:50:14 2018 +0200
@@ -0,0 +1,125 @@
+#
+# Copyright (c) 2008-2018 Thierry Florac <tflorac AT ulthar.net>
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+
+__docformat__ = 'restructuredtext'
+
+
+from pyams_content.component.paragraph.interfaces.map import have_gis
+if have_gis:
+
+    # import standard library
+
+    # import interfaces
+    from pyams_content.component.paragraph.interfaces import IParagraphContainerTarget, IParagraphContainer, \
+        IBaseParagraph, PARAGRAPH_HIDDEN_FIELDS
+    from pyams_content.component.paragraph.interfaces.map import MAP_PARAGRAPH_TYPE, IMapParagraph
+    from pyams_content.component.paragraph.zmi.interfaces import IParagraphInnerEditor
+    from pyams_content.interfaces import MANAGE_CONTENT_PERMISSION
+    from pyams_form.interfaces.form import IInnerForm
+    from pyams_skin.interfaces.viewlet import IToolbarAddingMenu
+    from pyams_skin.layer import IPyAMSLayer
+    from z3c.form.interfaces import INPUT_MODE
+
+    # import packages
+    from pyams_content.component.paragraph.map import MapParagraph
+    from pyams_content.component.paragraph.zmi import IParagraphContainerView, BaseParagraphAddMenu, \
+        BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, BaseParagraphPropertiesEditForm, IParagraphEditFormButtons, \
+        get_json_paragraph_refresh_event
+    from pyams_content.features.renderer.zmi.widget import RendererFieldWidget
+    from pyams_form.form import ajax_config
+    from pyams_pagelet.pagelet import pagelet_config
+    from pyams_skin.event import get_json_form_refresh_event
+    from pyams_utils.adapter import adapter_config
+    from pyams_viewlet.viewlet import viewlet_config
+    from pyams_zmi.form import AdminDialogAddForm
+    from z3c.form import field, button
+    from zope.interface import implementer
+
+    from pyams_content import _
+
+
+    @viewlet_config(name='add-map-paragraph.menu', context=IParagraphContainerTarget, view=IParagraphContainerView,
+                    layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=600)
+    class MapParagraphAddMenu(BaseParagraphAddMenu):
+        """Map paragraph add menu"""
+
+        label = _("Location map...")
+        label_css_class = 'fa fa-fw fa-map-marker'
+        url = 'add-map-paragraph.html'
+        paragraph_type = MAP_PARAGRAPH_TYPE
+
+
+    @pagelet_config(name='add-map-paragraph.html', context=IParagraphContainerTarget, layer=IPyAMSLayer,
+                    permission=MANAGE_CONTENT_PERMISSION)
+    @ajax_config(name='add-map-paragraph.json', context=IParagraphContainerTarget, layer=IPyAMSLayer,
+                 base=BaseParagraphAJAXAddForm)
+    class MapParagraphAddForm(AdminDialogAddForm):
+        """Map paragraph add form"""
+
+        legend = _("Add new location map")
+        dialog_class = 'modal-large'
+        icon_css_class = 'fa fa-fw fa-map-marker'
+
+        fields = field.Fields(IMapParagraph).omit(*PARAGRAPH_HIDDEN_FIELDS)
+        edit_permission = MANAGE_CONTENT_PERMISSION
+
+        def create(self, data):
+            return MapParagraph()
+
+        def add(self, object):
+            IParagraphContainer(self.context).append(object)
+
+
+    @pagelet_config(name='properties.html', context=IMapParagraph, layer=IPyAMSLayer,
+                    permission=MANAGE_CONTENT_PERMISSION)
+    @ajax_config(name='properties.json', context=IMapParagraph, request_type=IPyAMSLayer,
+                 base=BaseParagraphAJAXEditForm)
+    class MapParagraphPropertiesEditForm(BaseParagraphPropertiesEditForm):
+        """Map paragraph properties edit form"""
+
+        prefix = 'map_properties.'
+
+        legend = _("Edit location map properties")
+        icon_css_class = 'fa fa-fw fa-map-marker'
+
+        fields = field.Fields(IMapParagraph).omit(*PARAGRAPH_HIDDEN_FIELDS)
+        fields['renderer'].widgetFactory = RendererFieldWidget
+
+        edit_permission = MANAGE_CONTENT_PERMISSION
+
+
+    @adapter_config(context=(IMapParagraph, IPyAMSLayer), provides=IParagraphInnerEditor)
+    @ajax_config(name='inner-properties.json', context=IMapParagraph, layer=IPyAMSLayer,
+                 base=BaseParagraphAJAXEditForm)
+    @implementer(IInnerForm)
+    class MapParagraphInnerEditForm(MapParagraphPropertiesEditForm):
+        """Map paragraph inner edit form"""
+
+        legend = None
+
+        @property
+        def buttons(self):
+            if self.mode == INPUT_MODE:
+                return button.Buttons(IParagraphEditFormButtons)
+            else:
+                return button.Buttons()
+
+        def get_ajax_output(self, changes):
+            output = super(self.__class__, self).get_ajax_output(changes)
+            updated = changes.get(IBaseParagraph, ())
+            if 'title' in updated:
+                output.setdefault('events', []).append(get_json_paragraph_refresh_event(self.context, self.request))
+            updated = changes.get(IMapParagraph, ())
+            if 'renderer' in updated:
+                output.setdefault('events', []).append(get_json_form_refresh_event(self.context, self.request,
+                                                                                   MapParagraphInnerEditForm))
+            return output
Binary file src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.mo has changed
--- a/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po	Wed Jul 18 15:49:51 2018 +0200
+++ b/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po	Wed Jul 18 15:50:14 2018 +0200
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-07-17 17:31+0200\n"
+"POT-Creation-Date: 2018-07-18 14:46+0200\n"
 "PO-Revision-Date: 2015-09-10 10:42+0200\n"
 "Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
 "Language-Team: French\n"
@@ -538,8 +538,8 @@
 msgstr "Liens associés"
 
 #: src/pyams_content/component/keynumber/portlet/zmi/templates/keynumber-preview.pt:31
-#: src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt:11
-#: src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt:8
+#: src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt:10
+#: src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt:7
 msgid "Link target is not published!"
 msgstr "Le contenu ciblé n'est pas publié"
 
@@ -784,6 +784,18 @@
 msgid "Paragraph was correctly added."
 msgstr "Le bloc a été ajouté."
 
+#: src/pyams_content/component/paragraph/zmi/map.py:55
+msgid "Location map..."
+msgstr "Carte de situation"
+
+#: src/pyams_content/component/paragraph/zmi/map.py:68
+msgid "Add new location map"
+msgstr "Ajout d'une carte de situation"
+
+#: src/pyams_content/component/paragraph/zmi/map.py:91
+msgid "Edit location map properties"
+msgstr "Propriétés de la carte"
+
 #: src/pyams_content/component/paragraph/zmi/video.py:54
 msgid "Video paragraph..."
 msgstr "Vidéo"
@@ -1069,6 +1081,35 @@
 msgid "List of paragraphs automatically added to a new content"
 msgstr "Liste des types de blocs ajoutés automatiquement aux nouveaux contenus"
 
+#: src/pyams_content/component/paragraph/interfaces/map.py:41
+msgid "Location map"
+msgstr "Carte"
+
+#: src/pyams_content/component/paragraph/interfaces/map.py:48
+#: src/pyams_content/component/paragraph/interfaces/contact.py:72
+msgid "GPS location"
+msgstr "Position GPS"
+
+#: src/pyams_content/component/paragraph/interfaces/map.py:49
+msgid "GPS coordinates used to locate map"
+msgstr "Coordonnées GPS de situation de la carte"
+
+#: src/pyams_content/component/paragraph/interfaces/map.py:52
+msgid "Display location mark?"
+msgstr "Marqueur de position ?"
+
+#: src/pyams_content/component/paragraph/interfaces/map.py:53
+msgid "If 'yes', a location marker will be displayed on map"
+msgstr "Si 'oui', un marqueur de position sera placé sur la carte"
+
+#: src/pyams_content/component/paragraph/interfaces/map.py:57
+msgid "Map template"
+msgstr "Mode de rendu"
+
+#: src/pyams_content/component/paragraph/interfaces/map.py:58
+msgid "Presentation template used for this map"
+msgstr "Mode de rendu utilisé par cette carte"
+
 #: src/pyams_content/component/paragraph/interfaces/video.py:42
 msgid "Video file content"
 msgstr ""
@@ -1269,10 +1310,6 @@
 msgid "Presentation template used for this contact"
 msgstr "Modèle de présentation utilisé pour ce contact"
 
-#: src/pyams_content/component/paragraph/interfaces/contact.py:72
-msgid "GPS location"
-msgstr "Position GPS"
-
 #: src/pyams_content/component/paragraph/interfaces/contact.py:73
 msgid "GPS coordinates used to locate contact"
 msgstr "Coordonnées GPS de situation du contact"
@@ -3259,16 +3296,16 @@
 "Les invités sont autorisés à consulter des contenus dont l'accès a été "
 "restreint"
 
-#: src/pyams_content/shared/common/interfaces/__init__.py:235
+#: src/pyams_content/shared/common/interfaces/__init__.py:238
 msgid "Principal ID"
 msgstr "ID utilisateur"
 
-#: src/pyams_content/shared/common/interfaces/__init__.py:274
-#: src/pyams_content/shared/common/interfaces/__init__.py:299
+#: src/pyams_content/shared/common/interfaces/__init__.py:277
+#: src/pyams_content/shared/common/interfaces/__init__.py:302
 msgid "Publication checks"
 msgstr "Activer le tunnel de publication"
 
-#: src/pyams_content/shared/common/interfaces/__init__.py:275
+#: src/pyams_content/shared/common/interfaces/__init__.py:278
 msgid ""
 "If 'yes', this contributor will have to confirm that contents have been "
 "previewed and checked before asking for publication"
@@ -3276,7 +3313,7 @@
 "Si 'oui', ce contributeur devra confirmer qu'il a bien prévisualisé et "
 "audité chaque contenu avant de pouvoir effectuer une demande de publication"
 
-#: src/pyams_content/shared/common/interfaces/__init__.py:300
+#: src/pyams_content/shared/common/interfaces/__init__.py:303
 msgid ""
 "If 'yes', this manager will have to confirm that contents have been "
 "previewed and checked before publishing a content"
@@ -3284,11 +3321,11 @@
 "Si 'oui', ce responsable devra confirmer qu'il a bien prévisualisé et audité "
 "chaque contenu avant de pouvoir effectuer une publication"
 
-#: src/pyams_content/shared/common/interfaces/__init__.py:305
+#: src/pyams_content/shared/common/interfaces/__init__.py:308
 msgid "Restricted contents"
 msgstr "Accès restreints"
 
-#: src/pyams_content/shared/common/interfaces/__init__.py:306
+#: src/pyams_content/shared/common/interfaces/__init__.py:309
 msgid ""
 "If 'yes', this manager will get restricted access to manage contents based "
 "on selected settings"
@@ -3296,11 +3333,11 @@
 "Si 'oui', ce responsable n'aura qu'un accès restreint à certains contenus en "
 "fonction de paramètres spécifiques"
 
-#: src/pyams_content/shared/common/interfaces/__init__.py:311
+#: src/pyams_content/shared/common/interfaces/__init__.py:314
 msgid "Selected owners"
 msgstr "Propriétaires"
 
-#: src/pyams_content/shared/common/interfaces/__init__.py:312
+#: src/pyams_content/shared/common/interfaces/__init__.py:315
 msgid "Manager will have access to contents owned by these principals"
 msgstr ""
 "Le responsable n'aura accès qu'aux contenus dont ces utilisateurs sont "
@@ -3802,8 +3839,8 @@
 msgid ""
 "If 'yes', content data type (if available) will be extracted from context"
 msgstr ""
-"Si 'oui', et si le contexte de la vue est \"typé\", seuls des contenus du même type "
-"que le contexte seront automatiquement sélectionnés"
+"Si 'oui', et si le contexte de la vue est \"typé\", seuls des contenus du "
+"même type que le contexte seront automatiquement sélectionnés"
 
 #: src/pyams_content/shared/view/interfaces/__init__.py:83
 msgid "Other data types"
@@ -3812,9 +3849,9 @@
 #: src/pyams_content/shared/view/interfaces/__init__.py:84
 msgid "Selected data types; leave empty for all"
 msgstr ""
-"Autres types de contenus sélectionnés ; si l'on n'extrait pas le type du contexte "
-"et si cette sélection est vide, tous les contenus (typés ou non) seront "
-"pris en charge"
+"Autres types de contenus sélectionnés ; si l'on n'extrait pas le type du "
+"contexte et si cette sélection est vide, tous les contenus (typés ou non) "
+"seront pris en charge"
 
 #: src/pyams_content/shared/view/interfaces/__init__.py:91
 msgid "Order by"
@@ -4879,7 +4916,7 @@
 msgid "List of selected pictograms which will be available to shared contents"
 msgstr "Liste des pictogrammes proposés dans les contenus partagés"
 
-#: src/pyams_content/features/renderer/zmi/__init__.py:70
+#: src/pyams_content/features/renderer/zmi/__init__.py:73
 #: src/pyams_content/features/renderer/zmi/templates/renderer-input.pt:4
 msgid "Edit renderer properties"
 msgstr "Propriétés du mode de rendu"
@@ -5066,11 +5103,11 @@
 msgid "Click to see menu items"
 msgstr "Montrer ou cacher les éléments du menu"
 
-#: src/pyams_content/features/menu/portlet/navigation/simple.py:68
+#: src/pyams_content/features/menu/portlet/navigation/simple.py:67
 msgid "Simple navigation"
 msgstr "Navigation à un niveau"
 
-#: src/pyams_content/features/menu/portlet/navigation/double.py:68
+#: src/pyams_content/features/menu/portlet/navigation/double.py:67
 msgid "Double navigation"
 msgstr "Navigation à deux niveaux"
 
@@ -5082,8 +5119,8 @@
 msgid "Navigation menus"
 msgstr "Menus de navigation"
 
-#: src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt:15
-#: src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt:12
+#: src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt:14
+#: src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt:11
 msgid "Link has no illustration"
 msgstr "Le lien n'a pas d'illustration"
 
@@ -5092,16 +5129,6 @@
 msgid "Portlet main title"
 msgstr "Titre du composant"
 
-#: src/pyams_content/features/menu/portlet/navigation/interfaces/simple.py:35
-#: src/pyams_content/features/menu/portlet/navigation/interfaces/double.py:35
-msgid "Subtitle"
-msgstr "Sous-titre"
-
-#: src/pyams_content/features/menu/portlet/navigation/interfaces/simple.py:36
-#: src/pyams_content/features/menu/portlet/navigation/interfaces/double.py:36
-msgid "Portlet subtitle"
-msgstr "Sous-titre du composant"
-
 #: src/pyams_content/features/menu/interfaces/__init__.py:64
 msgid "Menu title"
 msgstr "Libellé"
@@ -5378,6 +5405,12 @@
 msgid "Hidden header"
 msgstr "Ne pas afficher d'en-tête de pages"
 
+#~ msgid "Subtitle"
+#~ msgstr "Sous-titre"
+
+#~ msgid "Portlet subtitle"
+#~ msgstr "Sous-titre du composant"
+
 #~ msgid "Image associated to this data type"
 #~ msgstr "Image associée à ce type"
 
--- a/src/pyams_content/locales/pyams_content.pot	Wed Jul 18 15:49:51 2018 +0200
+++ b/src/pyams_content/locales/pyams_content.pot	Wed Jul 18 15:50:14 2018 +0200
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-07-17 17:31+0200\n"
+"POT-Creation-Date: 2018-07-18 14:46+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -518,8 +518,8 @@
 msgstr ""
 
 #: ./src/pyams_content/component/keynumber/portlet/zmi/templates/keynumber-preview.pt:31
-#: ./src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt:11
-#: ./src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt:8
+#: ./src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt:10
+#: ./src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt:7
 msgid "Link target is not published!"
 msgstr ""
 
@@ -744,6 +744,18 @@
 msgid "Paragraph was correctly added."
 msgstr ""
 
+#: ./src/pyams_content/component/paragraph/zmi/map.py:55
+msgid "Location map..."
+msgstr ""
+
+#: ./src/pyams_content/component/paragraph/zmi/map.py:68
+msgid "Add new location map"
+msgstr ""
+
+#: ./src/pyams_content/component/paragraph/zmi/map.py:91
+msgid "Edit location map properties"
+msgstr ""
+
 #: ./src/pyams_content/component/paragraph/zmi/video.py:54
 msgid "Video paragraph..."
 msgstr ""
@@ -1022,6 +1034,35 @@
 msgid "List of paragraphs automatically added to a new content"
 msgstr ""
 
+#: ./src/pyams_content/component/paragraph/interfaces/map.py:41
+msgid "Location map"
+msgstr ""
+
+#: ./src/pyams_content/component/paragraph/interfaces/map.py:48
+#: ./src/pyams_content/component/paragraph/interfaces/contact.py:72
+msgid "GPS location"
+msgstr ""
+
+#: ./src/pyams_content/component/paragraph/interfaces/map.py:49
+msgid "GPS coordinates used to locate map"
+msgstr ""
+
+#: ./src/pyams_content/component/paragraph/interfaces/map.py:52
+msgid "Display location mark?"
+msgstr ""
+
+#: ./src/pyams_content/component/paragraph/interfaces/map.py:53
+msgid "If 'yes', a location marker will be displayed on map"
+msgstr ""
+
+#: ./src/pyams_content/component/paragraph/interfaces/map.py:57
+msgid "Map template"
+msgstr ""
+
+#: ./src/pyams_content/component/paragraph/interfaces/map.py:58
+msgid "Presentation template used for this map"
+msgstr ""
+
 #: ./src/pyams_content/component/paragraph/interfaces/video.py:42
 msgid "Video file content"
 msgstr ""
@@ -1217,10 +1258,6 @@
 msgid "Presentation template used for this contact"
 msgstr ""
 
-#: ./src/pyams_content/component/paragraph/interfaces/contact.py:72
-msgid "GPS location"
-msgstr ""
-
 #: ./src/pyams_content/component/paragraph/interfaces/contact.py:73
 msgid "GPS coordinates used to locate contact"
 msgstr ""
@@ -3063,42 +3100,42 @@
 "Guests are users which are allowed to view contents with restricted access"
 msgstr ""
 
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:235
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:238
 msgid "Principal ID"
 msgstr ""
 
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:274
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:299
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:277
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:302
 msgid "Publication checks"
 msgstr ""
 
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:275
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:278
 msgid ""
 "If 'yes', this contributor will have to confirm that contents have been "
 "previewed and checked before asking for publication"
 msgstr ""
 
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:300
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:303
 msgid ""
 "If 'yes', this manager will have to confirm that contents have been previewed"
 " and checked before publishing a content"
 msgstr ""
 
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:305
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:308
 msgid "Restricted contents"
 msgstr ""
 
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:306
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:309
 msgid ""
 "If 'yes', this manager will get restricted access to manage contents based on"
 " selected settings"
 msgstr ""
 
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:311
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:314
 msgid "Selected owners"
 msgstr ""
 
-#: ./src/pyams_content/shared/common/interfaces/__init__.py:312
+#: ./src/pyams_content/shared/common/interfaces/__init__.py:315
 msgid "Manager will have access to contents owned by these principals"
 msgstr ""
 
@@ -4591,7 +4628,7 @@
 msgid "List of selected pictograms which will be available to shared contents"
 msgstr ""
 
-#: ./src/pyams_content/features/renderer/zmi/__init__.py:70
+#: ./src/pyams_content/features/renderer/zmi/__init__.py:73
 #: ./src/pyams_content/features/renderer/zmi/templates/renderer-input.pt:4
 msgid "Edit renderer properties"
 msgstr ""
@@ -4768,11 +4805,11 @@
 msgid "Click to see menu items"
 msgstr ""
 
-#: ./src/pyams_content/features/menu/portlet/navigation/simple.py:68
+#: ./src/pyams_content/features/menu/portlet/navigation/simple.py:67
 msgid "Simple navigation"
 msgstr ""
 
-#: ./src/pyams_content/features/menu/portlet/navigation/double.py:68
+#: ./src/pyams_content/features/menu/portlet/navigation/double.py:67
 msgid "Double navigation"
 msgstr ""
 
@@ -4784,8 +4821,8 @@
 msgid "Navigation menus"
 msgstr ""
 
-#: ./src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt:15
-#: ./src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt:12
+#: ./src/pyams_content/features/menu/portlet/navigation/zmi/templates/double-preview.pt:14
+#: ./src/pyams_content/features/menu/portlet/navigation/zmi/templates/simple-preview.pt:11
 msgid "Link has no illustration"
 msgstr ""
 
@@ -4794,16 +4831,6 @@
 msgid "Portlet main title"
 msgstr ""
 
-#: ./src/pyams_content/features/menu/portlet/navigation/interfaces/simple.py:35
-#: ./src/pyams_content/features/menu/portlet/navigation/interfaces/double.py:35
-msgid "Subtitle"
-msgstr ""
-
-#: ./src/pyams_content/features/menu/portlet/navigation/interfaces/simple.py:36
-#: ./src/pyams_content/features/menu/portlet/navigation/interfaces/double.py:36
-msgid "Portlet subtitle"
-msgstr ""
-
 #: ./src/pyams_content/features/menu/interfaces/__init__.py:64
 msgid "Menu title"
 msgstr ""