// Remove all translated text.
return NULL;
} elseif ($processing['manner'
] == 'replace_translated'
) { // Replace with a dummy string.
$node =
new TextNode('dummy', 0
);
} elseif ($processing['manner'
] == 'translated_chunk'
) { // Return the text only if it's the next chunk we're supposed to return.
// Add a wrapper, because non-translated nodes will still be returned.
if ($this_chunk ==
$processing['return_chunk'
]) { return new TextNode(static::DELIMITER .
$this->
extractText($node) .
static::DELIMITER, 0
);
} else { return NULL;
} } } if ($processing['manner'
] == 'remove_translated' &&
$node instanceof TextNode
) { // For this processing, we also want to remove all HTML tags and
// whitespace from TextNodes.
$text =
$node->
getAttribute('data'
);