# HG changeset patch # User Thierry Florac # Date 1528284734 -7200 # Node ID 4fafaf94701dd23896db920b622a34c71b860a4b # Parent 7a2af6e086a6c1d14dc3afe855f68b687ca47802 Updated field title diff -r 7a2af6e086a6 -r 4fafaf94701d src/pyams_content/features/alert/interfaces.py --- 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"), diff -r 7a2af6e086a6 -r 4fafaf94701d src/pyams_content/features/alert/zmi/container.py --- 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 diff -r 7a2af6e086a6 -r 4fafaf94701d src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.mo Binary file src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.mo has changed diff -r 7a2af6e086a6 -r 4fafaf94701d src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po --- 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 \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 »...)" diff -r 7a2af6e086a6 -r 4fafaf94701d src/pyams_content/locales/pyams_content.pot --- 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 \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 ""