Added message when portlet's renderer is modified
authorThierry Florac <thierry.florac@onf.fr>
Mon, 03 Sep 2018 16:46:31 +0200
changeset 168 2aa091bd9090
parent 167 885d64d94aed
child 169 2853b237d2d4
Added message when portlet's renderer is modified
src/pyams_portal/locales/fr/LC_MESSAGES/pyams_portal.mo
src/pyams_portal/locales/fr/LC_MESSAGES/pyams_portal.po
src/pyams_portal/locales/pyams_portal.pot
src/pyams_portal/zmi/portlet.py
Binary file src/pyams_portal/locales/fr/LC_MESSAGES/pyams_portal.mo has changed
--- a/src/pyams_portal/locales/fr/LC_MESSAGES/pyams_portal.po	Thu Aug 30 10:09:00 2018 +0200
+++ b/src/pyams_portal/locales/fr/LC_MESSAGES/pyams_portal.po	Mon Sep 03 16:46:31 2018 +0200
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-08-30 10:05+0200\n"
+"POT-Creation-Date: 2018-09-03 16:44+0200\n"
 "PO-Revision-Date: 2015-05-12 12:10+0200\n"
 "Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
 "Language-Team: French <traduc@traduc.org>\n"
@@ -44,7 +44,7 @@
 msgid "Main properties"
 msgstr "Propriétés"
 
-#: src/pyams_portal/zmi/portlet.py:162
+#: src/pyams_portal/zmi/portlet.py:168
 #: src/pyams_portal/zmi/templates/renderer-input.pt:4
 msgid "Edit renderer properties"
 msgstr "Propriétés du mode de rendu"
@@ -62,6 +62,14 @@
 msgid "Override parent settings"
 msgstr "Remplacer le paramétrage du parent"
 
+#: src/pyams_portal/zmi/portlet.py:148
+msgid ""
+"You changed renderer selection. Don't omit to update new renderer "
+"properties..."
+msgstr ""
+"Vous avez changé de mode de rendu. N'oubliez pas de vérifier les propriétés du "
+"nouveau mode de rendu sélectionné..."
+
 #: src/pyams_portal/zmi/page.py:66
 msgid "Presentation"
 msgstr "Présentation"
@@ -302,7 +310,9 @@
 
 #: src/pyams_portal/zmi/templates/layout.pt:125
 msgid "Portlet settings are not those of original template"
-msgstr "Les propriétés du composant ne sont pas celles héritées du modèle de présentation"
+msgstr ""
+"Les propriétés du composant ne sont pas celles héritées du modèle de "
+"présentation"
 
 #: src/pyams_portal/zmi/templates/layout.pt:143
 msgid "Delete row..."
--- a/src/pyams_portal/locales/pyams_portal.pot	Thu Aug 30 10:09:00 2018 +0200
+++ b/src/pyams_portal/locales/pyams_portal.pot	Mon Sep 03 16:46:31 2018 +0200
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-08-30 10:05+0200\n"
+"POT-Creation-Date: 2018-09-03 16:44+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"
@@ -42,7 +42,7 @@
 msgid "Main properties"
 msgstr ""
 
-#: ./src/pyams_portal/zmi/portlet.py:162
+#: ./src/pyams_portal/zmi/portlet.py:168
 #: ./src/pyams_portal/zmi/templates/renderer-input.pt:4
 msgid "Edit renderer properties"
 msgstr ""
@@ -60,6 +60,12 @@
 msgid "Override parent settings"
 msgstr ""
 
+#: ./src/pyams_portal/zmi/portlet.py:148
+msgid ""
+"You changed renderer selection. Don't omit to update new renderer "
+"properties..."
+msgstr ""
+
 #: ./src/pyams_portal/zmi/page.py:66
 msgid "Presentation"
 msgstr ""
--- a/src/pyams_portal/zmi/portlet.py	Thu Aug 30 10:09:00 2018 +0200
+++ b/src/pyams_portal/zmi/portlet.py	Mon Sep 03 16:46:31 2018 +0200
@@ -143,6 +143,12 @@
                 })
                 output.setdefault('events', []).append(
                     get_json_widget_refresh_event(self.context, self.request, get_form_factory, 'renderer'))
+                output['smallbox'] = {
+                    'status': 'info',
+                    'message': self.request.localizer.translate(_("You changed renderer selection. Don't omit to "
+                                                                  "update new renderer properties...")),
+                    'timeout': 5000
+                }
         return output