How to configure poedit to extract strings from xml file?
I have Zend Framework navigation items in .xml like this:
Looks like PoEdit does not support XML yet.
I have created a little php script, to extract the labels to .php file, which PoEdit does understand.
$xml = simplexml_load_file("../application/configs/navigation.xml")
or die("Error: Cannot open XML file");
echo '';
foreach($xml->xpath('//label') as $label){
echo 'echo _("'.$label.'");'. PHP_EOL;
}