From a0af1797dedb4352ab36a2493c9aa91d221a60e4 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Sat, 8 Feb 2025 22:21:23 -0800 Subject: [PATCH] utils aa-notify: add missing translation to interface Add gettext translation call to a couple buttons text that were missing the it. Signed-off-by: John Johansen --- utils/apparmor/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/apparmor/gui.py b/utils/apparmor/gui.py index be704cd40..3fbfc006a 100644 --- a/utils/apparmor/gui.py +++ b/utils/apparmor/gui.py @@ -181,7 +181,7 @@ class ShowMoreGUIAggregated(GUI): self.btn_right = ttk.Button(self.button_frame, text=self.states[self.state]['btn_right'], width=1, command=lambda: self.change_view('btn_right')) self.btn_right.grid(row=0, column=1, padx=5, pady=5, sticky="ew") - self.btn_allow_selected = ttk.Button(self.button_frame, text="Allow Selected", width=1, command=lambda: self.set_result('allow_selected')) + self.btn_allow_selected = ttk.Button(self.button_frame, text=_("Allow Selected"), width=1, command=lambda: self.set_result('allow_selected')) self.btn_allow_selected.grid(row=0, column=2, padx=5, pady=5, sticky="ew") for i in range(3): @@ -308,7 +308,7 @@ class ErrorGUI(GUI): self.label.configure(background=self.bg_color) self.label.pack() - self.button = ttk.Button(self.button_frame, text='OK', command=self.destroy) + self.button = ttk.Button(self.button_frame, text=_('OK'), command=self.destroy) self.button.pack() def destroy(self):