19 declare(strict_types=1);
28 protected \ilLanguage
$lng;
38 $this->
lng->loadLanguageModule(
'meta');
45 return $this->
user->getDateFormat();
48 public function txt(
string $key): string
50 return $this->
lng->txt($key);
53 public function txtFill(
string $key,
string ...$values): string
55 if ($this->
lng->exists($key)) {
56 return sprintf($this->
lng->txt($key), ...$values);
58 return $key .
' ' . implode(
', ', $values);
63 return $this->
refinery->encode()->htmlSpecialCharsAsEntities()->transform($string);