This commit is contained in:
Jay Trees 2022-03-23 10:00:12 +01:00
parent 5fceef13f5
commit 416fd34c3d
2 changed files with 11 additions and 11 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') ?>',
@ -277,14 +277,14 @@ class Page
form_prompt_integer : '<?= __('{name} must be an integer') ?>',
form_prompt_decimal : '<?= __('{name} must be a decimal number') ?>',
form_prompt_number : '<?= __('{name} must be set to a number') ?>',
form_prompt_is : '<?= __(addslashes('{name} must be \'{ruleValue}\'')) ?>',
form_prompt_isExactly : '<?= __(addslashes('{name} must be exactly \'{ruleValue}\'')) ?>',
form_prompt_not : '<?= __(addslashes('{name} cannot be set to \'{ruleValue}\'')) ?>',
form_prompt_notExactly : '<?= __(addslashes('{name} cannot be set to exactly \'{ruleValue}\'')) ?>',
form_prompt_contain : '<?= __(addslashes('{name} cannot contain \'{ruleValue}\'')) ?>',
form_prompt_containExactly : '<?= __(addslashes('{name} cannot contain exactly \'{ruleValue}\'')) ?>',
form_prompt_doesntContain : '<?= __(addslashes('{name} must contain \'{ruleValue}\'')) ?>',
form_prompt_doesntContainExactly : '<?= __(addslashes('{name} must contain exactly \'{ruleValue}\'')) ?>',
form_prompt_is : '<?= __('{name} must be \'{ruleValue}\'') ?>',
form_prompt_isExactly : '<?= __('{name} must be exactly \'{ruleValue}\'') ?>',
form_prompt_not : '<?= __('{name} cannot be set to \'{ruleValue}\'') ?>',
form_prompt_notExactly : '<?= __('{name} cannot be set to exactly \'{ruleValue}\'') ?>',
form_prompt_contain : '<?= __('{name} cannot contain \'{ruleValue}\'') ?>',
form_prompt_containExactly : '<?= __('{name} cannot contain exactly \'{ruleValue}\'') ?>',
form_prompt_doesntContain : '<?= __('{name} must contain \'{ruleValue}\'') ?>',
form_prompt_doesntContainExactly : '<?= __('{name} must contain exactly \'{ruleValue}\'') ?>',
form_prompt_minLength : '<?= __('{name} must be at least {ruleValue} characters') ?>',
form_prompt_length : '<?= __('{name} must be at least {ruleValue} characters') ?>',
form_prompt_exactLength : '<?= __('{name} must be exactly {ruleValue} characters') ?>',

View file

@ -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);
}