Merge branch 'master' of github.com:invoiceninja/invoiceninja
This commit is contained in:
commit
22bc25253e
1 changed files with 2 additions and 2 deletions
|
|
@ -695,7 +695,7 @@ if (! defined('APP_NAME')) {
|
|||
}
|
||||
|
||||
// include modules in translations
|
||||
function mtrans($entityType, $text = false)
|
||||
function mtrans($entityType, $text = false, $replace = [])
|
||||
{
|
||||
if (! $text) {
|
||||
$text = $entityType;
|
||||
|
|
@ -704,7 +704,7 @@ if (! defined('APP_NAME')) {
|
|||
// check if this has been translated in a module language file
|
||||
if (! Utils::isNinjaProd() && $module = Module::find($entityType)) {
|
||||
$key = "{$module->getLowerName()}::texts.{$text}";
|
||||
$value = trans($key);
|
||||
$value = trans($key, $replace);
|
||||
if ($key != $value) {
|
||||
return $value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue