Skip to content

Commit

Permalink
fix button label update
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon committed Sep 30, 2024
1 parent e9fe333 commit 887d82d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vanilla_first_setup/defaults/welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ def __start_welcome_animation(self):
def change_langs():
while True:
for locale in all_locale:
breakpoint()
translator = translation('vanilla-first-setup', localedir='/usr/share/locale', languages=[locale], fallback=True)
_ = translator.gettext
GLib.idle_add(self.title_label.set_text, _("Welcome!"))
GLib.idle_add(self.btn_next.set_text, _("Next"))
GLib.idle_add(self.btn_advanced.set_text, _("Advanced"))
GLib.idle_add(self.btn_next.set_label, _("Next"))
GLib.idle_add(self.btn_advanced.set_label, _("Advanced"))
time.sleep(1.2)

RunAsync(change_langs, None)
Expand Down

0 comments on commit 887d82d

Please sign in to comment.