php-gettext / PHP-Scanner

PHP code scanner for gettext
MIT License
14 stars 5 forks source link

Find __('text') occurrences #10

Closed lavitzz closed 4 years ago

lavitzz commented 4 years ago

Hi, im using gettext/gettext with this php-scanner but when use the scanner: $scanner->scanFile($file); $translations = $scanner->getTranslations(); but never find translations, the $file have __('text') inside. I have initialized the Scanner like: $scanner = new PhpScanner(); $scanner->setDefaultDomain('domain1'); Any suggestions? Thanks in advance

lavitzz commented 4 years ago

i forgot use Translations::create('domain1') in new, solved