Skip to content

Commit

Permalink
Fix personnal domain not working
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBnm committed Mar 21, 2020
1 parent 52235be commit 991c2fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

if ($cli->arguments->defined('extract') !== false) {
$phpScanner = new PhpScanner($translations);
$phpScanner->setDefaultDomain("messages");
$phpScanner->setDefaultDomain($domain);

if ($cli->arguments->defined('comments') !== false) {
$phpScanner->extractCommentsStartingWith("Translators:");
Expand Down Expand Up @@ -154,7 +154,6 @@

$translations->setDescription($description);
$translations->setLanguage($language);
$translations->setDomain($domain);

$translations->getHeaders()->set("Last-Translator", "Automatically generated");
$translations->getHeaders()->set("PO-Revision-Date", date("Y-m-d H:iO"));
Expand Down

0 comments on commit 991c2fc

Please sign in to comment.