Fix translation not working

This commit is contained in:
Jay Trees 2022-03-25 14:56:40 +01:00
parent 0dfb506974
commit 62a54c64f8
2 changed files with 3 additions and 3 deletions

View file

@ -262,7 +262,7 @@ class Page
toast_wish_create : '<?= __('Wish successfully created.') ?>',
toast_wish_add : '<?= __('Wish successfully added.') ?>',
toast_wish_update : '<?= __('Wish information updated.') ?>',
toast_wish_save : '<?= __(addslashes('Don\'t forget to save your changes.')) ?>',
toast_wish_save : '<?= __("Don't forget to save your changes.") ?>',
toast_wish_delete : '<?= __('Wish successfully deleted.') ?>',
toast_clipboard_error_title : '<?= __('Error') ?>',

View file

@ -16,9 +16,9 @@ function __(string $text)
$translation = $translations->find(null, $text);
if ($translation) {
return $translation->getTranslation();
return htmlentities($translation->getTranslation());
}
}
return $text;
return htmlentities($text);
}