[TASK] Improve clipboard names 10/28610/3
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Fri, 21 Mar 2014 15:57:49 +0000 (16:57 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 23 Mar 2014 18:38:50 +0000 (19:38 +0100)
Makes clipboard names more meaningful for editors.
It also makes "Normal" clipboard name translatable
and adds titles with additional description to the clipboard links.

Resolves: #57154
Releases: 6.2
Change-Id: I218a70648616eb1d2efca0006411af57c3cff96e
Reviewed-on: https://review.typo3.org/28610
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/lang/locallang_core.xlf

index 3734abf..259c83a 100644 (file)
@@ -312,7 +312,10 @@ class Clipboard {
                // Print header and content for the NORMAL tab:
                $out[] = '
                        <tr class="bgColor5">
-                               <td colspan="3"><a href="' . htmlspecialchars(GeneralUtility::linkThisScript(array('CB' => array('setP' => 'normal')))) . '#clip_head">' . IconUtility::getSpriteIcon(('actions-view-table-' . ($this->current == 'normal' ? 'collapse' : 'expand'))) . $this->padTitleWrap('Normal', 'normal') . '</a></td>
+                               <td colspan="3"><a href="' . htmlspecialchars(GeneralUtility::linkThisScript(array('CB' => array('setP' => 'normal')))) . '#clip_head" title="' . $this->clLabel('normal-description') . '">'
+                                       . IconUtility::getSpriteIcon(('actions-view-table-' . ($this->current == 'normal' ? 'collapse' : 'expand')))
+                                       . $this->padTitleWrap($this->clLabel('normal'), 'normal')
+                                       . '</a></td>
                        </tr>';
                if ($this->current == 'normal') {
                        $out = array_merge($out, $this->printContentFromTab('normal'));
@@ -321,7 +324,10 @@ class Clipboard {
                for ($a = 1; $a <= $this->numberTabs; $a++) {
                        $out[] = '
                                <tr class="bgColor5">
-                                       <td colspan="3"><a href="' . htmlspecialchars(GeneralUtility::linkThisScript(array('CB' => array('setP' => ('tab_' . $a))))) . '#clip_head">' . IconUtility::getSpriteIcon(('actions-view-table-' . ($this->current == 'tab_' . $a ? 'collapse' : 'expand'))) . $this->padTitleWrap(($this->clLabel('cliptabs') . $a), ('tab_' . $a)) . '</a></td>
+                                       <td colspan="3"><a href="' . htmlspecialchars(GeneralUtility::linkThisScript(array('CB' => array('setP' => ('tab_' . $a))))) . '#clip_head" title="' . $this->clLabel('cliptabs-description') . '">'
+                                               . IconUtility::getSpriteIcon(('actions-view-table-' . ($this->current == 'tab_' . $a ? 'collapse' : 'expand')))
+                                               . $this->padTitleWrap(sprintf($this->clLabel('cliptabs-name'), $a), ('tab_' . $a))
+                                               . '</a></td>
                                </tr>';
                        if ($this->current == 'tab_' . $a) {
                                $out = array_merge($out, $this->printContentFromTab('tab_' . $a));
index cfcf00b..defa35a 100644 (file)
@@ -292,9 +292,21 @@ Do you want to continue WITHOUT saving?</source>
                        <trans-unit id="labels.clipNoEl" xml:space="preserve">
                                <source>No elements</source>
                        </trans-unit>
+                       <trans-unit id="labels.normal" xml:space="preserve">
+                               <source>Normal (single record mode)</source>
+                       </trans-unit>
+                       <trans-unit id="labels.normal-description" xml:space="preserve">
+                               <source>"Normal" clipboard allows to copy/move one record at time.</source>
+                       </trans-unit>
                        <trans-unit id="labels.cliptabs" xml:space="preserve">
                                <source>Clipboard #</source>
                        </trans-unit>
+                       <trans-unit id="labels.cliptabs-name" xml:space="preserve">
+                               <source>Clipboard #%s (multi-selection mode)</source>
+                       </trans-unit>
+                       <trans-unit id="labels.cliptabs-description" xml:space="preserve">
+                               <source>This clipboard allows to select and edit/copy/move multiple records at once. Choose it to show a checkbox by each record.</source>
+                       </trans-unit>
                        <trans-unit id="labels.removeItem" xml:space="preserve">
                                <source>Remove item</source>
                        </trans-unit>