From a78fe5961590713ebdea895775484bb7a88a4fed Mon Sep 17 00:00:00 2001
From: tischsoic
Date: Mon, 7 Aug 2023 15:09:17 +0200
Subject: [PATCH 01/21] IBX-6314: initial
---
features/personas/SubtreeEditor.feature | 4 ++--
.../themes/admin/account/bookmarks/toggle_switch.html.twig | 2 +-
.../admin/content/modal/user_group_invitation_modal.html.twig | 2 +-
.../views/themes/admin/content/tab/details.html.twig | 2 +-
.../views/themes/admin/content/tab/locations/tab.html.twig | 2 +-
.../themes/admin/ui/field_type/edit/relation_base.html.twig | 2 +-
src/bundle/Resources/views/themes/admin/ui/layout.html.twig | 2 +-
.../themes/admin/user/invitation/issue_email_empty.html.twig | 2 +-
.../views/themes/admin/user/role_assignment/create.html.twig | 2 +-
src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js | 2 +-
src/lib/Behat/Page/ContentViewPage.php | 2 +-
src/lib/Form/Type/Content/CustomUrl/CustomUrlAddType.php | 1 +
src/lib/Form/Type/Location/LocationAssignSectionType.php | 2 +-
src/lib/Form/Type/Location/LocationTrashType.php | 2 +-
14 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/features/personas/SubtreeEditor.feature b/features/personas/SubtreeEditor.feature
index fe2a6cb612..605955910c 100644
--- a/features/personas/SubtreeEditor.feature
+++ b/features/personas/SubtreeEditor.feature
@@ -61,7 +61,7 @@ Feature: Verify that an Editor with Subtree limitations can perform all his task
| buttonName |
| Create content |
| Edit |
- And the "Send to Trash" button is not visible
+ And the "Delete" button is not visible
Scenario: I cannot edit, create or send to trash Content outside my permissions
Given I navigate to content "FolderGrandParent" of type "DedicatedFolder" in "root"
@@ -69,4 +69,4 @@ Feature: Verify that an Editor with Subtree limitations can perform all his task
| buttonName |
| Create content |
| Edit |
- And the "Send to Trash" button is not visible
+ And the "Delete" button is not visible
diff --git a/src/bundle/Resources/views/themes/admin/account/bookmarks/toggle_switch.html.twig b/src/bundle/Resources/views/themes/admin/account/bookmarks/toggle_switch.html.twig
index d433a6b718..5ba6be149c 100644
--- a/src/bundle/Resources/views/themes/admin/account/bookmarks/toggle_switch.html.twig
+++ b/src/bundle/Resources/views/themes/admin/account/bookmarks/toggle_switch.html.twig
@@ -4,7 +4,7 @@
{% if limit != 0 %}
diff --git a/src/bundle/Resources/views/themes/admin/ui/layout.html.twig b/src/bundle/Resources/views/themes/admin/ui/layout.html.twig
index 6439d323a1..07b5a39a74 100644
--- a/src/bundle/Resources/views/themes/admin/ui/layout.html.twig
+++ b/src/bundle/Resources/views/themes/admin/ui/layout.html.twig
@@ -62,7 +62,7 @@
window.ibexa.addConfig('richText', {{ ibexa_richtext_config|json_encode|raw }});
window.ibexa.addConfig('errors', {
emailRegexp: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
- emptyField: '{{ 'js.error.empty.field'|trans({}, 'validators')|desc('{fieldName} Field is required') }}',
+ emptyField: '{{ 'js.error.empty.field'|trans({}, 'validators')|desc('{fieldName} Field cannot be empty') }}',
invalidEmail: '{{ 'js.error.invalid_email'|trans({}, 'validators')|desc('A valid email address is required') }}',
invalidUrl: '{{ 'js.error.invalid_url'|trans({}, 'validators')|desc('A valid URL is required') }}',
tooLong: '{{ 'js.error.too_long'|trans({}, 'validators')|desc('{fieldName} value must be less than or equal to {maxLength} characters') }}',
diff --git a/src/bundle/Resources/views/themes/admin/user/invitation/issue_email_empty.html.twig b/src/bundle/Resources/views/themes/admin/user/invitation/issue_email_empty.html.twig
index e61dfc7e29..5f10194e1d 100644
--- a/src/bundle/Resources/views/themes/admin/user/invitation/issue_email_empty.html.twig
+++ b/src/bundle/Resources/views/themes/admin/user/invitation/issue_email_empty.html.twig
@@ -4,5 +4,5 @@
{{ form_widget(form.limitation_type.none, {
- 'label': 'limitation_type.none'|trans|desc('No Limitations'),
+ 'label': 'limitation_type.none'|trans|desc('No limitations'),
'attr': {'class': 'ibexa-assign__limitations-item-radio'},
'label_attr': {'class': 'ibexa-limitations__label radio-inline'}
}) }}
diff --git a/src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js b/src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js
index 7bb4f4faf2..4ce9c5d0a9 100644
--- a/src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js
+++ b/src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js
@@ -872,7 +872,7 @@ export default class SubItemsModule extends Component {
let confirmLabel = '';
if (!isUserContentItemSelected && isNonUserContentItemSelected) {
- confirmLabel = Translator.trans(/*@Desc("Send to Trash")*/ 'bulk_delete.popup.confirm.nonusers', {}, 'sub_items');
+ confirmLabel = Translator.trans(/*@Desc("Delete")*/ 'bulk_delete.popup.confirm.nonusers', {}, 'sub_items');
} else {
confirmLabel = Translator.trans(/*@Desc("Delete")*/ 'bulk_delete.popup.confirm.users_and_users_with_nonusers', {}, 'sub_items');
}
diff --git a/src/lib/Behat/Page/ContentViewPage.php b/src/lib/Behat/Page/ContentViewPage.php
index 189d9d6ed6..1a65d42c07 100644
--- a/src/lib/Behat/Page/ContentViewPage.php
+++ b/src/lib/Behat/Page/ContentViewPage.php
@@ -269,7 +269,7 @@ public function isChildElementPresent(array $parameters): bool
public function sendToTrash()
{
- $this->contentActionsMenu->clickButton('Send to Trash');
+ $this->contentActionsMenu->clickButton('Delete');
$this->dialog->verifyIsLoaded();
$this->dialog->confirm();
}
diff --git a/src/lib/Form/Type/Content/CustomUrl/CustomUrlAddType.php b/src/lib/Form/Type/Content/CustomUrl/CustomUrlAddType.php
index accda1c220..89cd2d4cdf 100644
--- a/src/lib/Form/Type/Content/CustomUrl/CustomUrlAddType.php
+++ b/src/lib/Form/Type/Content/CustomUrl/CustomUrlAddType.php
@@ -115,6 +115,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$this->siteAccessNameGenerator,
$location
),
+ 'placeholder' => /** @Desc("None") */ 'custom_url_alias_add_form.site_access.placeholder',
]
)
->add(
diff --git a/src/lib/Form/Type/Location/LocationAssignSectionType.php b/src/lib/Form/Type/Location/LocationAssignSectionType.php
index 41550f7237..c562846ab1 100644
--- a/src/lib/Form/Type/Location/LocationAssignSectionType.php
+++ b/src/lib/Form/Type/Location/LocationAssignSectionType.php
@@ -30,7 +30,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
])
->add('location', LocationType::class)
->add('assign', SubmitType::class, [
- 'label' => /** @Desc("Change Section") */ 'section_subtree_assign_form.assign',
+ 'label' => /** @Desc("Change section") */ 'section_subtree_assign_form.assign',
]);
}
diff --git a/src/lib/Form/Type/Location/LocationTrashType.php b/src/lib/Form/Type/Location/LocationTrashType.php
index 5263bb1c19..0f48ff1d45 100644
--- a/src/lib/Form/Type/Location/LocationTrashType.php
+++ b/src/lib/Form/Type/Location/LocationTrashType.php
@@ -56,7 +56,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add(
'trash',
SubmitType::class,
- ['label' => /** @Desc("Send to Trash") */ 'location_trash_form.trash']
+ ['label' => /** @Desc("Delete") */ 'location_trash_form.trash']
);
$builder->get('trash_options')->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
From 6074662b88a776fc00e30292294688156d366a41 Mon Sep 17 00:00:00 2001
From: tischsoic
Date: Mon, 7 Aug 2023 15:14:29 +0200
Subject: [PATCH 02/21] FT: Anonymous Users -> Anonymous users
---
features/standard/Roles.feature | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/features/standard/Roles.feature b/features/standard/Roles.feature
index 506c0a5df8..9433428b94 100644
--- a/features/standard/Roles.feature
+++ b/features/standard/Roles.feature
@@ -84,7 +84,7 @@ Feature: Roles management
When I start assigning to "Test Role edited" from Roles page
And I assign users to role
| path |
- | Users/Anonymous Users/Anonymous User |
+ | Users/Anonymous users/Anonymous User |
| Users/Administrator users/Administrator User |
And I assign groups to role
| path |
@@ -185,7 +185,7 @@ Feature: Roles management
| option |
| Article |
| Folder |
- And I select subtree limitation "Users/Anonymous Users" for policy through UDW
+ And I select subtree limitation "Users/Anonymous users" for policy through UDW
And I select limitation for "State"
| option |
| Lock:Locked |
@@ -194,7 +194,7 @@ Feature: Roles management
And there are policies on the "Test Role edited" policies list
| policy | limitation |
| Content/Read | Content Type: Article, Folder |
- | Content/Read | Subtree: /Users/Anonymous Users |
+ | Content/Read | Subtree: /Users/Anonymous users |
| Content/Read | State: Lock:Locked |
And there are assignments on the "Test Role edited" assignments list
| User/Group | Limitation |
From 51d0c631b774efe129bbaecdf46dd56a093b4d67 Mon Sep 17 00:00:00 2001
From: tischsoic
Date: Mon, 7 Aug 2023 15:35:45 +0200
Subject: [PATCH 03/21] FT: Create new -> Create; Type to refine -> Search by
Content Type
---
.../themes/admin/content/widget/content_create.html.twig | 2 +-
.../components/sub-items-list/instant.filter.component.js | 2 +-
.../content-create-button/content.create.button.js | 2 +-
.../content-create-widget/content.create.widget.js | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
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 6ca6f43436..fb53eab8c2 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
@@ -37,7 +37,7 @@
diff --git a/src/bundle/ui-dev/src/modules/sub-items/components/sub-items-list/instant.filter.component.js b/src/bundle/ui-dev/src/modules/sub-items/components/sub-items-list/instant.filter.component.js
index ffc6b7e487..3a288542f9 100644
--- a/src/bundle/ui-dev/src/modules/sub-items/components/sub-items-list/instant.filter.component.js
+++ b/src/bundle/ui-dev/src/modules/sub-items/components/sub-items-list/instant.filter.component.js
@@ -43,7 +43,7 @@ const InstantFilter = (props) => {
setFilterQuery(event.target.value)}
/>
diff --git a/src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-button/content.create.button.js b/src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-button/content.create.button.js
index f0aee36898..bcb139b0b3 100644
--- a/src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-button/content.create.button.js
+++ b/src/bundle/ui-dev/src/modules/universal-discovery/components/content-create-button/content.create.button.js
@@ -23,7 +23,7 @@ const ContentCreateButton = ({ isDisabled }) => {
const [multiple, multipleItemsLimit] = useContext(MultipleConfigContext);
const { hidden, allowedLocations } = useContext(ContentOnTheFlyConfigContext);
const contentTypesMap = useContext(ContentTypesMapContext);
- const createLabel = Translator.trans(/*@Desc("Create new")*/ 'create_content.create', {}, 'universal_discovery_widget');
+ const createLabel = Translator.trans(/*@Desc("Create")*/ 'create_content.create', {}, 'universal_discovery_widget');
const toggleContentCreateVisibility = () => {
ibexa.helpers.tooltips.hideAll();
setCreateContentVisible((prevState) => !prevState);
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 9d75fd90db..923934e275 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
@@ -66,7 +66,7 @@ const ContentCreateWidget = () => {
});
setActiveTab('content-create');
};
- const createContentLabel = Translator.trans(/*@Desc("Create new content")*/ 'create_content.label', {}, 'universal_discovery_widget');
+ const createContentLabel = Translator.trans(/*@Desc("Create content")*/ 'create_content.label', {}, 'universal_discovery_widget');
const selectLanguageLabel = Translator.trans(
/*@Desc("Select a language")*/ 'create_content.select_language',
{},
@@ -77,10 +77,10 @@ const ContentCreateWidget = () => {
{},
'universal_discovery_widget',
);
- const createLabel = Translator.trans(/*@Desc("Create new")*/ 'create_content.create', {}, 'universal_discovery_widget');
+ 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 placeholder = Translator.trans(/*@Desc("Type to refine")*/ 'content_create.placeholder', {}, 'universal_discovery_widget');
+ const placeholder = Translator.trans(/*@Desc("Search by Content Type")*/ 'content_create.placeholder', {}, 'universal_discovery_widget');
const filtersDescLabel = Translator.trans(
/*@Desc("Or choose from list")*/ 'content.create.filters.desc',
{},
From 1e2faefdaafcf925835369a0c5aa60a3fc1eba2b Mon Sep 17 00:00:00 2001
From: tischsoic
Date: Mon, 7 Aug 2023 15:54:39 +0200
Subject: [PATCH 04/21] FT: User Settings -> User settings
---
features/personas/ChangePassword.feature | 2 +-
.../views/themes/admin/account/settings/list.html.twig | 4 ++--
.../views/themes/admin/account/settings/update.html.twig | 4 ++--
src/lib/Behat/BrowserContext/NavigationContext.php | 2 +-
src/lib/Behat/BrowserContext/UserPreferencesContext.php | 2 +-
src/lib/Behat/Page/UserSettingsPage.php | 4 ++--
.../EventListener/CredentialsExpirationWarningListener.php | 4 ++--
src/lib/Menu/UserMenuBuilder.php | 2 +-
8 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/features/personas/ChangePassword.feature b/features/personas/ChangePassword.feature
index a0d12666cf..56aebf8db1 100644
--- a/features/personas/ChangePassword.feature
+++ b/features/personas/ChangePassword.feature
@@ -5,7 +5,7 @@ Feature: Verify that an User allowed to change password can change his password
Given I open Login page in admin SiteAccess
And I log in as "UserPassword" with password "Passw0rd-42"
When I go to user settings
- And I switch to "My Account Settings" tab in User Settings
+ And I switch to "My Account Settings" tab in User settings
And I click on the change password button
And I change password from "Passw0rd-42" to "Passw0rd-43"
And I click on the edit action bar button "Update"
diff --git a/src/bundle/Resources/views/themes/admin/account/settings/list.html.twig b/src/bundle/Resources/views/themes/admin/account/settings/list.html.twig
index c48d698153..b638492988 100644
--- a/src/bundle/Resources/views/themes/admin/account/settings/list.html.twig
+++ b/src/bundle/Resources/views/themes/admin/account/settings/list.html.twig
@@ -4,13 +4,13 @@
{% block breadcrumbs %}
{% include '@ibexadesign/ui/breadcrumbs.html.twig' with { items: [
- { value: 'list.title'|trans|desc('User Settings') }
+ { value: 'list.title'|trans|desc('User settings') }
]} %}
{% endblock %}
{% block header %}
{% include '@ibexadesign/ui/page_title.html.twig' with {
- title: 'list.title'|trans|desc('User Settings'),
+ title: 'list.title'|trans|desc('User settings'),
} %}
{% endblock %}
diff --git a/src/bundle/Resources/views/themes/admin/account/settings/update.html.twig b/src/bundle/Resources/views/themes/admin/account/settings/update.html.twig
index 2d44bf528c..3117e9622e 100644
--- a/src/bundle/Resources/views/themes/admin/account/settings/update.html.twig
+++ b/src/bundle/Resources/views/themes/admin/account/settings/update.html.twig
@@ -13,8 +13,8 @@
{% set user_setting_update_sidebar_right = knp_menu_get('ezplatform_admin_ui.menu.user_setting_update.sidebar_right', [], {'user_setting': user_setting}) %}
{% include '@ibexadesign/ui/edit_header.html.twig' with {
- action_name: 'list.title'|trans|desc('User Settings'),
- title: 'list.title'|trans|desc('User Settings'),
+ action_name: 'list.title'|trans|desc('User settings'),
+ title: 'list.title'|trans|desc('User settings'),
context_actions: knp_menu_render(user_setting_update_sidebar_right, {'template': '@ibexadesign/ui/menu/context_menu.html.twig'})
} %}
{% endblock %}
diff --git a/src/lib/Behat/BrowserContext/NavigationContext.php b/src/lib/Behat/BrowserContext/NavigationContext.php
index 1fae56171e..7ab2708037 100644
--- a/src/lib/Behat/BrowserContext/NavigationContext.php
+++ b/src/lib/Behat/BrowserContext/NavigationContext.php
@@ -82,7 +82,7 @@ public function tryToOpenPage(string $pageName): void
*/
public function iGoToUserSettings()
{
- $this->upperMenu->chooseFromUserDropdown('User Settings');
+ $this->upperMenu->chooseFromUserDropdown('User settings');
}
/**
diff --git a/src/lib/Behat/BrowserContext/UserPreferencesContext.php b/src/lib/Behat/BrowserContext/UserPreferencesContext.php
index 3cc043e2b6..35e9e4c5a6 100644
--- a/src/lib/Behat/BrowserContext/UserPreferencesContext.php
+++ b/src/lib/Behat/BrowserContext/UserPreferencesContext.php
@@ -23,7 +23,7 @@ public function __construct(ChangePasswordPage $changePasswordPage, UserSettings
}
/**
- * @Given I switch to :tabName tab in User Settings
+ * @Given I switch to :tabName tab in User settings
*/
public function iSwitchToTabInUserSettings($tabName): void
{
diff --git a/src/lib/Behat/Page/UserSettingsPage.php b/src/lib/Behat/Page/UserSettingsPage.php
index 6e054a1c1f..84abcc3a1d 100644
--- a/src/lib/Behat/Page/UserSettingsPage.php
+++ b/src/lib/Behat/Page/UserSettingsPage.php
@@ -35,7 +35,7 @@ public function __construct(Session $session, Router $router, ContentActionsMenu
public function verifyIsLoaded(): void
{
$this->contentActionsMenu->verifyIsLoaded();
- $this->getHTMLPage()->find($this->getLocator('title'))->assert()->textEquals('User Settings');
+ $this->getHTMLPage()->find($this->getLocator('title'))->assert()->textEquals('User settings');
}
public function switchTab(string $tabName): void
@@ -89,6 +89,6 @@ protected function getRoute(): string
public function getName(): string
{
- return 'User Settings';
+ return 'User settings';
}
}
diff --git a/src/lib/EventListener/CredentialsExpirationWarningListener.php b/src/lib/EventListener/CredentialsExpirationWarningListener.php
index bc3c12f946..a1e62e1ebb 100644
--- a/src/lib/EventListener/CredentialsExpirationWarningListener.php
+++ b/src/lib/EventListener/CredentialsExpirationWarningListener.php
@@ -87,7 +87,7 @@ private function generateNotification(DateTimeInterface $passwordExpiresAt): voi
if ($passwordExpiresIn->d > 0) {
$warning = $this->translator->trans(
- /** @Desc("Your current password will expire in %days% day(s). You can change it in User Settings/My Account Settings.") */
+ /** @Desc("Your current password will expire in %days% day(s). You can change it in User settings/My Account Settings.") */
'authentication.credentials_expire_in.warning',
[
'%days%' => $passwordExpiresIn->d + ($passwordExpiresIn->h >= 12 ? 1 : 0),
@@ -97,7 +97,7 @@ private function generateNotification(DateTimeInterface $passwordExpiresAt): voi
);
} else {
$warning = $this->translator->trans(
- /** @Desc("Your current password will expire today. You can change it in User Settings/My Account Settings.") */
+ /** @Desc("Your current password will expire today. You can change it in User settings/My Account Settings.") */
'authentication.credentials_expire_today.warning',
[
'%url%' => $this->urlGenerator->generate('ibexa.user_profile.change_password'),
diff --git a/src/lib/Menu/UserMenuBuilder.php b/src/lib/Menu/UserMenuBuilder.php
index 0f88b031da..2e57477aac 100644
--- a/src/lib/Menu/UserMenuBuilder.php
+++ b/src/lib/Menu/UserMenuBuilder.php
@@ -110,7 +110,7 @@ public static function getTranslationMessages(): array
{
return [
(new Message(self::ITEM_LOGOUT, 'menu'))->setDesc('Logout'),
- (new Message(self::ITEM_USER_SETTINGS, 'menu'))->setDesc('User Settings'),
+ (new Message(self::ITEM_USER_SETTINGS, 'menu'))->setDesc('User settings'),
(new Message(self::ITEM_DRAFTS, 'menu'))->setDesc('Drafts'),
(new Message(self::ITEM_NOTIFICATION, 'notifications'))->setDesc('View Notifications'),
];
From c154361d1879fc943ced7e74f031bff5c9c651e8 Mon Sep 17 00:00:00 2001
From: tischsoic
Date: Mon, 7 Aug 2023 15:56:57 +0200
Subject: [PATCH 05/21] FT: My ...
---
features/personas/ChangePassword.feature | 2 +-
.../views/themes/admin/account/settings/list.html.twig | 4 ++--
.../EventListener/CredentialsExpirationWarningListener.php | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/features/personas/ChangePassword.feature b/features/personas/ChangePassword.feature
index 56aebf8db1..b95ae09f62 100644
--- a/features/personas/ChangePassword.feature
+++ b/features/personas/ChangePassword.feature
@@ -5,7 +5,7 @@ Feature: Verify that an User allowed to change password can change his password
Given I open Login page in admin SiteAccess
And I log in as "UserPassword" with password "Passw0rd-42"
When I go to user settings
- And I switch to "My Account Settings" tab in User settings
+ And I switch to "My account settings" tab in User settings
And I click on the change password button
And I change password from "Passw0rd-42" to "Passw0rd-43"
And I click on the edit action bar button "Update"
diff --git a/src/bundle/Resources/views/themes/admin/account/settings/list.html.twig b/src/bundle/Resources/views/themes/admin/account/settings/list.html.twig
index b638492988..853a647284 100644
--- a/src/bundle/Resources/views/themes/admin/account/settings/list.html.twig
+++ b/src/bundle/Resources/views/themes/admin/account/settings/list.html.twig
@@ -19,8 +19,8 @@
{% block content %}
{% embed '@ibexadesign/ui/component/tab/tabs.html.twig' with {
tabs: [
- { id: 'my-preferences', label: 'section.my_preferences'|trans|desc('My Preferences'), active: true },
- { id: 'my-account-settings', label: 'section.my_account_settings'|trans|desc('My Account Settings') },
+ { id: 'my-preferences', label: 'section.my_preferences'|trans|desc('My preferences'), active: true },
+ { id: 'my-account-settings', label: 'section.my_account_settings'|trans|desc('My account settings') },
]
} %}
{% block tab_content %}
diff --git a/src/lib/EventListener/CredentialsExpirationWarningListener.php b/src/lib/EventListener/CredentialsExpirationWarningListener.php
index a1e62e1ebb..7c7eb83e2d 100644
--- a/src/lib/EventListener/CredentialsExpirationWarningListener.php
+++ b/src/lib/EventListener/CredentialsExpirationWarningListener.php
@@ -87,7 +87,7 @@ private function generateNotification(DateTimeInterface $passwordExpiresAt): voi
if ($passwordExpiresIn->d > 0) {
$warning = $this->translator->trans(
- /** @Desc("Your current password will expire in %days% day(s). You can change it in User settings/My Account Settings.") */
+ /** @Desc("Your current password will expire in %days% day(s). You can change it in User settings/My account settings.") */
'authentication.credentials_expire_in.warning',
[
'%days%' => $passwordExpiresIn->d + ($passwordExpiresIn->h >= 12 ? 1 : 0),
@@ -97,7 +97,7 @@ private function generateNotification(DateTimeInterface $passwordExpiresAt): voi
);
} else {
$warning = $this->translator->trans(
- /** @Desc("Your current password will expire today. You can change it in User settings/My Account Settings.") */
+ /** @Desc("Your current password will expire today. You can change it in User settings/My account settings.") */
'authentication.credentials_expire_today.warning',
[
'%url%' => $this->urlGenerator->generate('ibexa.user_profile.change_password'),
From f5ff94a346f7b5b16509b5e823d38e767a321410 Mon Sep 17 00:00:00 2001
From: tischsoic
Date: Mon, 7 Aug 2023 16:03:06 +0200
Subject: [PATCH 06/21] FT: Edit Content -> ...
---
.../views/themes/admin/ui/dashboard/tab/all_content.html.twig | 2 +-
.../views/themes/admin/ui/dashboard/tab/my_content.html.twig | 2 +-
.../views/themes/admin/ui/edit_translation_button.html.twig | 2 +-
src/lib/Behat/Page/UserSettingsPage.php | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig
index d7ae469349..51273fbdbf 100644
--- a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig
+++ b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/all_content.html.twig
@@ -30,7 +30,7 @@
{ content: row.type },
{ content: row.modified|ibexa_full_datetime },
{ content: row.contributor is not null ? row.contributor.name : 'dashboard.table.contributor.not_found'|trans|desc('Can\'t fetch contributor') },
- { has_action_btns: true, content: macros.edit_content_button(row, 'dashboard.table.all.content.edit'|trans|desc('Edit Content')), raw: true },
+ { has_action_btns: true, content: macros.edit_content_button(row, 'dashboard.table.all.content.edit'|trans|desc('Edit')), raw: true },
]) %}
{% set body_rows = body_rows|merge([{ cols: body_row_cols }]) %}
diff --git a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig
index 059ab2855a..424f089953 100644
--- a/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig
+++ b/src/bundle/Resources/views/themes/admin/ui/dashboard/tab/my_content.html.twig
@@ -30,7 +30,7 @@
{% set body_row_cols = body_row_cols|merge([
{ content: row.type },
{ content: row.modified|ibexa_full_datetime },
- { has_action_btns: true, content: macros.edit_content_button(row, 'dashboard.table.content.edit'|trans|desc('Edit Content')), raw: true },
+ { has_action_btns: true, content: macros.edit_content_button(row, 'dashboard.table.content.edit'|trans|desc('Edit')), raw: true },
]) %}
{% set body_rows = body_rows|merge([{ cols: body_row_cols }]) %}
diff --git a/src/bundle/Resources/views/themes/admin/ui/edit_translation_button.html.twig b/src/bundle/Resources/views/themes/admin/ui/edit_translation_button.html.twig
index 4e9ac7e113..3711f51a1b 100644
--- a/src/bundle/Resources/views/themes/admin/ui/edit_translation_button.html.twig
+++ b/src/bundle/Resources/views/themes/admin/ui/edit_translation_button.html.twig
@@ -1,6 +1,6 @@
{% trans_default_domain 'edit_translation_button' %}
-{% set title = title ?? 'edit_translation.edit.title'|trans|desc('Edit Content') %}
+{% set title = title ?? 'edit_translation.edit.title'|trans|desc('Edit') %}
{% if translations|length == 1 %}
{% set language = translations|first %}
diff --git a/src/lib/Behat/Page/UserSettingsPage.php b/src/lib/Behat/Page/UserSettingsPage.php
index 84abcc3a1d..78ace54fb0 100644
--- a/src/lib/Behat/Page/UserSettingsPage.php
+++ b/src/lib/Behat/Page/UserSettingsPage.php
@@ -65,7 +65,7 @@ public function openAutosaveDraftEditionPage(): void
{
$this->getHTMLPage()
->findAll(new VisibleCSSLocator('settingsSection', '#ibexa-tab-my-preferences .ibexa-details'))
- ->getByCriterion(new ChildElementTextCriterion(new VisibleCSSLocator('settingHeader', '.ibexa-table-header'), 'Edit Content'))
+ ->getByCriterion(new ChildElementTextCriterion(new VisibleCSSLocator('settingHeader', '.ibexa-table-header'), 'Edit content'))
->find(new VisibleCSSLocator('editButton', '[data-original-title="Edit"]'))
->click();
}
From 02fd34734c11e55c4fd49030b6eee90dfd27e3b2 Mon Sep 17 00:00:00 2001
From: tischsoic
Date: Tue, 8 Aug 2023 10:48:37 +0200
Subject: [PATCH 07/21] under %location_name% in %language%
---
src/bundle/Resources/public/js/scripts/admin.trash.js | 4 ++--
.../views/themes/admin/content/create/create.html.twig | 4 ++--
.../views/themes/admin/content/edit/content_header.html.twig | 2 +-
.../Resources/views/themes/admin/content/edit/edit.html.twig | 4 ++--
.../themes/admin/content/widget/content_create.html.twig | 2 +-
.../Resources/views/themes/admin/ui/form_fields.html.twig | 2 +-
.../themes/admin/ui/on_the_fly/edit_on_the_fly.html.twig | 2 +-
src/bundle/Resources/views/themes/admin/user/create.html.twig | 2 +-
src/bundle/Resources/views/themes/admin/user/edit.html.twig | 2 +-
.../src/modules/common/services/content.type.service.js | 2 +-
.../multi-file-upload/services/multi.file.upload.service.js | 4 ++--
.../components/content-create-widget/content.create.widget.js | 4 ++--
.../universal-discovery/content.meta.preview.module.js | 2 +-
src/lib/Form/TrashLocationOptionProvider/HasChildren.php | 4 ++--
.../Form/TrashLocationOptionProvider/HasReverseRelations.php | 4 ++--
.../TrashLocationOptionProvider/HasUniqueAssetRelation.php | 4 ++--
16 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/src/bundle/Resources/public/js/scripts/admin.trash.js b/src/bundle/Resources/public/js/scripts/admin.trash.js
index 9718d15a5c..6f9886272b 100644
--- a/src/bundle/Resources/public/js/scripts/admin.trash.js
+++ b/src/bundle/Resources/public/js/scripts/admin.trash.js
@@ -20,9 +20,9 @@
if (numberOfSubitems) {
const message = Translator.trans(
- /*@Desc("Sending '%content_name%' and its %children_count% Content item(s) to Trash will also send the sub-items of this Location to Trash.")*/ 'trash_container.modal.message_main',
+ /*@Desc("Sending '%content%' and its %children_count% Content item(s) to Trash will also send the sub-items of this Location to Trash.")*/ 'trash_container.modal.message_main',
{
- content_name: contentName,
+ content: contentName,
children_count: numberOfSubitems,
},
'content',
diff --git a/src/bundle/Resources/views/themes/admin/content/create/create.html.twig b/src/bundle/Resources/views/themes/admin/content/create/create.html.twig
index 1f956fdd51..31fa60302e 100644
--- a/src/bundle/Resources/views/themes/admin/content/create/create.html.twig
+++ b/src/bundle/Resources/views/themes/admin/content/create/create.html.twig
@@ -20,9 +20,9 @@
icon_name: content_type.name,
show_autosave_status: true,
subtitle: 'editing_details'|trans({
- '%location_name%': parent_location.contentInfo.name,
+ '%location%': parent_location.contentInfo.name,
'%language%': language.name
- })|desc('under %location_name% in %language%' ),
+ })|desc('Location: %location% Translation: %language' ),
context_actions: knp_menu_render(content_create_sidebar_right, {'template': '@ibexadesign/ui/menu/context_menu.html.twig'})
} %}
{% endblock %}
diff --git a/src/bundle/Resources/views/themes/admin/content/edit/content_header.html.twig b/src/bundle/Resources/views/themes/admin/content/edit/content_header.html.twig
index df66d3e9f1..2715ea60e0 100644
--- a/src/bundle/Resources/views/themes/admin/content/edit/content_header.html.twig
+++ b/src/bundle/Resources/views/themes/admin/content/edit/content_header.html.twig
@@ -35,7 +35,7 @@
{{ title }}
diff --git a/src/bundle/Resources/views/themes/admin/content/edit/edit.html.twig b/src/bundle/Resources/views/themes/admin/content/edit/edit.html.twig
index f50b41a028..42d2e9e717 100644
--- a/src/bundle/Resources/views/themes/admin/content/edit/edit.html.twig
+++ b/src/bundle/Resources/views/themes/admin/content/edit/edit.html.twig
@@ -23,9 +23,9 @@
show_autosave_status: true,
description: content_type.description,
subtitle: 'editing_details'|trans({
- '%location_name%': parent_location.contentInfo.name,
+ '%location%': parent_location.contentInfo.name,
'%language%': language.name
- })|desc('under %location_name% in %language%'),
+ })|desc('Location: %location% Translation: %language'),
context_actions: knp_menu_render(content_edit_sidebar_right, { 'template': '@ibexadesign/ui/menu/context_menu.html.twig' })
} %}
{% endblock %}
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 fb53eab8c2..b587c86817 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
@@ -12,7 +12,7 @@
diff --git a/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig b/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig
index c055befc4e..673ef67f61 100644
--- a/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig
+++ b/src/bundle/Resources/views/themes/admin/ui/form_fields.html.twig
@@ -452,7 +452,7 @@
{% block content_type_field_definition_widget -%}
{{- form_row(form.enabled, { label: 'meta.enabled'|trans({
'%type%': form.name.vars.value,
- }, 'content_type')|desc('Enable %type% for this content type') }) -}}
+ }, 'content_type')|desc('Enable %type% for this Content Type') }) -}}
{% for form_field in form.children %}
{% if form_field.isRendered() == false %}
diff --git a/src/bundle/Resources/views/themes/admin/ui/on_the_fly/edit_on_the_fly.html.twig b/src/bundle/Resources/views/themes/admin/ui/on_the_fly/edit_on_the_fly.html.twig
index 1f527cde03..0df6b2ec9c 100644
--- a/src/bundle/Resources/views/themes/admin/ui/on_the_fly/edit_on_the_fly.html.twig
+++ b/src/bundle/Resources/views/themes/admin/ui/on_the_fly/edit_on_the_fly.html.twig
@@ -35,7 +35,7 @@
content_type_name: content_type.name,
show_autosave_status: true,
description: content_type.description,
- subtitle: 'editing_details'|trans({ '%location_name%': parent_location.contentInfo.name, '%language%': language.name })|desc('under %location_name% in %language%'),
+ subtitle: 'editing_details'|trans({ '%location%': parent_location.contentInfo.name, '%language%': language.name })|desc('Location: %location% Translation: %language'),
context_actions: context_actions,
} %}
{% endblock %}
diff --git a/src/bundle/Resources/views/themes/admin/user/create.html.twig b/src/bundle/Resources/views/themes/admin/user/create.html.twig
index 432cd69c36..c06056add8 100644
--- a/src/bundle/Resources/views/themes/admin/user/create.html.twig
+++ b/src/bundle/Resources/views/themes/admin/user/create.html.twig
@@ -17,7 +17,7 @@
icon_name: content_type.name,
show_autosave_status: false,
title: 'new_content_item'|trans({'%contentType%': content_type.name})|desc('New %contentType%'),
- subtitle: 'editing_details'|trans({ '%location_name%': parent_location.contentInfo.name })|desc('under %location_name%'),
+ subtitle: 'editing_details'|trans({ '%location%': parent_location.contentInfo.name })|desc('Location: %location%'),
context_actions: knp_menu_render(user_content_edit_menu, {'template': '@ibexadesign/ui/menu/context_menu.html.twig'})
} %}
{% endblock %}
diff --git a/src/bundle/Resources/views/themes/admin/user/edit.html.twig b/src/bundle/Resources/views/themes/admin/user/edit.html.twig
index 737e495910..121f0f6edd 100644
--- a/src/bundle/Resources/views/themes/admin/user/edit.html.twig
+++ b/src/bundle/Resources/views/themes/admin/user/edit.html.twig
@@ -18,7 +18,7 @@
icon_name: content_type.name,
show_autosave_status: false,
title: "%s %s"|format(user.getFieldValue('first_name'), user.getFieldValue('last_name')),
- subtitle: 'editing_details'|trans({ '%location_name%': parent_location.contentInfo.name })|desc('under %location_name%'),
+ subtitle: 'editing_details'|trans({ '%location%': parent_location.contentInfo.name })|desc('Location: %location%'),
context_actions: knp_menu_render(user_content_edit_menu, {'template': '@ibexadesign/ui/menu/context_menu.html.twig'})
} %}
{% endblock %}
diff --git a/src/bundle/ui-dev/src/modules/common/services/content.type.service.js b/src/bundle/ui-dev/src/modules/common/services/content.type.service.js
index c5e9504af0..9657737b39 100644
--- a/src/bundle/ui-dev/src/modules/common/services/content.type.service.js
+++ b/src/bundle/ui-dev/src/modules/common/services/content.type.service.js
@@ -11,5 +11,5 @@ export const loadContentTypes = (contentTypeIds, callback) => {
fetch(request)
.then(handleRequestResponse)
.then(callback)
- .catch(() => window.ibexa.helpers.notification.showErrorNotification('Cannot load content types'));
+ .catch(() => window.ibexa.helpers.notification.showErrorNotification('Cannot load Content Types'));
};
diff --git a/src/bundle/ui-dev/src/modules/multi-file-upload/services/multi.file.upload.service.js b/src/bundle/ui-dev/src/modules/multi-file-upload/services/multi.file.upload.service.js
index 44c50cdaaf..d1ff758391 100644
--- a/src/bundle/ui-dev/src/modules/multi-file-upload/services/multi.file.upload.service.js
+++ b/src/bundle/ui-dev/src/modules/multi-file-upload/services/multi.file.upload.service.js
@@ -169,7 +169,7 @@ const prepareStruct = ({ parentInfo, config, languageCode }, data) => {
.catch(() =>
window.ibexa.helpers.notification.showErrorNotification(
Translator.trans(
- /*@Desc("Cannot get content type by identifier")*/ 'cannot_get_content_type_identifier.message',
+ /*@Desc("Cannot get Content Type by identifier")*/ 'cannot_get_content_type_identifier.message',
{},
'multi_file_upload',
),
@@ -189,7 +189,7 @@ const prepareStruct = ({ parentInfo, config, languageCode }, data) => {
.catch(() =>
window.ibexa.helpers.notification.showErrorNotification(
Translator.trans(
- /*@Desc("Cannot get content type by identifier")*/ 'cannot_get_content_type_identifier.message',
+ /*@Desc("Cannot get Content Type by identifier")*/ 'cannot_get_content_type_identifier.message',
{},
'multi_file_upload',
),
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 923934e275..7101220c8a 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
@@ -87,8 +87,8 @@ const ContentCreateWidget = () => {
'universal_discovery_widget',
);
const createUnderLabel = Translator.trans(
- /*@Desc("under %content_name%")*/ 'content.create.editing_details',
- { content_name: selectedLocation?.location?.ContentInfo.Content.TranslatedName },
+ /*@Desc("Location: %location%")*/ 'content.create.editing_details',
+ { location: selectedLocation?.location?.ContentInfo.Content.TranslatedName },
'universal_discovery_widget',
);
const widgetClassName = createCssClassNames({
diff --git a/src/bundle/ui-dev/src/modules/universal-discovery/content.meta.preview.module.js b/src/bundle/ui-dev/src/modules/universal-discovery/content.meta.preview.module.js
index 5afe9b40ad..4c432ba1e8 100644
--- a/src/bundle/ui-dev/src/modules/universal-discovery/content.meta.preview.module.js
+++ b/src/bundle/ui-dev/src/modules/universal-discovery/content.meta.preview.module.js
@@ -30,7 +30,7 @@ const ContentMetaPreview = () => {
const allowRedirects = useContext(AllowRedirectsContext);
const { formatShortDateTime } = ibexa.helpers.timezone;
const locationData = useMemo(() => getLocationData(loadedLocationsMap, markedLocationId), [markedLocationId, loadedLocationsMap]);
- const lastModifiedLabel = Translator.trans(/*@Desc("Last modified")*/ 'meta_preview.last_modified', {}, 'universal_discovery_widget');
+ const lastModifiedLabel = Translator.trans(/*@Desc("Modified")*/ 'meta_preview.last_modified', {}, 'universal_discovery_widget');
const creationDateLabel = Translator.trans(/*@Desc("Created")*/ 'meta_preview.creation_date', {}, 'universal_discovery_widget');
const translationsLabel = Translator.trans(/*@Desc("Translations")*/ 'meta_preview.translations', {}, 'universal_discovery_widget');
diff --git a/src/lib/Form/TrashLocationOptionProvider/HasChildren.php b/src/lib/Form/TrashLocationOptionProvider/HasChildren.php
index 0f8fc8e70b..fee9fe66d2 100644
--- a/src/lib/Form/TrashLocationOptionProvider/HasChildren.php
+++ b/src/lib/Form/TrashLocationOptionProvider/HasChildren.php
@@ -40,7 +40,7 @@ public function addOptions(FormInterface $form, Location $location): void
$translatorParameters = [
'%children_count%' => $childCount,
- '%content_name%' => $location->getContent()->getName(),
+ '%content%' => $location->getContent()->getName(),
];
$form
@@ -49,7 +49,7 @@ public function addOptions(FormInterface $form, Location $location): void
/** @Desc("Sub-items") */
$this->translator->trans('form.has_children.label', [], 'forms'),
'help_multiline' => [
- /** @Desc("Sending '%content_name%' and its %children_count% Content item(s) to Trash will also send the sub-items of this Location to Trash.") */
+ /** @Desc("Sending '%content%' and its %children_count% Content item(s) to Trash will also send the sub-items of this Location to Trash.") */
$this->translator->trans('trash_container.modal.message_main', $translatorParameters, 'messages'),
],
]);
diff --git a/src/lib/Form/TrashLocationOptionProvider/HasReverseRelations.php b/src/lib/Form/TrashLocationOptionProvider/HasReverseRelations.php
index de28bb97be..bf4f4f1d0a 100644
--- a/src/lib/Form/TrashLocationOptionProvider/HasReverseRelations.php
+++ b/src/lib/Form/TrashLocationOptionProvider/HasReverseRelations.php
@@ -42,7 +42,7 @@ public function addOptions(FormInterface $form, Location $location): void
$reverseRelationsCount = $this->contentService->countReverseRelations($location->contentInfo);
$translatorParameters = [
- '%content_name%' => $location->getContent()->getName(),
+ '%content%' => $location->getContent()->getName(),
'%reverse_relations%' => $reverseRelationsCount,
];
@@ -52,7 +52,7 @@ public function addOptions(FormInterface $form, Location $location): void
/** @Desc("Conflict with reverse Relations") */
$this->translator->trans('form.has_reverse_relation.label', [], 'forms'),
'help_multiline' => [
- /** @Desc("'%content_name%' is in use by %reverse_relations% Content item(s). You should remove all reverse Relations before deleting the Content item.") */
+ /** @Desc("'%content%' is in use by %reverse_relations% Content item(s). You should remove all reverse Relations before deleting the Content item.") */
$this->translator->trans('trash_container.modal.message_relations', $translatorParameters),
],
]);
diff --git a/src/lib/Form/TrashLocationOptionProvider/HasUniqueAssetRelation.php b/src/lib/Form/TrashLocationOptionProvider/HasUniqueAssetRelation.php
index 7ea587948d..88548aeef1 100644
--- a/src/lib/Form/TrashLocationOptionProvider/HasUniqueAssetRelation.php
+++ b/src/lib/Form/TrashLocationOptionProvider/HasUniqueAssetRelation.php
@@ -46,7 +46,7 @@ public function supports(Location $location): bool
public function addOptions(FormInterface $form, Location $location): void
{
$translatorParameters = [
- '%content_name%' => $location->getContent()->getName(),
+ '%content%' => $location->getContent()->getName(),
];
$form->add(self::TRASH_ASSETS, ChoiceType::class, [
@@ -62,7 +62,7 @@ public function addOptions(FormInterface $form, Location $location): void
$this->translator->trans('location_trash_form.trash_with_asset', $translatorParameters, 'forms') => self::RADIO_SELECT_TRASH_WITH_ASSETS,
],
'help_multiline' => [
- /** @Desc("'%content_name%' has 1 or more asset Field(s). You have an option to send only the Content item to Trash, or to send the Content item and its assets to Trash. Please select your option:") */
+ /** @Desc("'%content%' has 1 or more asset Field(s). You have an option to send only the Content item to Trash, or to send the Content item and its assets to Trash. Please select your option:") */
$this->translator->trans('trash_asset_single.modal.message_main', $translatorParameters),
],
]);
From a130233278d1fbbac73781ac1bced8df0cf8bdaa Mon Sep 17 00:00:00 2001
From: tischsoic