diff --git a/src/classes/page.php b/src/classes/page.php index 66e49fec..2caf4801 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -262,7 +262,7 @@ class Page toast_wish_create : '', toast_wish_add : '', toast_wish_update : '', - toast_wish_save : '', + toast_wish_save : '', toast_wish_delete : '', toast_clipboard_error_title : '', @@ -277,14 +277,14 @@ class Page form_prompt_integer : '', form_prompt_decimal : '', form_prompt_number : '', - form_prompt_is : '', - form_prompt_isExactly : '', - form_prompt_not : '', - form_prompt_notExactly : '', - form_prompt_contain : '', - form_prompt_containExactly : '', - form_prompt_doesntContain : '', - form_prompt_doesntContainExactly : '', + form_prompt_is : '', + form_prompt_isExactly : '', + form_prompt_not : '', + form_prompt_notExactly : '', + form_prompt_contain : '', + form_prompt_containExactly : '', + form_prompt_doesntContain : '', + form_prompt_doesntContainExactly : '', form_prompt_minLength : '', form_prompt_length : '', form_prompt_exactLength : '', diff --git a/src/functions/gettext.php b/src/functions/gettext.php index 760ac32b..b6b9e297 100644 --- a/src/functions/gettext.php +++ b/src/functions/gettext.php @@ -16,9 +16,9 @@ function __(string $text) $translation = $translations->find(null, $text); if ($translation) { - return $translation->getTranslation(); + return addslashes($translation->getTranslation()); } } - return $text; + return addslashes($text); }