1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-23 04:52:01 +00:00

recovery: change wording

This commit is contained in:
Pavol Rusnak 2017-06-23 16:47:53 +02:00
parent db7915e946
commit 8253425293
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -166,22 +166,21 @@ static void recovery_done(void) {
fsm_sendSuccess(_("Device recovered")); fsm_sendSuccess(_("Device recovered"));
} else { } else {
// Inform the user about new mnemonic correctness (as well as whether it is the same as the current one). // Inform the user about new mnemonic correctness (as well as whether it is the same as the current one).
const bool same_mnemonic = is_same_mnemonic(new_mnemonic); if (is_same_mnemonic(new_mnemonic)) {
if (same_mnemonic) {
layoutDialog(&bmp_icon_ok, NULL, _("Confirm"), NULL, layoutDialog(&bmp_icon_ok, NULL, _("Confirm"), NULL,
_("The mnemonic is"), _("The seed is valid"),
_("valid and matches"), _("and MATCHES"),
_("existing one."), NULL, NULL, NULL); _("the one in the device."), NULL, NULL, NULL);
protectButton(ButtonRequestType_ButtonRequest_Other, true); protectButton(ButtonRequestType_ButtonRequest_Other, true);
fsm_sendSuccess(_("Mnemonic is valid and matches existing one")); fsm_sendSuccess(_("The seed is valid and matches the one in the device"));
} else { } else {
layoutDialog(&bmp_icon_error, NULL, _("Confirm"), NULL, layoutDialog(&bmp_icon_error, NULL, _("Confirm"), NULL,
_("The mnemonic is"), _("The seed is valid"),
_("valid but doesn't"), _("but does NOT MATCH"),
_("match existing one."), NULL, NULL, NULL); _("the one in the device."), NULL, NULL, NULL);
protectButton(ButtonRequestType_ButtonRequest_Other, true); protectButton(ButtonRequestType_ButtonRequest_Other, true);
fsm_sendFailure(FailureType_Failure_DataError, fsm_sendFailure(FailureType_Failure_DataError,
_("Mnemonic is valid but doesn't match existing one")); _("The seed is valid but does not match the one in the device"));
} }
} }
} else { } else {
@ -190,7 +189,7 @@ static void recovery_done(void) {
storage_reset(); storage_reset();
} else { } else {
layoutDialog(&bmp_icon_error, NULL, _("Confirm"), NULL, layoutDialog(&bmp_icon_error, NULL, _("Confirm"), NULL,
_("The mnemonic is"), _("invalid!"), NULL, NULL, NULL, NULL); _("The seed is"), _("INVALID!"), NULL, NULL, NULL, NULL);
protectButton(ButtonRequestType_ButtonRequest_Other, true); protectButton(ButtonRequestType_ButtonRequest_Other, true);
} }
fsm_sendFailure(FailureType_Failure_DataError, _("Invalid mnemonic, are words in correct order?")); fsm_sendFailure(FailureType_Failure_DataError, _("Invalid mnemonic, are words in correct order?"));