Skip to content

Commit

Permalink
Rename "Shutdown" to "Reboot" on devices that don't have PMU
Browse files Browse the repository at this point in the history
  • Loading branch information
odudex committed Nov 4, 2024
1 parent 86a4cca commit c8fc697
Show file tree
Hide file tree
Showing 26 changed files with 34 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"Processing..": "Wird bearbeitet..",
"QR Code": "QR-Code",
"RX Pin": "RX Pin",
"Reboot": "Neustart",
"Receive": "Empfangen",
"Receive Addresses": "Empfangsadresse",
"Region:": "Region:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/es-MX.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 :",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"Processing..": "処理中..",
"QR Code": "QRコード",
"RX Pin": "RXピン",
"Reboot": "再起動",
"Receive": "受け取る",
"Receive Addresses": "受取アドレス",
"Region:": "地域:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/ko-KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"Processing..": "처리...",
"QR Code": "QR 코드",
"RX Pin": "RX 핀",
"Reboot": "다시 반복",
"Receive": "받기",
"Receive Addresses": "주소",
"Region:": "지역:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/nl-NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"Processing..": "Verwerken..",
"QR Code": "QR code",
"RX Pin": "RX pin",
"Reboot": "Opnieuw opstarten",
"Receive": "Ontvangen",
"Receive Addresses": "Ontvangstadres",
"Region:": "Regio:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"Processing..": "Обработка..",
"QR Code": "QR Код",
"RX Pin": "RX Пин",
"Reboot": "Перезагрузить",
"Receive": "Получить",
"Receive Addresses": "Адрес Получения",
"Region:": "Регион:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/tr-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/vi-VN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@
"Processing..": "正在处理..",
"QR Code": "二维码",
"RX Pin": "RX 引脚",
"Reboot": "重启",
"Receive": "接收",
"Receive Addresses": "接收地址",
"Region:": "区域:",
Expand Down
5 changes: 4 additions & 1 deletion src/krux/pages/home_pages/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
),
Expand Down
5 changes: 4 additions & 1 deletion src/krux/pages/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
),
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
3108881025,
1848310591,
710709610,
3338633658,
2697857197,
1746677167,
1658501467,
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"Wird bearbeitet..",
"QR-Code",
"RX Pin",
"Neustart",
"Empfangen",
"Empfangsadresse",
"Region:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"Procesando..",
"Código QR",
"RX Pin",
"Reiniciar",
"Recepción",
"Direcciones de Recepción",
"Región:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"Traitement..",
"Code QR",
"RX Fiche",
"Redémarrer",
"Recevoir",
"Adresses de Réception",
"Région\u2009:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/ja.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"処理中..",
"QRコード",
"RXピン",
"再起動",
"受け取る",
"受取アドレス",
"地域:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/ko.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"처리...",
"QR 코드",
"RX 핀",
"다시 반복",
"받기",
"주소",
"지역:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/nl.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"Verwerken..",
"QR code",
"RX pin",
"Opnieuw opstarten",
"Ontvangen",
"Ontvangstadres",
"Regio:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/pt.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"Processando..",
"Código QR",
"Pino RX",
"Reiniciar",
"Recebimento",
"Endereços de Recebimento",
"Região:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/ru.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"Обработка..",
"QR Код",
"RX Пин",
"Перезагрузить",
"Получить",
"Адрес Получения",
"Регион:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/tr.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"İşleniyor..",
"QR Kodu",
"RX Pini",
"Yeniden Başlat",
"Al",
"Adresleri Al",
"Bölge:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/vi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:",
Expand Down
1 change: 1 addition & 0 deletions src/krux/translations/zh.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
"正在处理..",
"二维码",
"RX 引脚",
"重启",
"接收",
"接收地址",
"区域:",
Expand Down

0 comments on commit c8fc697

Please sign in to comment.