Skip to content

Commit

Permalink
fix back btn not translating when lang changed
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeubas committed Aug 1, 2024
1 parent 9e884df commit e979b36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/krux/pages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,15 @@ def __init__(
menu,
offset=None,
disable_statusbar=False,
back_label=t("Back"),
back_label="Back",
back_status=lambda: MENU_EXIT,
):
self.ctx = ctx
self.menu = menu + [("< " + back_label, back_status)] if back_label else menu
self.menu = menu
if back_label:
back_label = t("Back") if back_label == "Back" else back_label
self.menu += [("< " + back_label, back_status)]

self.disable_statusbar = disable_statusbar
if offset is None:
# Default offset for status bar
Expand Down

0 comments on commit e979b36

Please sign in to comment.