mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 00:27:17 +02:00
Fix description labels in spamfilter and userscript plugins
This commit is contained in:
@@ -90,9 +90,10 @@ class SpamfilterPlugin(Plugin):
|
||||
box.set_orientation(Gtk.Orientation.VERTICAL)
|
||||
#box.set_size_request(100, -1)
|
||||
|
||||
desc = _('Mailnag will ignore mails containing at least one of \nthe following words in subject or sender.')
|
||||
desc = _('Mailnag will ignore mails containing at least one of the following words in sender or subject.')
|
||||
|
||||
label = Gtk.Label(desc)
|
||||
label.set_xalign(0.0)
|
||||
label.set_line_wrap(True)
|
||||
#label.set_size_request(100, -1);
|
||||
box.pack_start(label, False, False, 0)
|
||||
|
||||
@@ -84,11 +84,12 @@ class UserscriptPlugin(Plugin):
|
||||
#box.set_size_request(100, -1)
|
||||
|
||||
markup_str = "<i><%s> <%s> <%s></i>" % (_('account'), _('sender'), _('subject'))
|
||||
desc = _( "The following script will be executed whenever new mails arrive.\n"
|
||||
"Mailnag passes the total count of new mails to this script,\n"
|
||||
desc = _( "The following script will be executed whenever new mails arrive. "
|
||||
"Mailnag passes the total count of new mails to this script, "
|
||||
"followed by %s sequences.") % markup_str
|
||||
|
||||
label = Gtk.Label()
|
||||
label.set_xalign(0.0)
|
||||
label.set_line_wrap(True)
|
||||
label.set_markup(desc)
|
||||
#label.set_size_request(100, -1);
|
||||
|
||||
Reference in New Issue
Block a user