protected function getTranslationNode(NodeInterface $parentNode, $locale, $create = true)
    {
        $name = Translation::LOCALE_NAMESPACE.":$locale";
        if (!$parentNode->hasNode($name)) {
            if (!$create) {
                return false;
            }
            $node = $parentNode->addNode($name);
        } else {
            $node = $parentNode->getNode($name);
        }

        return $node;
    }
protected function getTranslationNode(NodeInterface $parentNode, $locale, $create = true)
    {
        $name = Translation::LOCALE_NAMESPACE.":$locale";
        if (!$parentNode->hasNode($name)) {
            if (!$create) {
                return false;
            }
            $node = $parentNode->addNode($name);
        } else {
            $node = $parentNode->getNode($name);
        }

        return $node;
    }
protected function getTranslationNode ( NodeInterface $ parentNode , $ locale , $ create = true ) { $ name = Translation :: LOCALE_NAMESPACE . ":$locale" ; if ( ! $ parentNode -> hasNode ( $ name ) ) { if ( ! $ create ) { return false ; } $ node = $ parentNode -> addNode ( $ name ) ; } else { $ node = $ parentNode -> getNode ( $ name ) ; } return $ node ; }
Get the child node with the translation. If create is true, the child
node is created if not existing.

@param NodeInterface $parentNode
@param string        $locale
@param bool          $create     whether to create the node if it is
not yet existing

@return bool|NodeInterface the node or false if $create is false and
the node is not existing.
Get the child node with the translation . If create is true the child node is created if not existing .