code/libraries/joomlatools/component/koowa/controller/toolbar/actionbar.php
protected function _afterRead(KControllerContextInterface $context)
    {
        $controller = $this->getController();
        $translator = $this->getObject('translator');
        $name       = $translator->translate(strtolower($context->subject->getIdentifier()->name));

        if($controller->getModel()->getState()->isUnique()) {
            $title = $translator->translate('Edit {item_type}', array('item_type' => $name));
        } else {
            $title = $translator->translate('Create new {item_type}', array('item_type' => $name));
        }

        $this->getCommand('title')->title = $title;

        parent::_afterRead($context);
    }
protected function _afterRead(KControllerContextInterface $context)
    {
        $controller = $this->getController();
        $translator = $this->getObject('translator');
        $name       = $translator->translate(strtolower($context->subject->getIdentifier()->name));

        if($controller->getModel()->getState()->isUnique()) {
            $title = $translator->translate('Edit {item_type}', array('item_type' => $name));
        } else {
            $title = $translator->translate('Create new {item_type}', array('item_type' => $name));
        }

        $this->getCommand('title')->title = $title;

        parent::_afterRead($context);
    }
protected function _afterRead ( KControllerContextInterface $ context ) { $ controller = $ this -> getController ( ) ; $ translator = $ this -> getObject ( 'translator' ) ; $ name = $ translator -> translate ( strtolower ( $ context -> subject -> getIdentifier ( ) -> name ) ) ; if ( $ controller -> getModel ( ) -> getState ( ) -> isUnique ( ) ) { $ title = $ translator -> translate ( 'Edit {item_type}' , array ( 'item_type' => $ name ) ) ; } else { $ title = $ translator -> translate ( 'Create new {item_type}' , array ( 'item_type' => $ name ) ) ; } $ this -> getCommand ( 'title' ) -> title = $ title ; parent :: _afterRead ( $ context ) ; }
Add default action commands and set the action bar title
.

@param KControllerContextInterface $context A command context object
Add default action commands and set the action bar title .