volto/i18n-improvements: Added i18n more support for 'SchemaWidget component' from ma
"Leonardo J. Caballero G" <jenkins-z4DKO/[email protected]> Thu, 12 Dec 2019 23:38:28 -0800 (PST)
| Newsgroups | gmane.comp.web.zope.plone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Repository: volto Branch: refs/heads/i18n-improvements Date: 2019-12-13T03:35:11-04:00 Author: Leonardo J. Caballero G (macagua) <[email protected]> Commit: https://github.com/plone/volto/commit/220a56980b9f54265eb4c3dba483557285812bd9 Added i18n more support for 'SchemaWidget component' from manage components and updated locales files Files changed: M locales/de/LC_MESSAGES/volto.po M locales/en/LC_MESSAGES/volto.po M locales/es/LC_MESSAGES/volto.po M locales/it/LC_MESSAGES/volto.po M locales/nl/LC_MESSAGES/volto.po M locales/volto.pot M src/components/manage/Widgets/SchemaWidget.jsx b'diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po\nindex 37bfd2a57..9d46bd45d 100644\n--- a/locales/de/LC_MESSAGES/volto.po\n+++ b/locales/de/LC_MESSAGES/volto.po\n@@ -49,6 +49,7 @@ msgid "Actions"\n msgstr "Aktionen"\n \n #: components/manage/Controlpanels/UsersControlpanel\n+#: components/manage/Widgets/SchemaWidget\n msgid "Add"\n msgstr ""\n \ndiff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po\nindex 65c9f05fb..04de93ae4 100644\n--- a/locales/en/LC_MESSAGES/volto.po\n+++ b/locales/en/LC_MESSAGES/volto.po\n@@ -34,6 +34,7 @@ msgid "Actions"\n msgstr ""\n \n #: components/manage/Controlpanels/UsersControlpanel\n+#: components/manage/Widgets/SchemaWidget\n msgid "Add"\n msgstr ""\n \ndiff --git a/locales/es/LC_MESSAGES/volto.po b/l ocales/es/LC_MESSAGES/volto.po\nindex 03cf1bb2a..48e51ae0b 100644\n--- a/locales/es/LC_MESSAGES/volto.po\n+++ b/locales/es/LC_MESSAGES/volto.po\n@@ -44,6 +44,7 @@ msgid "Actions"\n msgstr "Acciones"\n \n #: components/manage/Controlpanels/UsersControlpanel\n+#: components/manage/Widgets/SchemaWidget\n msgid "Add"\n msgstr "Agregar"\n \ndiff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po\nindex 2afc80a29..64afddc70 100644\n--- a/locales/it/LC_MESSAGES/volto.po\n+++ b/locales/it/LC_MESSAGES/volto.po\n@@ -34,6 +34,7 @@ msgid "Actions"\n msgstr "Azioni"\n \n #: components/manage/Controlpanels/UsersControlpanel\n+#: components/manage/Widgets/SchemaWidget\n msgid "Add"\n msgstr ""\n \ndiff --git a/locales/nl/LC_MESSAGES/volto.po b/locales/nl/LC_MESSAGES/volto.po\nind ex 29b8ddc0a..67d0de100 100644\n--- a/locales/nl/LC_MESSAGES/volto.po\n+++ b/locales/nl/LC_MESSAGES/volto.po\n@@ -53,6 +53,7 @@ msgid "Actions"\n msgstr "Acties"\n \n #: components/manage/Controlpanels/UsersControlpanel\n+#: components/manage/Widgets/SchemaWidget\n msgid "Add"\n msgstr ""\n \ndiff --git a/locales/volto.pot b/locales/volto.pot\nindex 9d0448da9..99cdb0718 100644\n--- a/locales/volto.pot\n+++ b/locales/volto.pot\n@@ -1,7 +1,7 @@\n msgid ""\n msgstr ""\n "Project-Id-Version: Plone\\n"\n-"POT-Creation-Date: 2019-12-12T21:47:21.561Z\\n"\n+"POT-Creation-Date: 2019-12-13T07:31:41.991Z\\n"\n "Last-Translator: Plone i18n <[email protected]>\\n"\n "Language-Team: Plone i18n <[email protected]>\\n"\n "MIME-Version: 1.0\\n"\n@@ -41,6 +41,7 @@ msgid "Acti ons"\n msgstr ""\n \n #: components/manage/Controlpanels/UsersControlpanel\n+#: components/manage/Widgets/SchemaWidget\n # defaultMessage: Add\n msgid "Add"\n msgstr ""\ndiff --git a/src/components/manage/Widgets/SchemaWidget.jsx b/src/components/manage/Widgets/SchemaWidget.jsx\nindex fdfe81858..db4e24214 100644\n--- a/src/components/manage/Widgets/SchemaWidget.jsx\n+++ b/src/components/manage/Widgets/SchemaWidget.jsx\n@@ -17,6 +17,10 @@ import HTML5Backend from \'react-dnd-html5-backend\';\n import { Field, ModalForm, SchemaWidgetFieldset } from \'../../../components\';\n \n const messages = defineMessages({\n+ add: {\n+ id: \'Add\',\n+ defaultMessage: \'Add\',\n+ },\n addField: {\n id: \'Add field\',\n defaultMessage: \'Add field\',\n@@ -565,7 +569,7 @@ class SchemaWi dget extends Component {\n ))}\n <div className="item">\n <button\n- aria-label="Add"\n+ aria-label={this.props.intl.formatMessage(messages.add)}\n className="item ui noborder button"\n onClick={this.onShowAddFieldset}\n >\n@@ -597,7 +601,7 @@ class SchemaWidget extends Component {\n </div>\n <div className="toolbar">\n <button\n- aria-label="Add"\n+ aria-label={this.props.intl.formatMessage(messages.add)}\n id="addfield"\n className="item ui noborder button"\n onClick={this.onShowAddField}\n'