From 9ea23cbb4d5123700d26b1cba1794c494aee7153 Mon Sep 17 00:00:00 2001 From: Lukasz Ostafin Date: Mon, 9 Oct 2023 12:55:43 +0200 Subject: [PATCH] Fixed buttons label --- src/bundle/Resources/translations/locationview.en.xliff | 4 ++-- .../translations/universal_discovery_widget.en.xliff | 8 ++++---- .../themes/admin/content/widget/content_create.html.twig | 2 +- .../content-create-widget/content.create.widget.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bundle/Resources/translations/locationview.en.xliff b/src/bundle/Resources/translations/locationview.en.xliff index 8528d6cbb8..6c6adb7270 100644 --- a/src/bundle/Resources/translations/locationview.en.xliff +++ b/src/bundle/Resources/translations/locationview.en.xliff @@ -17,8 +17,8 @@ key: bulk_action.failed.modal.content_type_name - Cancel - Cancel + Discard + Discard key: content.create.cancel_btn.label diff --git a/src/bundle/Resources/translations/universal_discovery_widget.en.xliff b/src/bundle/Resources/translations/universal_discovery_widget.en.xliff index 6cdf508087..662d292645 100644 --- a/src/bundle/Resources/translations/universal_discovery_widget.en.xliff +++ b/src/bundle/Resources/translations/universal_discovery_widget.en.xliff @@ -56,10 +56,10 @@ Or choose from list key: content.create.filters.desc - - Cancel - Cancel - key: content_create.cancel.label + + Discard + Discard + key: content_create.discard.label Content create diff --git a/src/bundle/Resources/views/themes/admin/content/widget/content_create.html.twig b/src/bundle/Resources/views/themes/admin/content/widget/content_create.html.twig index 7191485337..3b71eadb0b 100644 --- a/src/bundle/Resources/views/themes/admin/content/widget/content_create.html.twig +++ b/src/bundle/Resources/views/themes/admin/content/widget/content_create.html.twig @@ -61,7 +61,7 @@ } }) }} diff --git a/src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-widget/content.create.widget.js b/src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-widget/content.create.widget.js index 1e02e32b44..e0ecc4a106 100644 --- a/src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-widget/content.create.widget.js +++ b/src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-widget/content.create.widget.js @@ -79,7 +79,7 @@ const ContentCreateWidget = () => { ); const createLabel = Translator.trans(/*@Desc("Create")*/ 'create_content.create', {}, 'universal_discovery_widget'); const closeLabel = Translator.trans(/*@Desc("Close")*/ 'popup.close.label', {}, 'universal_discovery_widget'); - const cancelLabel = Translator.trans(/*@Desc("Cancel")*/ 'content_create.cancel.label', {}, 'universal_discovery_widget'); + const cancelLabel = Translator.trans(/*@Desc("Discard")*/ 'content_create.discard.label', {}, 'universal_discovery_widget'); const placeholder = Translator.trans(/*@Desc("Type to refine")*/ 'content_create.placeholder', {}, 'universal_discovery_widget'); const filtersDescLabel = Translator.trans( /*@Desc("Or choose from list")*/ 'content.create.filters.desc',