volto/i18n-improvements: Added i18n more support for 'Comments components' from manag
"Leonardo J. Caballero G" <jenkins-z4DKO/[email protected]> Thu, 12 Dec 2019 08:59:47 -0800 (PST)
| Newsgroups | gmane.comp.web.zope.plone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Repository: volto Branch: refs/heads/i18n-improvements Date: 2019-12-12T12:54:58-04:00 Author: Leonardo J. Caballero G (macagua) <[email protected]> Commit: https://github.com/plone/volto/commit/ab705626049dbc07126c99fa412374a3b9aa749e Added i18n more support for 'Comments components' from manage components and updated locales files Files changed: M locales/volto.pot M src/components/theme/Comments/Comments.jsx b'diff --git a/locales/volto.pot b/locales/volto.pot\nindex 26b5e7ca8..d7119057d 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-12T16:40:57.590Z\\n"\n+"POT-Creation-Date: 2019-12-12T16:50:16.139Z\\n"\n "Last-Translator: Plone i18n <[email protected]>\\n"\n "Language-Team: Plone i18n <[email protected]>\\n"\n "MIME-Version: 1.0\\n"\ndiff --git a/src/components/theme/Comments/Comments.jsx b/src/components/theme/Comments/Comments.jsx\nindex 5c16d38af..056bf5896 100644\n--- a/src/components/theme/Comments/Comments.jsx\n+++ b/src/components/theme/Comments/Comments.jsx\n@@ -31,6 +31,14 @@ const messages = defineMessages({\n id: \'Default\',\n defa ultMessage: \'Default\',\n },\n+ delete: {\n+ id: \'Delete\',\n+ defaultMessage: \'Delete\',\n+ },\n+ edit: {\n+ id: \'Edit\',\n+ defaultMessage: \'Edit\',\n+ },\n });\n \n /**\n@@ -216,7 +224,7 @@ class Comments extends Component {\n {item.text.data}\n {item.is_deletable && (\n <Button\n- aria-label="Delete"\n+ aria-label={this.props.intl.formatMessage(messages.delete)}\n onClick={this.onDelete}\n value={item[\'@id\'].replace(settings.apiPath, \'\')}\n color="red"\n@@ -227,7 +235,7 @@ class Comments extends Component {\n )}\n {item.is_editable && (\n <Button\n- aria-label="Edit"\ n+ aria-label={this.props.intl.formatMessage(messages.edit)}\n onClick={this.onEdit}\n floated="right"\n value={{\n'