1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Custom translations

This commit is contained in:
David Bomba 2020-11-10 14:27:25 +11:00
parent 7977b2a1e7
commit efb40f1777
3 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,4 @@
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*

View File

@ -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;

View File

@ -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);
}