Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
build(locales): include policies files in locales extraction
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed May 10, 2018
1 parent d1844a8 commit 2e1434d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public function localesExtract() {
$compiledTemplates = implode(' ', $compiledTemplates);

$potfile = strtolower($this->getPluginName()) . ".pot";
$phpSources = "*.php ajax/*.php front/*.php inc/*.php install/*.php";
$phpSources = "*.php ajax/*.php front/*.php inc/*.php install/*.php install/policies/*.php";
// extract locales from source code
$command = "xgettext $phpSources $compiledTemplates -o locales/$potfile -L PHP --add-comments=TRANS --from-code=UTF-8 --force-po";
$command .= " --keyword=_n:1,2,4t --keyword=__s:1,2t --keyword=__:1,2t --keyword=_e:1,2t --keyword=_x:1c,2,3t --keyword=_ex:1c,2,3t";
Expand Down

0 comments on commit 2e1434d

Please sign in to comment.