added a translatable label to the toolbar item
authorIngo Renner <ingo.renner@typo3.org>
Wed, 29 Oct 2008 20:06:33 +0000 (20:06 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Wed, 29 Oct 2008 20:06:33 +0000 (20:06 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4384 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/sys_action/locallang.xml
typo3/sysext/sys_action/toolbarmenu/class.tx_sysaction_toolbarmenu.php

index 8830485..8815f48 100755 (executable)
@@ -22,6 +22,7 @@
                        <label index="action_t1_listOfUsers">List of backend users</label>
                        <label index="action_BEu_db_mount">Pagetree starting points</label>
                        <label index="action_t4_edit">Select record to edit:</label>
+                       <label index="action_toolbaritem">Open System Actions</label>
                </languageKey>
        </data>
 </T3locallang>
\ No newline at end of file
index fb5475d..d1e64b9 100644 (file)
@@ -25,7 +25,8 @@
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
 
-require_once(PATH_typo3 . 'interfaces/interface.backend_toolbaritem.php');
+       // load the language file
+$GLOBALS['LANG']->includeLLFile('EXT:sys_action/locallang.xml');
 
 /**
  * Adds action links to the backend's toolbar
@@ -76,13 +77,14 @@ class tx_sysactionToolbarMenu implements backend_toolbarItem {
                if ($actionEntries) {
                        $this->addJavascriptToBackend();
                        $this->addCssToBackend();
+                       $title = $GLOBALS['LANG']->getLL('action_toolbaritem', true);
 
                        $actionMenu[] = '<a href="#" class="toolbar-item"><img' .
                                t3lib_iconWorks::skinImg(
                                        $this->backPath,
                                        t3lib_extMgm::extRelPath($this->EXTKEY) . 'ext_icon.gif',
                                        'width="16" height="16"'
-                               ) . ' title="System Actions" alt="" /></a>';
+                               ) . ' title="' . $title . '" alt="' . $title . '" /></a>';
 
                        $actionMenu[] = '<ul class="toolbar-item-menu" style="display: none;">';
                        foreach ($actionEntries as $linkConf) {