Updated field title
authorThierry Florac <thierry.florac@onf.fr>
Wed, 06 Jun 2018 13:32:14 +0200
changeset 590 4fafaf94701d
parent 589 7a2af6e086a6
child 591 b694d5667d17
child 658 b0bfac7e3160
Updated field title
src/pyams_content/features/alert/interfaces.py
src/pyams_content/features/alert/zmi/container.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
--- a/src/pyams_content/features/alert/interfaces.py	Wed Jun 06 13:16:18 2018 +0200
+++ b/src/pyams_content/features/alert/interfaces.py	Wed Jun 06 13:32:14 2018 +0200
@@ -62,8 +62,8 @@
                      default='info',
                      vocabulary=ALERT_GRAVITY_VOCABULARY)
 
-    header = I18nTextLineField(title=_("Header"),
-                               description=_("Short alert header"),
+    header = I18nTextLineField(title=_('alert-header', default="Heading"),
+                               description=_("Short alert header (Alert, Important...)"),
                                required=False)
 
     message = I18nTextLineField(title=_("Message"),
--- a/src/pyams_content/features/alert/zmi/container.py	Wed Jun 06 13:16:18 2018 +0200
+++ b/src/pyams_content/features/alert/zmi/container.py	Wed Jun 06 13:32:14 2018 +0200
@@ -155,7 +155,7 @@
 class AlertContainerHeaderColumn(I18nColumn, I18nAttrColumn):
     """Alert container header column"""
 
-    _header = _("Header")
+    _header = _('alert-header', default="Heading")
     attrName = 'header'
     weight = 20
 
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 Jun 06 13:16:18 2018 +0200
+++ b/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po	Wed Jun 06 13:32:14 2018 +0200
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-06-06 13:14+0200\n"
+"POT-Creation-Date: 2018-06-06 13:20+0200\n"
 "PO-Revision-Date: 2015-09-10 10:42+0200\n"
 "Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
 "Language-Team: French\n"
@@ -1231,7 +1231,6 @@
 
 #: src/pyams_content/component/paragraph/interfaces/header.py:33
 #: src/pyams_content/component/paragraph/interfaces/header.py:40
-#: src/pyams_content/features/alert/zmi/container.py:158
 msgid "Header"
 msgstr "Chapô"
 
@@ -3828,7 +3827,6 @@
 msgstr "Article"
 
 #: src/pyams_content/shared/site/interfaces/__init__.py:58
-#: src/pyams_content/features/alert/interfaces.py:65
 msgid "Heading"
 msgstr "Chapô"
 
@@ -4548,6 +4546,12 @@
 msgid "Alert gravity will affect rendered alert style"
 msgstr "Le niveau de gravité choisi affectera le style de rendu de l'alerte"
 
+#. Default: Heading
+#: src/pyams_content/features/alert/interfaces.py:65
+#: src/pyams_content/features/alert/zmi/container.py:158
+msgid "alert-header"
+msgstr "En-tête"
+
 #: src/pyams_content/features/alert/interfaces.py:66
 msgid "Short alert header (Alert, Important...)"
 msgstr "En-tête de l'alerte (« Alerte », « Important », « Prudence »...)"
--- a/src/pyams_content/locales/pyams_content.pot	Wed Jun 06 13:16:18 2018 +0200
+++ b/src/pyams_content/locales/pyams_content.pot	Wed Jun 06 13:32:14 2018 +0200
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2018-06-06 13:14+0200\n"
+"POT-Creation-Date: 2018-06-06 13:20+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"
@@ -1180,7 +1180,6 @@
 
 #: ./src/pyams_content/component/paragraph/interfaces/header.py:33
 #: ./src/pyams_content/component/paragraph/interfaces/header.py:40
-#: ./src/pyams_content/features/alert/zmi/container.py:158
 msgid "Header"
 msgstr ""
 
@@ -3611,7 +3610,6 @@
 msgstr ""
 
 #: ./src/pyams_content/shared/site/interfaces/__init__.py:58
-#: ./src/pyams_content/features/alert/interfaces.py:65
 msgid "Heading"
 msgstr ""
 
@@ -4322,6 +4320,12 @@
 msgid "Alert gravity will affect rendered alert style"
 msgstr ""
 
+#. Default: Heading
+#: ./src/pyams_content/features/alert/interfaces.py:65
+#: ./src/pyams_content/features/alert/zmi/container.py:158
+msgid "alert-header"
+msgstr ""
+
 #: ./src/pyams_content/features/alert/interfaces.py:66
 msgid "Short alert header (Alert, Important...)"
 msgstr ""