private static function readXmlPageKeywords(\Gettext\Translations $translations, $filenameRel, \DOMNode $node, $pageUrl)
    {
        $keywords = (string) $node->nodeValue;
        if ($keywords !== '') {
            $translation = $translations->insert('', $keywords);
            $translation->addReference($filenameRel, $node->getLineNo());
            $pageUrl = (string) $pageUrl;
            if ($pageUrl !== '') {
                $translation->addExtractedComment("Keywords for page $pageUrl");
            }
        }
    }
private static function readXmlPageKeywords(\Gettext\Translations $translations, $filenameRel, \DOMNode $node, $pageUrl)
    {
        $keywords = (string) $node->nodeValue;
        if ($keywords !== '') {
            $translation = $translations->insert('', $keywords);
            $translation->addReference($filenameRel, $node->getLineNo());
            $pageUrl = (string) $pageUrl;
            if ($pageUrl !== '') {
                $translation->addExtractedComment("Keywords for page $pageUrl");
            }
        }
    }
private static function readXmlPageKeywords ( \ Gettext \ Translations $ translations , $ filenameRel , \ DOMNode $ node , $ pageUrl ) { $ keywords = ( string ) $ node -> nodeValue ; if ( $ keywords !== '' ) { $ translation = $ translations -> insert ( '' , $ keywords ) ; $ translation -> addReference ( $ filenameRel , $ node -> getLineNo ( ) ) ; $ pageUrl = ( string ) $ pageUrl ; if ( $ pageUrl !== '' ) { $ translation -> addExtractedComment ( "Keywords for page $pageUrl" ) ; } } }
Parse a node attribute which contains the keywords for a page.
@param \Gettext\Translations $translations Will be populated with found entries
@param string                $filenameRel  The relative file name of the xml file being read
@param \DOMNode              $node         The current node
@param string                $pageUrl      The url of the page for which the keywords are for
Parse a node attribute which contains the keywords for a page .