Fix unlocalized buttons

This commit is contained in:
Isaiah Odhner 2023-04-24 20:28:57 -04:00
parent 86fe09cc6e
commit 1c7f7015cb
3 changed files with 5 additions and 3 deletions

View File

@ -66,4 +66,4 @@ class EditColorsDialogWindow(DialogWindow):
button.focus()
container.mount(button)
self.content.mount(container)
self.content.mount(Button("Cancel", classes="cancel"))
self.content.mount(Button(_("Cancel"), classes="cancel"))

View File

@ -7,3 +7,5 @@ No
Filename
%1 already exists.
Do you want to replace it?
Reload
Choose Character

View File

@ -291,8 +291,8 @@ class CharacterSelectorDialogWindow(DialogWindow):
for i in range(0, len(self.char_list), column_count):
data_table.add_row(*self.char_list[i:i+column_count])
self.content.mount(data_table)
self.content.mount(Button("OK", classes="ok submit"))
self.content.mount(Button("Cancel", classes="cancel"))
self.content.mount(Button(_("OK"), classes="ok submit"))
self.content.mount(Button(_("Cancel"), classes="cancel"))
# ASCII line art version:
# get_warning_icon = lambda: Static("""[#ffff00]