private static function readXmlNodeAttribute(\Gettext\Translations $translations, $filenameRel, \DOMNode $node, $attributeName, $context = '')
    {
        $value = (string) $node->getAttribute($attributeName);
        if ($value !== '') {
            $translation = $translations->insert($context, $value);
            $translation->addReference($filenameRel, $node->getLineNo());
        }
    }
private static function readXmlNodeAttribute(\Gettext\Translations $translations, $filenameRel, \DOMNode $node, $attributeName, $context = '')
    {
        $value = (string) $node->getAttribute($attributeName);
        if ($value !== '') {
            $translation = $translations->insert($context, $value);
            $translation->addReference($filenameRel, $node->getLineNo());
        }
    }
private static function readXmlNodeAttribute ( \ Gettext \ Translations $ translations , $ filenameRel , \ DOMNode $ node , $ attributeName , $ context = '' ) { $ value = ( string ) $ node -> getAttribute ( $ attributeName ) ; if ( $ value !== '' ) { $ translation = $ translations -> insert ( $ context , $ value ) ; $ translation -> addReference ( $ filenameRel , $ node -> getLineNo ( ) ) ; } }
Parse a node attribute and create a POEntry item if it has a value.
@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                $attributeName The name of the attribute
@param string                $context=''    The translation context
Parse a node attribute and create a POEntry item if it has a value .