Skip to content

Commit

Permalink
Using only 2 dots instead of 3 for t(Processing..)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeubas committed Aug 9, 2024
1 parent b55dba2 commit 2dafac9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/krux/pages/encryption_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def store_mnemonic_on_memory(self, sd_card=False):
return

self.ctx.display.clear()
self.ctx.display.draw_centered_text(t("Processing ..."))
self.ctx.display.draw_centered_text(t("Processing.."))
words = self.ctx.wallet.key.mnemonic
if mnemonic_storage.store_encrypted(key, mnemonic_id, words, sd_card, i_vector):
self.ctx.display.clear()
Expand All @@ -201,7 +201,7 @@ def encrypted_qr_code(self):
key, mnemonic_id, i_vector = user_inputs

self.ctx.display.clear()
self.ctx.display.draw_centered_text(t("Processing ..."))
self.ctx.display.draw_centered_text(t("Processing.."))

from ..encryption import EncryptedQRCode

Expand Down Expand Up @@ -271,7 +271,7 @@ def _load_encrypted_mnemonic(self, mnemonic_id, sd_card=False):
self.flash_error(t("Key was not provided"))
return MENU_CONTINUE
self.ctx.display.clear()
self.ctx.display.draw_centered_text(t("Processing ..."))
self.ctx.display.draw_centered_text(t("Processing.."))
mnemonic_storage = MnemonicStorage()
try:
words = mnemonic_storage.decrypt(key, mnemonic_id, sd_card).split()
Expand Down
2 changes: 1 addition & 1 deletion src/krux/pages/home_pages/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def sign_psbt(self):
return MENU_CONTINUE

self.ctx.display.clear()
self.ctx.display.draw_centered_text(t("Processing ..."))
self.ctx.display.draw_centered_text(t("Processing.."))
outputs, fee_percent = signer.outputs()

# Warn if fees greater than 10% of what is spent
Expand Down
2 changes: 1 addition & 1 deletion src/krux/pages/qr_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def save_bmp_image(self, file_name, resolution):
return

self.ctx.display.clear()
self.ctx.display.draw_centered_text(t("Saving ..."))
self.ctx.display.draw_centered_text(t("Processing.."))

bmp_img.save("/sd/" + file_name)
self.flash_text(t("Saved to SD card") + ":\n%s" % file_name)
Expand Down
6 changes: 3 additions & 3 deletions tests/pages/home_pages/test_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ def test_sign_high_fee(mocker, m5stickv, tdata):
mocker.call(
"Warning: Path mismatch\nWallet: m/84'/0'/0'\nPSBT: m/84'/1'/0'"
),
mocker.call("Processing ..."),
mocker.call("Processing.."),
mocker.call("Warning: High fees!\n799.7% of the amount."),
]
)
Expand Down Expand Up @@ -1069,7 +1069,7 @@ def test_sign_self(mocker, m5stickv, tdata):
mocker.call(
"Warning: Path mismatch\nWallet: m/84'/0'/0'\nPSBT: m/84'/1'/0'"
),
mocker.call("Processing ..."),
mocker.call("Processing.."),
mocker.call("Warning: High fees!\n799.7% of the amount."),
]
)
Expand Down Expand Up @@ -1118,7 +1118,7 @@ def test_sign_spent_and_self(mocker, m5stickv, tdata):
mocker.call(
"Warning: Path mismatch\nWallet: m/84'/0'/0'\nPSBT: m/84'/1'/0'"
),
mocker.call("Processing ..."),
mocker.call("Processing.."),
mocker.call("Warning: High fees!\n235.9% of the amount."),
]
)

0 comments on commit 2dafac9

Please sign in to comment.