1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-25 01:18:54 +00:00

fix(core/ui): use correct labels at a few places

[no changelog]
This commit is contained in:
obrusvit 2024-10-02 13:27:20 +02:00 committed by Vít Obrusník
parent 3475354a1a
commit faa209b5d9
2 changed files with 4 additions and 6 deletions

View File

@ -111,9 +111,7 @@ fn new_confirm_reset_obj(_args: &[Obj], kwargs: &Map) -> Result<Obj, error::Erro
( (
TR::reset__title_create_wallet.into(), TR::reset__title_create_wallet.into(),
ButtonRequestCode::ResetDevice.with_name("setup_device"), ButtonRequestCode::ResetDevice.with_name("setup_device"),
// FIXME: TR::reset__cancel_create_wallet should be used but Button text on TR::reset__cancel_create_wallet.into(),
// multiple lines not supported yet
TR::buttons__cancel.into(),
) )
}; };

View File

@ -71,8 +71,8 @@ impl WarningHiPrio {
let description: TString = kwargs.get(Qstr::MP_QSTR_description)?.try_into()?; let description: TString = kwargs.get(Qstr::MP_QSTR_description)?.try_into()?;
let value: TString = kwargs.get_or(Qstr::MP_QSTR_value, "".into())?; let value: TString = kwargs.get_or(Qstr::MP_QSTR_value, "".into())?;
let cancel: TString = TR::words__cancel_and_exit.into(); let cancel: TString = TR::words__cancel_and_exit.into();
let confirm: TString = "Continue anyway".into(); // FIXME: en.json has punctuation let confirm: TString = TR::buttons__continue.into();
let done_title: TString = "Operation cancelled".into(); let done_title: TString = TR::words__operation_cancelled.into();
// Message // Message
let paragraphs = [ let paragraphs = [
@ -94,7 +94,7 @@ impl WarningHiPrio {
let content_menu = Frame::left_aligned( let content_menu = Frame::left_aligned(
"".into(), "".into(),
VerticalMenu::empty() VerticalMenu::empty()
.item(theme::ICON_CANCEL, "Cancel".into()) // TODO: button__cancel after it's lowercase .item(theme::ICON_CANCEL, TR::buttons__cancel.into())
.danger(theme::ICON_CHEVRON_RIGHT, confirm), .danger(theme::ICON_CHEVRON_RIGHT, confirm),
) )
.with_cancel_button() .with_cancel_button()