From 82c9dde473ece23a230bedec8f11e9b16a77b8ab Mon Sep 17 00:00:00 2001 From: Christian Rath-Ulrich <christian@rath-ulrich.de> Date: Mon, 10 Jun 2024 18:13:03 +0200 Subject: [PATCH] [TASK] Update label of button to create content in page module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: #104025 Releases: main, 12.4 Change-Id: I32b509644018eaa4de452f499d525c6822addad1 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84636 Reviewed-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: core-ci <typo3@b13.com> Tested-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> --- .../backend/Classes/View/Drawing/BackendLayoutRenderer.php | 2 +- .../backend/Resources/Private/Language/locallang_layout.xlf | 3 +++ .../backend/Resources/Private/Partials/PageLayout/Record.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Classes/View/Drawing/BackendLayoutRenderer.php b/typo3/sysext/backend/Classes/View/Drawing/BackendLayoutRenderer.php index ccaf89e6b89c..bfc50bf3c3f9 100644 --- a/typo3/sysext/backend/Classes/View/Drawing/BackendLayoutRenderer.php +++ b/typo3/sysext/backend/Classes/View/Drawing/BackendLayoutRenderer.php @@ -94,7 +94,7 @@ class BackendLayoutRenderer 'context' => $pageLayoutContext, 'hideRestrictedColumns' => (bool)(BackendUtility::getPagesTSconfig($pageLayoutContext->getPageId())['mod.']['web_layout.']['hideRestrictedCols'] ?? false), 'newContentTitle' => $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newContentElement'), - 'newContentTitleShort' => $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:content'), + 'newContentTitleShort' => $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:createNewContent'), 'allowEditContent' => $backendUser->check('tables_modify', 'tt_content'), 'maxTitleLength' => $backendUser->uc['titleLen'] ?? 20, ]); diff --git a/typo3/sysext/backend/Resources/Private/Language/locallang_layout.xlf b/typo3/sysext/backend/Resources/Private/Language/locallang_layout.xlf index 2f94b866261c..49fe7fe1643f 100644 --- a/typo3/sysext/backend/Resources/Private/Language/locallang_layout.xlf +++ b/typo3/sysext/backend/Resources/Private/Language/locallang_layout.xlf @@ -93,6 +93,9 @@ <trans-unit id="content" resname="content"> <source>Content</source> </trans-unit> + <trans-unit id="createNewContent" resname="createNewContent"> + <source>Create new content</source> + </trans-unit> <trans-unit id="newInColumn" resname="newInColumn"> <source>Create new record in top of this column</source> </trans-unit> diff --git a/typo3/sysext/backend/Resources/Private/Partials/PageLayout/Record.html b/typo3/sysext/backend/Resources/Private/Partials/PageLayout/Record.html index 9e31f5bf67f6..cd4301f4ac7d 100644 --- a/typo3/sysext/backend/Resources/Private/Partials/PageLayout/Record.html +++ b/typo3/sysext/backend/Resources/Private/Partials/PageLayout/Record.html @@ -32,7 +32,7 @@ <div class="t3-page-ce-actions t3js-page-new-ce" id="colpos-{item.column.columnNumber}-page-{item.context.pageId}-{item.column.uniqueId}"> <typo3-backend-new-content-element-wizard-button class="btn btn-default btn-sm" url="{item.newContentAfterUrl}" subject="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newContentElement')}"> <core:icon identifier="actions-plus" /> - <f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:content" /> + <f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:createNewContent" /> </typo3-backend-new-content-element-wizard-button> </div> </f:if> -- GitLab