LSformElement::password: fix confirmChangeQuestion translation

This commit is contained in:
Benjamin Renard 2020-06-30 09:59:25 +02:00
parent f66b7186e8
commit e44be00ebd

View file

@ -168,7 +168,9 @@ class LSformElement_password extends LSformElement {
);
if ($params['confirmChange']) {
$params['confirmChangeQuestion'] = getFData(__($this -> getParam('html_options.confirmChangeQuestion', '%{label}: Do you confirm the password change?')), $this -> label);
$defaultConfirmChangeQuestion = ___('%{label}: Do you confirm the password change?');
$params['confirmChangeQuestion'] = getFData(__($this -> getParam('html_options.confirmChangeQuestion', $defaultConfirmChangeQuestion)), $this -> label);
}
if ($params['confirmInput']) {
$defaultConfirmInputError = ___('Passwords entered did not match.');