[BUGFIX] Provide language labels for delete modal in filelist 18/56518/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 3 Apr 2018 06:40:02 +0000 (08:40 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Tue, 3 Apr 2018 11:22:13 +0000 (13:22 +0200)
Resolves: #84577
Releases: master
Change-Id: Iff6cf14a745699e9fa2f8da74485e0a4ec760035
Reviewed-on: https://review.typo3.org/56518
Reviewed-by: Guido Schmechel <littlegee@web.de>
Tested-by: Guido Schmechel <littlegee@web.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php

index a35b492..762dc09 100644 (file)
@@ -342,9 +342,13 @@ class FileProvider extends \TYPO3\CMS\Backend\ContextMenu\ItemProviders\Abstract
                     ' ' . $this->languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.referencesToFile')
                 );
             }
+            $closeText = $this->languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:button.cancel');
+            $deleteText = $this->languageService->sL('LLL:EXT:lang/Resources/Private/Language/locallang_mod_web_list.xlf:button.delete');
             $attributes += [
                 'data-title' => htmlspecialchars($title),
-                'data-message' => htmlspecialchars($confirmMessage)
+                'data-message' => htmlspecialchars($confirmMessage),
+                'data-button-close-text' => htmlspecialchars($closeText),
+                'data-button-ok-text' => htmlspecialchars($deleteText),
             ];
         }
         if ($itemName === 'pasteInto' && $this->backendUser->jsConfirmation(JsConfirmation::COPY_MOVE_PASTE)) {