19 declare(strict_types=1);
37 $dic->language()->loadLanguageModule(
'gsfo');
40 public function translate(
string $identifier, ?
string $prefix =
null): string
42 $key = $prefix !==
null ? $prefix .
'_' . $identifier : $identifier;
44 return $this->dic->language()->txt($key);
50 $file = __DIR__ .
'/' . self::LANG_PHP;
55 file_put_contents($file,
'<?php return ' . var_export(
$current,
true) .
';');
function string $translation
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
translate(string $identifier, ?string $prefix=null)
__construct(private readonly Container $dic)