From 244523ec792b599e45f7cc0ecf30dc83f9c87c51 Mon Sep 17 00:00:00 2001 From: Wouter Wolters <typo3@wouterwolters.nl> Date: Tue, 23 Feb 2016 20:40:19 +0100 Subject: [PATCH] [BUGFIX] Translate permission labels in DragUploader Resolves: #73464 Releases: master,7.6 Change-Id: Ibe2579552703c30eda2e22c8ef6caf738da18265 Reviewed-on: https://review.typo3.org/46856 Reviewed-by: Daniel Goerz <ervaude@gmail.com> Tested-by: Daniel Goerz <ervaude@gmail.com> Reviewed-by: Frank Naegler <frank.naegler@typo3.org> Tested-by: Frank Naegler <frank.naegler@typo3.org> --- .../backend/Resources/Public/JavaScript/DragUploader.js | 4 ++-- .../sysext/filelist/Classes/Controller/FileListController.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js b/typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js index 6170cd86b0f6..d63c285c5553 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js @@ -509,10 +509,10 @@ define(['jquery', $('<td />').text(DragUploader.fileSizeAsString(fileInfo.size)).appendTo(me.$row); var permissions = ''; if (fileInfo.permissions.read) { - permissions += '<strong class="text-danger">R</strong>'; + permissions += '<strong class="text-danger">' + TYPO3.lang['permissions.read'] + '</strong>'; } if (fileInfo.permissions.write) { - permissions += '<strong class="text-danger">W</strong>'; + permissions += '<strong class="text-danger">' + TYPO3.lang['permissions.write'] + '</strong>'; } $('<td />').html(permissions).appendTo(me.$row); $('<td />').text('-').appendTo(me.$row); diff --git a/typo3/sysext/filelist/Classes/Controller/FileListController.php b/typo3/sysext/filelist/Classes/Controller/FileListController.php index da3d6c9519be..5c27c498021d 100644 --- a/typo3/sysext/filelist/Classes/Controller/FileListController.php +++ b/typo3/sysext/filelist/Classes/Controller/FileListController.php @@ -411,6 +411,10 @@ class FileListController extends ActionController ExtensionManagementUtility::extPath('lang') . 'locallang_core.xlf', 'file_upload' ); + $pageRenderer->addInlineLanguageLabelArray([ + 'permissions.read' => $this->getLanguageService()->getLL('read'), + 'permissions.write' => $this->getLanguageService()->getLL('write'), + ]); } // Setting up the buttons -- GitLab