Skip to content

Commit

Permalink
fix(core/ui): use correct labels at a few places
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
obrusvit committed Oct 2, 2024
1 parent ceecaa3 commit 443373c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions core/embed/rust/src/ui/model_mercury/flow/confirm_reset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ fn new_confirm_reset_obj(_args: &[Obj], kwargs: &Map) -> Result<Obj, error::Erro
(
TR::reset__title_create_wallet.into(),
ButtonRequestCode::ResetDevice.with_name("setup_device"),
// FIXME: TR::reset__cancel_create_wallet should be used but Button text on
// multiple lines not supported yet
TR::buttons__cancel.into(),
TR::reset__cancel_create_wallet.into(),
)
};

Expand Down
6 changes: 3 additions & 3 deletions core/embed/rust/src/ui/model_mercury/flow/warning_hi_prio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ impl WarningHiPrio {
let description: TString = kwargs.get(Qstr::MP_QSTR_description)?.try_into()?;
let value: TString = kwargs.get_or(Qstr::MP_QSTR_value, "".into())?;
let cancel: TString = TR::words__cancel_and_exit.into();
let confirm: TString = "Continue anyway".into(); // FIXME: en.json has punctuation
let done_title: TString = "Operation cancelled".into();
let confirm: TString = TR::buttons__continue.into();
let done_title: TString = TR::words__operation_cancelled.into();

// Message
let paragraphs = [
Expand All @@ -94,7 +94,7 @@ impl WarningHiPrio {
let content_menu = Frame::left_aligned(
"".into(),
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),
)
.with_cancel_button()
Expand Down

0 comments on commit 443373c

Please sign in to comment.