Fix error message
This commit is contained in:
parent
2ce5856a2c
commit
5905c0e89e
@ -280,7 +280,7 @@ ErrorWrongFileName=Name of the file cannot have __SOMETHING__ in it
|
|||||||
ErrorNotInDictionaryPaymentConditions=Not in Payment Terms Dictionary, please modify.
|
ErrorNotInDictionaryPaymentConditions=Not in Payment Terms Dictionary, please modify.
|
||||||
ErrorIsNotADraft=%s is not a draft
|
ErrorIsNotADraft=%s is not a draft
|
||||||
ErrorExecIdFailed=Can't execute command "id"
|
ErrorExecIdFailed=Can't execute command "id"
|
||||||
ErrorBadCharIntoLoginName=Unauthorized character in the login name
|
ErrorBadCharIntoLoginName=Unauthorized character in the field %s
|
||||||
ErrorRequestTooLarge=Error, request too large or session expired
|
ErrorRequestTooLarge=Error, request too large or session expired
|
||||||
ErrorNotApproverForHoliday=You are not the approver for leave %s
|
ErrorNotApproverForHoliday=You are not the approver for leave %s
|
||||||
ErrorAttributeIsUsedIntoProduct=This attribute is used in one or more product variants
|
ErrorAttributeIsUsedIntoProduct=This attribute is used in one or more product variants
|
||||||
|
|||||||
@ -1522,7 +1522,7 @@ class User extends CommonObject
|
|||||||
return -1;
|
return -1;
|
||||||
} elseif (preg_match('/['.preg_quote($badCharUnauthorizedIntoLoginName, '/').']/', $this->login)) {
|
} elseif (preg_match('/['.preg_quote($badCharUnauthorizedIntoLoginName, '/').']/', $this->login)) {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$this->error = $langs->trans("ErrorBadCharIntoLoginName");
|
$this->error = $langs->trans("ErrorBadCharIntoLoginName", $langs->transnoentitiesnoconv("Login"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1918,7 +1918,7 @@ class User extends CommonObject
|
|||||||
return -1;
|
return -1;
|
||||||
} elseif (preg_match('/['.preg_quote($badCharUnauthorizedIntoLoginName, '/').']/', $this->login)) {
|
} elseif (preg_match('/['.preg_quote($badCharUnauthorizedIntoLoginName, '/').']/', $this->login)) {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$this->error = $langs->trans("ErrorBadCharIntoLoginName");
|
$this->error = $langs->trans("ErrorBadCharIntoLoginName", $langs->transnoentitiesnoconv("Login"));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user