Fix unlocalized save changes prompt

This commit is contained in:
Isaiah Odhner 2023-04-24 21:13:26 -04:00
parent 3b08e045e7
commit cfc82a55c1

View File

@ -1505,7 +1505,7 @@ class PaintApp(App[None]):
def prompt_save_changes(self, filename: str, callback: Callable[[], None]) -> None:
filename = os.path.basename(filename)
message = "Save changes to " + filename + "?"
message = _("Save changes to %1?", filename)
def handle_button(button: Button) -> None:
if not button.has_class("yes") and not button.has_class("no"):
return