From 6939cc64e2b0a5ab785e7457983ca68e94dc6045 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mateusz=20D=C4=99bi=C5=84ski?=
<58430570+mateuszdebinski@users.noreply.github.com>
Date: Thu, 25 Jan 2024 11:13:37 +0100
Subject: [PATCH] IBX-7119, IBX-7171, IBX-7123: Corrected Headers inconsistency
in Account settings (#67)
---
src/bundle/Controller/UserSettingsController.php | 1 +
.../Resources/translations/ibexa_user_settings.en.xliff | 8 ++++----
src/lib/UserSetting/Group/EditContentGroup.php | 4 ++--
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/bundle/Controller/UserSettingsController.php b/src/bundle/Controller/UserSettingsController.php
index 600444e..3f82378 100644
--- a/src/bundle/Controller/UserSettingsController.php
+++ b/src/bundle/Controller/UserSettingsController.php
@@ -122,6 +122,7 @@ public function updateAction(Request $request, UpdateView $view)
$view->addParameters([
'form' => $form->createView(),
+ 'title' => $userSettingGroup->getName(),
]);
return $view;
diff --git a/src/bundle/Resources/translations/ibexa_user_settings.en.xliff b/src/bundle/Resources/translations/ibexa_user_settings.en.xliff
index 74f2ac3..6989608 100644
--- a/src/bundle/Resources/translations/ibexa_user_settings.en.xliff
+++ b/src/bundle/Resources/translations/ibexa_user_settings.en.xliff
@@ -81,10 +81,10 @@
key: settings.group.edit_content.description
-
-
- Edit
- key: settings.group.edit_content.name
+
+
+ Content authoring
+ key: settings.group.content_authoring.name
diff --git a/src/lib/UserSetting/Group/EditContentGroup.php b/src/lib/UserSetting/Group/EditContentGroup.php
index dcfcdb6..2637f64 100644
--- a/src/lib/UserSetting/Group/EditContentGroup.php
+++ b/src/lib/UserSetting/Group/EditContentGroup.php
@@ -26,8 +26,8 @@ public function __construct(
public function getName(): string
{
return $this->translator->trans(
- /** @Desc("Edit") */
- 'settings.group.edit_content.name',
+ /** @Desc("Content authoring") */
+ 'settings.group.content_authoring.name',
[],
'ibexa_user_settings'
);