19 declare(strict_types=1);
    34         $dic->language()->loadLanguageModule(
'gsfo');
    37     public function translate(
string $identifier, ?
string $prefix = null): string
    39         $key = $prefix !== null ? $prefix . 
'_' . $identifier : $identifier;
    41         return $this->dic->language()->txt($key);
    47             $file = __DIR__ . 
'/' . self::LANG_PHP;
    52                 file_put_contents($file, 
'<?php return ' . var_export(
$current, 
true) . 
';');
 function string $translation
 
Customizing of pimple-DIC for ILIAS. 
 
translate(string $identifier, ?string $prefix=null)
 
__construct(private readonly Container $dic)