Skip to content

Commit

Permalink
#0004097 - fixed module.php create translation
Browse files Browse the repository at this point in the history
  • Loading branch information
fparan committed Aug 2, 2019
1 parent c9f19ac commit ea62d4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ public function createTranslations($e, $routeMatch)

$sm = $e->getApplication()->getServiceManager();
$translator = $sm->get('translator');
$translator->addTranslationFile('phparray', $transPath);
if (file_exists($transPath)){
$translator->addTranslationFile('phparray', $transPath);
}

}
}

Expand Down

0 comments on commit ea62d4c

Please sign in to comment.