From ed7ab690bc87c9f293ba9d9d98421dc52ea0d605 Mon Sep 17 00:00:00 2001
From: Oliver Bartsch <bo@cedev.de>
Date: Fri, 9 Feb 2024 12:47:40 +0100
Subject: [PATCH] [BUGFIX] Properly use file name argument in locallang label

The ExtendedFileUtility component provides the file
name as argument for the `fileNotDeletedHasReferences`
label. This information is now displayed correctly by
adding the missing placeholder to the label.

Resolves: #103091
Releases: main, 12.4
Change-Id: Ic9e40034bdf4f3d14e874014210e5d22235cd8c8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82843
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Tested-by: Oliver Bartsch <bo@cedev.de>
---
 typo3/sysext/core/Resources/Private/Language/locallang_core.xlf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf b/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf
index cb72c701ed57..0f1d59c7d712 100644
--- a/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf
+++ b/typo3/sysext/core/Resources/Private/Language/locallang_core.xlf
@@ -1017,7 +1017,7 @@ Do you want to refresh it now?</source>
 				<source>File not deleted</source>
 			</trans-unit>
 			<trans-unit id="message.description.fileNotDeletedHasReferences" resname="message.description.fileNotDeletedHasReferences">
-				<source>The file cannot be deleted since it is still used at the following places</source>
+				<source>The file "%s" cannot be deleted since it is still used at the following places</source>
 			</trans-unit>
 			<trans-unit id="message.header.folderNotDeletedHasFilesWithReferences" resname="message.header.folderNotDeletedHasFilesWithReferences">
 				<source>Folder not deleted</source>
-- 
GitLab