Skip to content

Instantly share code, notes, and snippets.

$this->log('Extracting gettext strings');
$xgettext = popen('xgettext --files-from=- --no-location --language=PHP --from-code=UTF-8 --no-wrap --omit-header -j -o "' . $messagesFile . '"', 'w');
foreach ($dirs as $dir) {
$iterator = new RegexIterator(
new RecursiveIteratorIterator(
new RecursiveDirectoryIterator(
$dir,
FilesystemIterator::SKIP_DOTS
)