Fix form translation not working
This commit is contained in:
parent
0cf25e503f
commit
5fceef13f5
2 changed files with 34 additions and 34 deletions
|
@ -98,32 +98,32 @@ $(function() {
|
||||||
|
|
||||||
/** Form Prompts */
|
/** Form Prompts */
|
||||||
$.fn.form.settings.prompt = {
|
$.fn.form.settings.prompt = {
|
||||||
empty : text.form_prompt.empty,
|
empty : text.form_prompt_empty,
|
||||||
checked : text.form_prompt.checked,
|
checked : text.form_prompt_checked,
|
||||||
email : text.form_prompt.email,
|
email : text.form_prompt_email,
|
||||||
url : text.form_prompt.url,
|
url : text.form_prompt_url,
|
||||||
regExp : text.form_prompt.regExp,
|
regExp : text.form_prompt_regExp,
|
||||||
integer : text.form_prompt.integer,
|
integer : text.form_prompt_integer,
|
||||||
decimal : text.form_prompt.decimal,
|
decimal : text.form_prompt_decimal,
|
||||||
number : text.form_prompt.number,
|
number : text.form_prompt_number,
|
||||||
is : text.form_prompt.is,
|
is : text.form_prompt_is,
|
||||||
isExactly : text.form_prompt.isExactly,
|
isExactly : text.form_prompt_isExactly,
|
||||||
not : text.form_prompt.not,
|
not : text.form_prompt_not,
|
||||||
notExactly : text.form_prompt.notExactly,
|
notExactly : text.form_prompt_notExactly,
|
||||||
contain : text.form_prompt.contain,
|
contain : text.form_prompt_contain,
|
||||||
containExactly : text.form_prompt.containExactly,
|
containExactly : text.form_prompt_containExactly,
|
||||||
doesntContain : text.form_prompt.doesntContain,
|
doesntContain : text.form_prompt_doesntContain,
|
||||||
doesntContainExactly : text.form_prompt.doesntContainExactly,
|
doesntContainExactly : text.form_prompt_doesntContainExactly,
|
||||||
minLength : text.form_prompt.minLength,
|
minLength : text.form_prompt_minLength,
|
||||||
length : text.form_prompt.length,
|
length : text.form_prompt_length,
|
||||||
exactLength : text.form_prompt.exactLength,
|
exactLength : text.form_prompt_exactLength,
|
||||||
maxLength : text.form_prompt.maxLength,
|
maxLength : text.form_prompt_maxLength,
|
||||||
match : text.form_prompt.match,
|
match : text.form_prompt_match,
|
||||||
different : text.form_prompt.different,
|
different : text.form_prompt_different,
|
||||||
creditCard : text.form_prompt.creditCard,
|
creditCard : text.form_prompt_creditCard,
|
||||||
minCount : text.form_prompt.minCount,
|
minCount : text.form_prompt_minCount,
|
||||||
exactCount : text.form_prompt.exactCount,
|
exactCount : text.form_prompt_exactCount,
|
||||||
maxCount : text.form_prompt.maxCount,
|
maxCount : text.form_prompt_maxCount,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -277,14 +277,14 @@ class Page
|
||||||
form_prompt_integer : '<?= __('{name} must be an integer') ?>',
|
form_prompt_integer : '<?= __('{name} must be an integer') ?>',
|
||||||
form_prompt_decimal : '<?= __('{name} must be a decimal number') ?>',
|
form_prompt_decimal : '<?= __('{name} must be a decimal number') ?>',
|
||||||
form_prompt_number : '<?= __('{name} must be set to a number') ?>',
|
form_prompt_number : '<?= __('{name} must be set to a number') ?>',
|
||||||
form_prompt_is : '<?= __('{name} must be \'{ruleValue}\'') ?>',
|
form_prompt_is : '<?= __(addslashes('{name} must be \'{ruleValue}\'')) ?>',
|
||||||
form_prompt_isExactly : '<?= __('{name} must be exactly \'{ruleValue}\'') ?>',
|
form_prompt_isExactly : '<?= __(addslashes('{name} must be exactly \'{ruleValue}\'')) ?>',
|
||||||
form_prompt_not : '<?= __('{name} cannot be set to \'{ruleValue}\'') ?>',
|
form_prompt_not : '<?= __(addslashes('{name} cannot be set to \'{ruleValue}\'')) ?>',
|
||||||
form_prompt_notExactly : '<?= __('{name} cannot be set to exactly \'{ruleValue}\'') ?>',
|
form_prompt_notExactly : '<?= __(addslashes('{name} cannot be set to exactly \'{ruleValue}\'')) ?>',
|
||||||
form_prompt_contain : '<?= __('{name} cannot contain \'{ruleValue}\'') ?>',
|
form_prompt_contain : '<?= __(addslashes('{name} cannot contain \'{ruleValue}\'')) ?>',
|
||||||
form_prompt_containExactly : '<?= __('{name} cannot contain exactly \'{ruleValue}\'') ?>',
|
form_prompt_containExactly : '<?= __(addslashes('{name} cannot contain exactly \'{ruleValue}\'')) ?>',
|
||||||
form_prompt_doesntContain : '<?= __('{name} must contain \'{ruleValue}\'') ?>',
|
form_prompt_doesntContain : '<?= __(addslashes('{name} must contain \'{ruleValue}\'')) ?>',
|
||||||
form_prompt_doesntContainExactly : '<?= __('{name} must contain exactly \'{ruleValue}\'') ?>',
|
form_prompt_doesntContainExactly : '<?= __(addslashes('{name} must contain exactly \'{ruleValue}\'')) ?>',
|
||||||
form_prompt_minLength : '<?= __('{name} must be at least {ruleValue} characters') ?>',
|
form_prompt_minLength : '<?= __('{name} must be at least {ruleValue} characters') ?>',
|
||||||
form_prompt_length : '<?= __('{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') ?>',
|
form_prompt_exactLength : '<?= __('{name} must be exactly {ruleValue} characters') ?>',
|
||||||
|
|
Loading…
Reference in a new issue