From 11b9f1c4e8f35feb017548bc2e1a0dd357754f5a Mon Sep 17 00:00:00 2001 From: ciny Date: Tue, 9 Jul 2019 14:05:51 +0200 Subject: [PATCH] core: show total number of words during device recovery --- core/src/apps/management/recovery_device.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/apps/management/recovery_device.py b/core/src/apps/management/recovery_device.py index 6cf186723a..b19cc197ab 100644 --- a/core/src/apps/management/recovery_device.py +++ b/core/src/apps/management/recovery_device.py @@ -10,7 +10,6 @@ from trezor.ui.mnemonic_bip39 import Bip39Keyboard from trezor.ui.mnemonic_slip39 import Slip39Keyboard from trezor.ui.text import Text from trezor.ui.word_select import WordSelector -from trezor.utils import format_ordinal from apps.common import mnemonic, storage from apps.common.confirm import require_confirm @@ -140,9 +139,9 @@ async def request_mnemonic(ctx: wire.Context, count: int, slip39: bool) -> str: words = [] for i in range(count): if slip39: - keyboard = Slip39Keyboard("Type the %s word:" % format_ordinal(i + 1)) + keyboard = Slip39Keyboard("Type word %s of %s:" % (i + 1, count)) else: - keyboard = Bip39Keyboard("Type the %s word:" % format_ordinal(i + 1)) + keyboard = Bip39Keyboard("Type word %s of %s:" % (i + 1, count)) if __debug__: word = await ctx.wait(keyboard, input_signal) else: