mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Custom translations
This commit is contained in:
parent
7977b2a1e7
commit
efb40f1777
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invoice Ninja (https://invoiceninja.com).
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
*
|
*
|
||||||
|
@ -1,4 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://opensource.org/licenses/AAL
|
||||||
|
*/
|
||||||
|
|
||||||
namespace App\Helpers\Language;
|
namespace App\Helpers\Language;
|
||||||
|
|
||||||
|
@ -23,8 +23,7 @@
|
|||||||
function ctrans(string $string, $replace = [], $locale = null) : string
|
function ctrans(string $string, $replace = [], $locale = null) : string
|
||||||
{
|
{
|
||||||
//todo pass through the cached version of the custom strings here else return trans();
|
//todo pass through the cached version of the custom strings here else return trans();
|
||||||
//note** This may no longer be required as we are injecting the custom translations
|
//note** This may no longer be required as we can simply set Lang::set() at runtime
|
||||||
//into the singleton now?
|
|
||||||
|
|
||||||
return trans($string, $replace, $locale);
|
return trans($string, $replace, $locale);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user