2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 18:17:09 +00:00

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 <john.johansen@canonical.com>
This commit is contained in:
John Johansen 2025-02-08 22:21:23 -08:00
parent 9b4d747f5e
commit a0af1797de

View File

@ -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 = 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_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") self.btn_allow_selected.grid(row=0, column=2, padx=5, pady=5, sticky="ew")
for i in range(3): for i in range(3):
@ -308,7 +308,7 @@ class ErrorGUI(GUI):
self.label.configure(background=self.bg_color) self.label.configure(background=self.bg_color)
self.label.pack() 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() self.button.pack()
def destroy(self): def destroy(self):