public function getNodeAndSetLocale($name, $track = true, $published = true)
    {
        $node = $this->getNode($name, $track, $published);

        $locale = $node->getLocaleForNodeName($name);

        set_app_locale($locale);

        return $node;
    }
public function getNodeAndSetLocale($name, $track = true, $published = true)
    {
        $node = $this->getNode($name, $track, $published);

        $locale = $node->getLocaleForNodeName($name);

        set_app_locale($locale);

        return $node;
    }
public function getNodeAndSetLocale ( $ name , $ track = true , $ published = true ) { $ node = $ this -> getNode ( $ name , $ track , $ published ) ; $ locale = $ node -> getLocaleForNodeName ( $ name ) ; set_app_locale ( $ locale ) ; return $ node ; }
Returns a node by name and sets the locale

@param string $name
@param bool $track
@param bool $published
@return Node
Returns a node by name and sets the locale