diff --git a/CHANGELOG.md b/CHANGELOG.md index 4afb683b..5d09edb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,9 @@ Computer simulator for WonderMV device has been added. ### Krux Ethos Guidelines have been created to assist with decision-making regarding the Krux project's interactions with contributors, users, and businesses that may create products or services related to Krux. +### Minor Bugfixes and Refactors +Several code improvements for better reliability and efficiency. + # Changelog 24.09.1 - September 26, 2024 ### Fix Camera Orientation on Cube diff --git a/i18n/translations/de-DE.json b/i18n/translations/de-DE.json index cf888bf9..f01f7d9d 100644 --- a/i18n/translations/de-DE.json +++ b/i18n/translations/de-DE.json @@ -210,6 +210,7 @@ "Processing..": "Wird bearbeitet..", "QR Code": "QR-Code", "RX Pin": "RX Pin", + "Reboot": "Neustart", "Receive": "Empfangen", "Receive Addresses": "Empfangsadresse", "Region:": "Region:", diff --git a/i18n/translations/es-MX.json b/i18n/translations/es-MX.json index f4bcae7f..adbc110e 100644 --- a/i18n/translations/es-MX.json +++ b/i18n/translations/es-MX.json @@ -210,6 +210,7 @@ "Processing..": "Procesando..", "QR Code": "Código QR", "RX Pin": "RX Pin", + "Reboot": "Reiniciar", "Receive": "Recepción", "Receive Addresses": "Direcciones de Recepción", "Region:": "Región:", diff --git a/i18n/translations/fr-FR.json b/i18n/translations/fr-FR.json index 9111ab91..f9cad55a 100644 --- a/i18n/translations/fr-FR.json +++ b/i18n/translations/fr-FR.json @@ -210,6 +210,7 @@ "Processing..": "Traitement..", "QR Code": "Code QR", "RX Pin": "RX Fiche", + "Reboot": "Redémarrer", "Receive": "Recevoir", "Receive Addresses": "Adresses de Réception", "Region:": "Région :", diff --git a/i18n/translations/ja-JP.json b/i18n/translations/ja-JP.json index 23d9b7c1..51c5dc5d 100644 --- a/i18n/translations/ja-JP.json +++ b/i18n/translations/ja-JP.json @@ -210,6 +210,7 @@ "Processing..": "処理中..", "QR Code": "QRコード", "RX Pin": "RXピン", + "Reboot": "再起動", "Receive": "受け取る", "Receive Addresses": "受取アドレス", "Region:": "地域:", diff --git a/i18n/translations/ko-KR.json b/i18n/translations/ko-KR.json index f078fa76..cfe8b6a5 100644 --- a/i18n/translations/ko-KR.json +++ b/i18n/translations/ko-KR.json @@ -210,6 +210,7 @@ "Processing..": "처리...", "QR Code": "QR 코드", "RX Pin": "RX 핀", + "Reboot": "다시 반복", "Receive": "받기", "Receive Addresses": "주소", "Region:": "지역:", diff --git a/i18n/translations/nl-NL.json b/i18n/translations/nl-NL.json index 0318c185..09b5500f 100644 --- a/i18n/translations/nl-NL.json +++ b/i18n/translations/nl-NL.json @@ -210,6 +210,7 @@ "Processing..": "Verwerken..", "QR Code": "QR code", "RX Pin": "RX pin", + "Reboot": "Opnieuw opstarten", "Receive": "Ontvangen", "Receive Addresses": "Ontvangstadres", "Region:": "Regio:", diff --git a/i18n/translations/pt-BR.json b/i18n/translations/pt-BR.json index 275b7ef5..e2da6cd4 100644 --- a/i18n/translations/pt-BR.json +++ b/i18n/translations/pt-BR.json @@ -210,6 +210,7 @@ "Processing..": "Processando..", "QR Code": "Código QR", "RX Pin": "Pino RX", + "Reboot": "Reiniciar", "Receive": "Recebimento", "Receive Addresses": "Endereços de Recebimento", "Region:": "Região:", diff --git a/i18n/translations/ru-RU.json b/i18n/translations/ru-RU.json index 10f70d14..24cc60c4 100644 --- a/i18n/translations/ru-RU.json +++ b/i18n/translations/ru-RU.json @@ -210,6 +210,7 @@ "Processing..": "Обработка..", "QR Code": "QR Код", "RX Pin": "RX Пин", + "Reboot": "Перезагрузить", "Receive": "Получить", "Receive Addresses": "Адрес Получения", "Region:": "Регион:", diff --git a/i18n/translations/tr-TR.json b/i18n/translations/tr-TR.json index e42fe2b9..1a4de798 100644 --- a/i18n/translations/tr-TR.json +++ b/i18n/translations/tr-TR.json @@ -210,6 +210,7 @@ "Processing..": "İşleniyor..", "QR Code": "QR Kodu", "RX Pin": "RX Pini", + "Reboot": "Yeniden Başlat", "Receive": "Al", "Receive Addresses": "Adresleri Al", "Region:": "Bölge:", diff --git a/i18n/translations/vi-VN.json b/i18n/translations/vi-VN.json index 4856257d..73e95cee 100644 --- a/i18n/translations/vi-VN.json +++ b/i18n/translations/vi-VN.json @@ -210,6 +210,7 @@ "Processing..": "Đang xử lý..", "QR Code": "Mã QR", "RX Pin": "RX Pin", + "Reboot": "Khởi động lại", "Receive": "Nhận được", "Receive Addresses": "Các địa chỉ nhận", "Region:": "Vùng:", diff --git a/i18n/translations/zh-CN.json b/i18n/translations/zh-CN.json index f7f8d958..acbf94cc 100644 --- a/i18n/translations/zh-CN.json +++ b/i18n/translations/zh-CN.json @@ -210,6 +210,7 @@ "Processing..": "正在处理..", "QR Code": "二维码", "RX Pin": "RX 引脚", + "Reboot": "重启", "Receive": "接收", "Receive Addresses": "接收地址", "Region:": "区域:", diff --git a/src/krux/pages/home_pages/home.py b/src/krux/pages/home_pages/home.py index 0c07bf8f..a4ee86db 100644 --- a/src/krux/pages/home_pages/home.py +++ b/src/krux/pages/home_pages/home.py @@ -41,6 +41,9 @@ class Home(Page): """Home is the main menu page of the app""" def __init__(self, ctx): + shtn_reboot_label = ( + t("Shutdown") if ctx.power_manager.has_battery() else t("Reboot") + ) super().__init__( ctx, Menu( @@ -58,7 +61,7 @@ def __init__(self, ctx): (t("Wallet"), self.wallet), (t("Address"), self.addresses_menu), (t("Sign"), self.sign), - (t("Shutdown"), self.shutdown), + (shtn_reboot_label, self.shutdown), ], back_label=None, ), diff --git a/src/krux/pages/login.py b/src/krux/pages/login.py index 7dd86e30..30002b7a 100644 --- a/src/krux/pages/login.py +++ b/src/krux/pages/login.py @@ -50,6 +50,9 @@ class Login(Page): SETTINGS_MENU_INDEX = 2 def __init__(self, ctx): + shtn_reboot_label = ( + t("Shutdown") if ctx.power_manager.has_battery() else t("Reboot") + ) super().__init__( ctx, Menu( @@ -60,7 +63,7 @@ def __init__(self, ctx): (t("Settings"), self.settings), (t("Tools"), self.tools), (t("About"), self.about), - (t("Shutdown"), self.shutdown), + (shtn_reboot_label, self.shutdown), ], back_label=None, ), diff --git a/src/krux/translations/__init__.py b/src/krux/translations/__init__.py index a83b8830..d7f3a069 100644 --- a/src/krux/translations/__init__.py +++ b/src/krux/translations/__init__.py @@ -244,6 +244,7 @@ 3108881025, 1848310591, 710709610, + 3338633658, 2697857197, 1746677167, 1658501467, diff --git a/src/krux/translations/de.py b/src/krux/translations/de.py index 183a7b28..e29ac9b3 100644 --- a/src/krux/translations/de.py +++ b/src/krux/translations/de.py @@ -232,6 +232,7 @@ "Wird bearbeitet..", "QR-Code", "RX Pin", + "Neustart", "Empfangen", "Empfangsadresse", "Region:", diff --git a/src/krux/translations/es.py b/src/krux/translations/es.py index 6578f61e..372dc6d3 100644 --- a/src/krux/translations/es.py +++ b/src/krux/translations/es.py @@ -232,6 +232,7 @@ "Procesando..", "Código QR", "RX Pin", + "Reiniciar", "Recepción", "Direcciones de Recepción", "Región:", diff --git a/src/krux/translations/fr.py b/src/krux/translations/fr.py index fa9cc5ca..7bba2661 100644 --- a/src/krux/translations/fr.py +++ b/src/krux/translations/fr.py @@ -232,6 +232,7 @@ "Traitement..", "Code QR", "RX Fiche", + "Redémarrer", "Recevoir", "Adresses de Réception", "Région\u2009:", diff --git a/src/krux/translations/ja.py b/src/krux/translations/ja.py index 8d853c13..f576a5ea 100644 --- a/src/krux/translations/ja.py +++ b/src/krux/translations/ja.py @@ -232,6 +232,7 @@ "処理中..", "QRコード", "RXピン", + "再起動", "受け取る", "受取アドレス", "地域:", diff --git a/src/krux/translations/ko.py b/src/krux/translations/ko.py index 7fb71f12..32f836b2 100644 --- a/src/krux/translations/ko.py +++ b/src/krux/translations/ko.py @@ -232,6 +232,7 @@ "처리...", "QR 코드", "RX 핀", + "다시 반복", "받기", "주소", "지역:", diff --git a/src/krux/translations/nl.py b/src/krux/translations/nl.py index 96386053..9cbb324e 100644 --- a/src/krux/translations/nl.py +++ b/src/krux/translations/nl.py @@ -232,6 +232,7 @@ "Verwerken..", "QR code", "RX pin", + "Opnieuw opstarten", "Ontvangen", "Ontvangstadres", "Regio:", diff --git a/src/krux/translations/pt.py b/src/krux/translations/pt.py index 07601592..fa3b0a8a 100644 --- a/src/krux/translations/pt.py +++ b/src/krux/translations/pt.py @@ -232,6 +232,7 @@ "Processando..", "Código QR", "Pino RX", + "Reiniciar", "Recebimento", "Endereços de Recebimento", "Região:", diff --git a/src/krux/translations/ru.py b/src/krux/translations/ru.py index 4faf4729..41750496 100644 --- a/src/krux/translations/ru.py +++ b/src/krux/translations/ru.py @@ -232,6 +232,7 @@ "Обработка..", "QR Код", "RX Пин", + "Перезагрузить", "Получить", "Адрес Получения", "Регион:", diff --git a/src/krux/translations/tr.py b/src/krux/translations/tr.py index 95b893e1..81efaf4a 100644 --- a/src/krux/translations/tr.py +++ b/src/krux/translations/tr.py @@ -232,6 +232,7 @@ "İşleniyor..", "QR Kodu", "RX Pini", + "Yeniden Başlat", "Al", "Adresleri Al", "Bölge:", diff --git a/src/krux/translations/vi.py b/src/krux/translations/vi.py index 3e90eab8..14accdb9 100644 --- a/src/krux/translations/vi.py +++ b/src/krux/translations/vi.py @@ -232,6 +232,7 @@ "Đang xử lý..", "Mã QR", "RX Pin", + "Khởi động lại", "Nhận được", "Các địa chỉ nhận", "Vùng:", diff --git a/src/krux/translations/zh.py b/src/krux/translations/zh.py index 0c28aa33..726e32cf 100644 --- a/src/krux/translations/zh.py +++ b/src/krux/translations/zh.py @@ -232,6 +232,7 @@ "正在处理..", "二维码", "RX 引脚", + "重启", "接收", "接收地址", "区域:",