identity: add leading capital letter to error messages

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2022-06-23 12:59:51 +02:00
parent 2bbe16206c
commit 0d2432ecc1
2 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class VolGroupForm(CompoundDiskForm):
self.deleted_vg_names = deleted_vg_names
super().__init__(model, possible_components, initial)
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)
name = VGNameField(_("Name:"))

View File

@ -191,7 +191,7 @@ def setup_password_validation(form, desc):
password = form.password.value
if not password.startswith(new_text):
form.confirm_password.show_extra(
# desc is "passwords" or "passphrases"
# desc is "Passwords" or "Passphrases"
("info_error", _("{desc} do not match").format(desc=desc)))
else:
form.confirm_password.show_extra('')
@ -229,7 +229,7 @@ class IdentityView(BaseView):
self.form = IdentityForm(controller, initial)
connect_signal(self.form, 'submit', self.done)
setup_password_validation(self.form, _("passwords"))
setup_password_validation(self.form, _("Passwords"))
super().__init__(
screen(