How to parse all the labels i.e. msgids to .pot file using following script from the project code.
https://github.com/open-classifieds/common/blob/master/vendor/POTCreator/POTCreator.php
I am using ZF1 so I have made class from this script file and using it like this:
$obj = new Helper_potcreator();
$obj->set_root = APPLICATION_PATH . '/views';
$obj->set_exts('php|phtml');
$obj->set_regular('/_[_|e]\([\"|\']([^\"|\']+)[\"|\']\)/i');
$obj->set_base_path('..');
$obj->set_read_subdir(true);
$potfile = APPLICATION_PATH.'/languages/abc.pot';
$obj->write_pot($potfile);
but not getting any success in parsing labels.