volto/i18n-improvements: Added i18n more support for 'WysiwygWidget container' from m
"Leonardo J. Caballero G" <jenkins-z4DKO/[email protected]> Thu, 12 Dec 2019 08:08:23 -0800 (PST)
| Newsgroups | gmane.comp.web.zope.plone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Repository: volto Branch: refs/heads/i18n-improvements Date: 2019-12-12T12:05:19-04:00 Author: Leonardo J. Caballero G (macagua) <[email protected]> Commit: https://github.com/plone/volto/commit/b49a1815c5401e478e967b54551ebdede6a2f733 Added i18n more support for 'WysiwygWidget container' 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/WysiwygWidget.jsx b'diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po\nindex e49af641b..36d572518 100644\n--- a/locales/de/LC_MESSAGES/volto.po\n+++ b/locales/de/LC_MESSAGES/volto.po\n@@ -317,6 +317,7 @@ msgstr "Standard"\n #: components/manage/Delete/Delete\n #: components/manage/Widgets/TextareaWidget\n #: components/manage/Widgets/TextWidget\n+#: components/manage/Widgets/WysiwygWidget\n #: components/theme/Comments/Comments\n msgid "Delete"\n msgstr "L\xc3\xb6schen"\ndiff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po\nindex 25e93d4f9..7cbed76be 100644\n--- a/locales/en/LC_MESSAGES/volto.po\n+++ b/locales/en/LC_MESSAGES/volto.po\n@@ -302,6 +302,7 @@ msgstr ""\n #: components/manage/Delete/Delete\n #: components/manage/Widgets/TextareaWidget\n #: co mponents/manage/Widgets/TextWidget\n+#: components/manage/Widgets/WysiwygWidget\n #: components/theme/Comments/Comments\n msgid "Delete"\n msgstr ""\ndiff --git a/locales/es/LC_MESSAGES/volto.po b/locales/es/LC_MESSAGES/volto.po\nindex 2ea4ada63..dcd9777e5 100644\n--- a/locales/es/LC_MESSAGES/volto.po\n+++ b/locales/es/LC_MESSAGES/volto.po\n@@ -312,6 +312,7 @@ msgstr "Por defecto"\n #: components/manage/Delete/Delete\n #: components/manage/Widgets/TextareaWidget\n #: components/manage/Widgets/TextWidget\n+#: components/manage/Widgets/WysiwygWidget\n #: components/theme/Comments/Comments\n msgid "Delete"\n msgstr "Eliminar"\ndiff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po\nindex 6d2a230ec..2063b6030 100644\n--- a/locales/it/LC_MESSAGES/volto.po\n+++ b/locale s/it/LC_MESSAGES/volto.po\n@@ -302,6 +302,7 @@ msgstr "Default"\n #: components/manage/Delete/Delete\n #: components/manage/Widgets/TextareaWidget\n #: components/manage/Widgets/TextWidget\n+#: components/manage/Widgets/WysiwygWidget\n #: components/theme/Comments/Comments\n msgid "Delete"\n msgstr "Elimina"\ndiff --git a/locales/nl/LC_MESSAGES/volto.po b/locales/nl/LC_MESSAGES/volto.po\nindex 996a88de6..208878e8b 100644\n--- a/locales/nl/LC_MESSAGES/volto.po\n+++ b/locales/nl/LC_MESSAGES/volto.po\n@@ -321,6 +321,7 @@ msgstr "Standaard"\n #: components/manage/Delete/Delete\n #: components/manage/Widgets/TextareaWidget\n #: components/manage/Widgets/TextWidget\n+#: components/manage/Widgets/WysiwygWidget\n #: components/theme/Comments/Comments\n msgid "Delete"\n msgstr "Verwijderen"\ndiff --git a/locales/volto.pot b/locales/volto.pot\nindex 76f303ce8..81861f2cd 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-12T15:47:20.850Z\\n"\n+"POT-Creation-Date: 2019-12-12T16:04:41.770Z\\n"\n "Last-Translator: Plone i18n <[email protected]>\\n"\n "Language-Team: Plone i18n <[email protected]>\\n"\n "MIME-Version: 1.0\\n"\n@@ -362,6 +362,7 @@ msgstr ""\n #: components/manage/Delete/Delete\n #: components/manage/Widgets/TextareaWidget\n #: components/manage/Widgets/TextWidget\n+#: components/manage/Widgets/WysiwygWidget\n #: components/theme/Comments/Comments\n # defaultMessage: Delete\n msgid "Delete"\ndiff --git a/src/components/manage/Widgets /WysiwygWidget.jsx b/src/components/manage/Widgets/WysiwygWidget.jsx\nindex fc60ce73b..56a29879d 100644\n--- a/src/components/manage/Widgets/WysiwygWidget.jsx\n+++ b/src/components/manage/Widgets/WysiwygWidget.jsx\n@@ -42,6 +42,10 @@ const messages = defineMessages({\n id: \'Required\',\n defaultMessage: \'Required\',\n },\n+ delete: {\n+ id: \'Delete\',\n+ defaultMessage: \'Delete\',\n+ },\n });\n \n /**\n@@ -287,7 +291,7 @@ class WysiwygWidget extends Component {\n <Icon name="write square" size="large" color="blue" />\n </button>\n <button\n- aria-label="Delete"\n+ aria-label={this.props.intl.formatMessage(messages.delete)}\n className="item ui noborder b utton"\n onClick={() => onDelete(id)}\n >\n'