Skip to content
Snippets Groups Projects
Commit 2bb020df authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Also search for noop() function use in modules/<module>/lib/

parent 567ba33b
No related branches found
No related tags found
No related merge requests found
...@@ -30,8 +30,10 @@ foreach($modules as $module) { ...@@ -30,8 +30,10 @@ foreach($modules as $module) {
$transUtils->compileAllTemplates($module, $tempDir); $transUtils->compileAllTemplates($module, $tempDir);
$domain = $module ?: 'messages'; $domain = $module ?: 'messages';
$outputDir = $baseDir . ($module === '' ? '' : '/modules/' . $module) . $outputSuffix; $moduleDir = $baseDir . ($module === '' ? '' : '/modules/' . $module);
print `xgettext --default-domain=$domain -p $outputDir --from-code=UTF-8 -j --no-location -ktrans -L PHP $tempDir/*/*.php`; $moduleLibDir = $moduleDir . '/lib/';
$outputDir = $moduleDir . $outputSuffix;
print `find $tempDir $moduleLibDir -name \*.php | xargs xgettext --default-domain=$domain -p $outputDir --from-code=UTF-8 -j --omit-header --no-location -ktrans -knoop -L PHP`;
} }
$filesystem->remove($tempDirBase); $filesystem->remove($tempDirBase);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment