identity: add leading capital letter to error messages
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
parent
2bbe16206c
commit
0d2432ecc1
|
@ -83,7 +83,7 @@ class VolGroupForm(CompoundDiskForm):
|
||||||
self.deleted_vg_names = deleted_vg_names
|
self.deleted_vg_names = deleted_vg_names
|
||||||
super().__init__(model, possible_components, initial)
|
super().__init__(model, possible_components, initial)
|
||||||
connect_signal(self.encrypt.widget, 'change', self._change_encrypt)
|
connect_signal(self.encrypt.widget, 'change', self._change_encrypt)
|
||||||
setup_password_validation(self, _("passphrases"))
|
setup_password_validation(self, _("Passphrases"))
|
||||||
self._change_encrypt(None, self.encrypt.value)
|
self._change_encrypt(None, self.encrypt.value)
|
||||||
|
|
||||||
name = VGNameField(_("Name:"))
|
name = VGNameField(_("Name:"))
|
||||||
|
|
|
@ -191,7 +191,7 @@ def setup_password_validation(form, desc):
|
||||||
password = form.password.value
|
password = form.password.value
|
||||||
if not password.startswith(new_text):
|
if not password.startswith(new_text):
|
||||||
form.confirm_password.show_extra(
|
form.confirm_password.show_extra(
|
||||||
# desc is "passwords" or "passphrases"
|
# desc is "Passwords" or "Passphrases"
|
||||||
("info_error", _("{desc} do not match").format(desc=desc)))
|
("info_error", _("{desc} do not match").format(desc=desc)))
|
||||||
else:
|
else:
|
||||||
form.confirm_password.show_extra('')
|
form.confirm_password.show_extra('')
|
||||||
|
@ -229,7 +229,7 @@ class IdentityView(BaseView):
|
||||||
self.form = IdentityForm(controller, initial)
|
self.form = IdentityForm(controller, initial)
|
||||||
|
|
||||||
connect_signal(self.form, 'submit', self.done)
|
connect_signal(self.form, 'submit', self.done)
|
||||||
setup_password_validation(self.form, _("passwords"))
|
setup_password_validation(self.form, _("Passwords"))
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
screen(
|
screen(
|
||||||
|
|
Loading…
Reference in New Issue