19 declare(strict_types=1);
27 protected \ilLanguage
$lng;
35 $this->
lng->loadLanguageModule(
'meta');
41 return $this->
user->getDateFormat();
46 return $this->
lng->txt($key);
49 public function txtFill(
string $key,
string ...$values): string
51 if ($this->
lng->exists($key)) {
52 return sprintf($this->
lng->txt($key), ...$values);
54 return $key .
' ' . implode(
', ', $values);
59 return htmlspecialchars(
61 ENT_QUOTES | ENT_SUBSTITUTE,