[BUGFIX] Translate permission labels in DragUploader 62/46862/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 23 Feb 2016 19:40:19 +0000 (20:40 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Tue, 23 Feb 2016 21:43:40 +0000 (22:43 +0100)
Resolves: #73464
Releases: master,7.6
Change-Id: Ibe2579552703c30eda2e22c8ef6caf738da18265
Reviewed-on: https://review.typo3.org/46862
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js
typo3/sysext/filelist/Classes/Controller/FileListController.php

index 6170cd8..d63c285 100644 (file)
@@ -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);
index d853c30..335b8b7 100644 (file)
@@ -420,6 +420,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