mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Custom translations
This commit is contained in:
parent
7977b2a1e7
commit
efb40f1777
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invoice Ninja (https://invoiceninja.com).
|
||||
*
|
||||
|
@ -1,4 +1,13 @@
|
||||
<?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;
|
||||
|
||||
|
@ -23,8 +23,7 @@
|
||||
function ctrans(string $string, $replace = [], $locale = null) : string
|
||||
{
|
||||
//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
|
||||
//into the singleton now?
|
||||
//note** This may no longer be required as we can simply set Lang::set() at runtime
|
||||
|
||||
return trans($string, $replace, $locale);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user