[TASK] ext:beuser delete button title attribute 02/51202/4
authorJosef Glatz <josefglatz@gmail.com>
Sun, 8 Jan 2017 21:20:45 +0000 (22:20 +0100)
committerBenni Mack <benni@typo3.org>
Mon, 9 Jan 2017 12:25:03 +0000 (13:25 +0100)
Add missing title attribute to delete button in the backend user
listing module.

Resolves: #79203
Releases: master
Change-Id: I511fdce6d29cf8c38682e08f14d2cbb33d127c77
Reviewed-on: https://review.typo3.org/51202
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/beuser/Classes/ViewHelpers/RemoveUserViewHelper.php
typo3/sysext/beuser/Resources/Private/Language/locallang.xlf

index 608e918..26742a5 100644 (file)
@@ -81,6 +81,7 @@ class RemoveUserViewHelper extends AbstractViewHelper
         $url = BackendUtility::getModuleUrl('tce_db', $urlParameters);
 
         return '<a class="btn btn-default t3js-modal-trigger" href="' . htmlspecialchars($url) . '"'
+            . ' title="' . htmlspecialchars($GLOBALS['LANG']->sL('LLL:EXT:beuser/Resources/Private/Language/locallang.xlf:delete')) . '"'
             . ' data-severity="warning"'
             . ' data-title="' . htmlspecialchars($GLOBALS['LANG']->sL('LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')) . '"'
             . ' data-content="' . htmlspecialchars(LocalizationUtility::translate('confirm', 'beuser', [$backendUser->getUserName()])) . '" '
index a63ca2b..ccee419 100644 (file)
@@ -42,6 +42,9 @@
                        <trans-unit id="never">
                                <source>Never</source>
                        </trans-unit>
+                       <trans-unit id="delete">
+                               <source>Delete backend user (!)</source>
+                       </trans-unit>
                        <trans-unit id="disable">
                                <source>Disable</source>
                        </trans-unit>