Fix description labels in spamfilter and userscript plugins

This commit is contained in:
Patrick Ulbrich
2016-07-09 13:19:42 +02:00
parent 6657db9994
commit 8148011dcb
2 changed files with 5 additions and 3 deletions

View File

@@ -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)

View File

@@ -84,11 +84,12 @@ class UserscriptPlugin(Plugin):
#box.set_size_request(100, -1)
markup_str = "<i>&lt;%s&gt; &lt;%s&gt; &lt;%s&gt;</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);