use new language class in API

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-04-28 18:14:00 +02:00
parent 373dfa7ad9
commit a2e95b960f
10 changed files with 156 additions and 164 deletions

View File

@@ -23,6 +23,8 @@
* @license http://files.froxlor.org/misc/COPYING.txt GPLv2
*/
use Froxlor\Language;
function view($template, $attributes)
{
$view = file_get_contents(dirname(__DIR__) . '/templates/' . $template);
@@ -32,5 +34,5 @@ function view($template, $attributes)
function lng(string $identifier, array $arguments = [])
{
return \Froxlor\Language::getTranslation($identifier, $arguments);
return Language::getTranslation($identifier, $arguments);
}