[TASK] Add title attribute for icons in ext:viewpage 90/38390/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 31 Mar 2015 21:02:58 +0000 (23:02 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 4 Apr 2015 13:47:00 +0000 (15:47 +0200)
* Add title to view page icon on the left
* Add title to refresh icon on the right

Resolves: #66128
Releases: master
Change-Id: I6dd7f4a7c7ed26e5e4aa68040348ec750cb797d9
Reviewed-on: http://review.typo3.org/38390
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/viewpage/Resources/Private/Language/locallang.xlf
typo3/sysext/viewpage/Resources/Private/Layouts/DocHeader.html

index ba9c5e7..963007b 100644 (file)
@@ -21,6 +21,9 @@
                        <trans-unit id="autoSize">
                                <source>Auto Size</source>
                        </trans-unit>
+                       <trans-unit id="refreshPage">
+                               <source>Refresh page</source>
+                       </trans-unit>
                </body>
        </file>
 </xliff>
index 3c8c9c8..eaad421 100644 (file)
                        </div>
                        <div class="typo3-docheader-buttons">
                                <div class="left">
-                                       <f:be.buttons.icon uri="{url}" additionalAttributes="{onclick: 'window.open(this.href,\'newTYPO3frontendWindow\').focus();return false;'}" icon="actions-document-view" />
+                                       <f:be.buttons.icon uri="{url}"
+                                               additionalAttributes="{onclick: 'window.open(this.href,\'newTYPO3frontendWindow\').focus();return false;'}"
+                                               icon="actions-document-view" title="{f:translate(key: 'LLL:EXT:lang/locallang_core.xlf:labels.showPage')}"
+                                       />
                                </div>
                                <div class="right">
                                        <f:be.buttons.icon
                                                        uri="javascript:document.getElementById('tx_viewpage_iframe').contentWindow.location.reload(true);"
-                                                       icon="actions-system-refresh" />
+                                                       icon="actions-system-refresh" title="{f:translate(key: 'refreshPage')}" />
                                        <f:be.buttons.shortcut/>
                                </div>
                        </div>