translate three small-dialog "close" buttons

This commit is contained in:
Paul Franklin 2017-08-06 18:32:47 -07:00
parent da849a1408
commit f18aac14fd

View File

@ -206,8 +206,8 @@ class ErrorDialog(Gtk.MessageDialog):
Gtk.MessageDialog.__init__(self, transient_for=parent, Gtk.MessageDialog.__init__(self, transient_for=parent,
modal=True, modal=True,
message_type=Gtk.MessageType.ERROR, message_type=Gtk.MessageType.ERROR)
buttons=Gtk.ButtonsType.CLOSE) self.add_button(_('_Close'), Gtk.ResponseType.CLOSE)
self.set_markup('<span weight="bold" size="larger">%s</span>' % str(msg1)) self.set_markup('<span weight="bold" size="larger">%s</span>' % str(msg1))
self.format_secondary_text(msg2) self.format_secondary_text(msg2)
self.set_icon(ICON) self.set_icon(ICON)
@ -252,8 +252,8 @@ class WarningDialog(Gtk.MessageDialog):
Gtk.MessageDialog.__init__(self, transient_for=parent, Gtk.MessageDialog.__init__(self, transient_for=parent,
modal=True, modal=True,
message_type=Gtk.MessageType.WARNING, message_type=Gtk.MessageType.WARNING)
buttons=Gtk.ButtonsType.CLOSE) self.add_button(_('_Close'), Gtk.ResponseType.CLOSE)
self.set_markup('<span weight="bold" size="larger">%s</span>' % msg1) self.set_markup('<span weight="bold" size="larger">%s</span>' % msg1)
self.format_secondary_markup(msg2) self.format_secondary_markup(msg2)
# FIXME: Hyper-links in the secondary text display as underlined text, # FIXME: Hyper-links in the secondary text display as underlined text,
@ -278,8 +278,8 @@ class OkDialog(Gtk.MessageDialog):
Gtk.MessageDialog.__init__(self, transient_for=parent, Gtk.MessageDialog.__init__(self, transient_for=parent,
modal=True, modal=True,
message_type=Gtk.MessageType.INFO, message_type=Gtk.MessageType.INFO)
buttons=Gtk.ButtonsType.CLOSE) self.add_button(_('_Close'), Gtk.ResponseType.CLOSE)
self.set_markup('<span weight="bold" size="larger">%s</span>' % msg1) self.set_markup('<span weight="bold" size="larger">%s</span>' % msg1)
self.format_secondary_text(msg2) self.format_secondary_text(msg2)
self.set_icon(ICON) self.set_icon(ICON)