Index: Resources/Public/JavaScript/actions.js =================================================================== --- Resources/Public/JavaScript/actions.js (revision 3665) +++ Resources/Public/JavaScript/actions.js (revision ) @@ -37,7 +37,7 @@ case 'swap': this.runningMassAction = TYPO3.Workspaces.ExtDirectMassActions.publishWorkspace; break; - case 'release': + case 'discard': this.runningMassAction = TYPO3.Workspaces.ExtDirectMassActions.flushWorkspace; break; } Index: Resources/Public/JavaScript/toolbar.js =================================================================== --- Resources/Public/JavaScript/toolbar.js (revision 3568) +++ Resources/Public/JavaScript/toolbar.js (revision ) @@ -123,8 +123,8 @@ case 'swap': label = TYPO3.lang["tooltip.swapAll"]; break; - case 'release': - label = TYPO3.lang["tooltip.releaseAll"]; + case 'discard': + label = TYPO3.lang["tooltip.discardAll"]; break; } top.TYPO3.Windows.close('executeMassActionWindow'); Index: Resources/Private/Language/locallang.xml =================================================================== --- Resources/Private/Language/locallang.xml (revision 3829) +++ Resources/Private/Language/locallang.xml (revision ) @@ -30,7 +30,7 @@ - + @@ -75,6 +75,9 @@ + + + Index: Classes/ExtDirect/MassActionHandler.php =================================================================== --- Classes/ExtDirect/MassActionHandler.php (revision 3302) +++ Classes/ExtDirect/MassActionHandler.php (revision ) @@ -38,6 +38,12 @@ const MAX_RECORDS_TO_PROCESS = 30; /** + * Path to the locallang file + * @var string + */ + private $pathToLocallang = 'LLL:EXT:workspaces/Resources/Private/Language/locallang.xml'; + + /** * Get list of available mass workspace actions. * * @param object $parameter @@ -51,16 +57,16 @@ if ($currentWorkspace != tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES) { $publishAccess = $GLOBALS['BE_USER']->workspacePublishAccess($currentWorkspace); if ($publishAccess && !($GLOBALS['BE_USER']->workspaceRec['publish_access'] & 1)) { - $actions[] = array('action' => 'publish', 'title' => 'Publish' //$GLOBALS['LANG']->getLL('label_doaction_publish')); + $actions[] = array('action' => 'publish', 'title' => $GLOBALS['LANG']->sL($this->pathToLocallang . ':label_doaction_publish') ); if ($GLOBALS['BE_USER']->workspaceSwapAccess()) { - $actions[] = array('action' => 'swap', 'title' => 'Swap' //$GLOBALS['LANG']->getLL('label_doaction_swap') + $actions[] = array('action' => 'swap', 'title' => $GLOBALS['LANG']->sL($this->pathToLocallang . ':label_doaction_swap') ); } } if ($currentWorkspace !== tx_Workspaces_Service_Workspaces::LIVE_WORKSPACE_ID) { - $actions[] = array('action' => 'release', 'title' => 'Release' // $GLOBALS['LANG']->getLL('label_doaction_release')); + $actions[] = array('action' => 'discard', 'title' => $GLOBALS['LANG']->sL($this->pathToLocallang . ':label_doaction_discard') ); } }