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 */
|
||||
$.fn.form.settings.prompt = {
|
||||
empty : text.form_prompt.empty,
|
||||
checked : text.form_prompt.checked,
|
||||
email : text.form_prompt.email,
|
||||
url : text.form_prompt.url,
|
||||
regExp : text.form_prompt.regExp,
|
||||
integer : text.form_prompt.integer,
|
||||
decimal : text.form_prompt.decimal,
|
||||
number : text.form_prompt.number,
|
||||
is : text.form_prompt.is,
|
||||
isExactly : text.form_prompt.isExactly,
|
||||
not : text.form_prompt.not,
|
||||
notExactly : text.form_prompt.notExactly,
|
||||
contain : text.form_prompt.contain,
|
||||
containExactly : text.form_prompt.containExactly,
|
||||
doesntContain : text.form_prompt.doesntContain,
|
||||
doesntContainExactly : text.form_prompt.doesntContainExactly,
|
||||
minLength : text.form_prompt.minLength,
|
||||
length : text.form_prompt.length,
|
||||
exactLength : text.form_prompt.exactLength,
|
||||
maxLength : text.form_prompt.maxLength,
|
||||
match : text.form_prompt.match,
|
||||
different : text.form_prompt.different,
|
||||
creditCard : text.form_prompt.creditCard,
|
||||
minCount : text.form_prompt.minCount,
|
||||
exactCount : text.form_prompt.exactCount,
|
||||
maxCount : text.form_prompt.maxCount,
|
||||
empty : text.form_prompt_empty,
|
||||
checked : text.form_prompt_checked,
|
||||
email : text.form_prompt_email,
|
||||
url : text.form_prompt_url,
|
||||
regExp : text.form_prompt_regExp,
|
||||
integer : text.form_prompt_integer,
|
||||
decimal : text.form_prompt_decimal,
|
||||
number : text.form_prompt_number,
|
||||
is : text.form_prompt_is,
|
||||
isExactly : text.form_prompt_isExactly,
|
||||
not : text.form_prompt_not,
|
||||
notExactly : text.form_prompt_notExactly,
|
||||
contain : text.form_prompt_contain,
|
||||
containExactly : text.form_prompt_containExactly,
|
||||
doesntContain : text.form_prompt_doesntContain,
|
||||
doesntContainExactly : text.form_prompt_doesntContainExactly,
|
||||
minLength : text.form_prompt_minLength,
|
||||
length : text.form_prompt_length,
|
||||
exactLength : text.form_prompt_exactLength,
|
||||
maxLength : text.form_prompt_maxLength,
|
||||
match : text.form_prompt_match,
|
||||
different : text.form_prompt_different,
|
||||
creditCard : text.form_prompt_creditCard,
|
||||
minCount : text.form_prompt_minCount,
|
||||
exactCount : text.form_prompt_exactCount,
|
||||
maxCount : text.form_prompt_maxCount,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 : '<?= __('{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_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_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') ?>',
|
||||
|
|
Loading…
Reference in a new issue