This commit is contained in:
Kovid Goyal 2010-11-16 12:40:23 -07:00
parent ef5b44c78d
commit 740cbd6cb2

View File

@ -125,6 +125,7 @@ class SendEmail(QWidget, Ui_Form):
'port': 587, 'port': 587,
'username': '@gmail.com', 'username': '@gmail.com',
'url': 'www.gmail.com', 'url': 'www.gmail.com',
'extra': ''
}, },
'hotmail': { 'hotmail': {
'name': 'Hotmail', 'name': 'Hotmail',
@ -132,6 +133,9 @@ class SendEmail(QWidget, Ui_Form):
'port': 587, 'port': 587,
'username': '', 'username': '',
'url': 'www.hotmail.com', 'url': 'www.hotmail.com',
'extra': _('If you are setting up a new'
' hotmail account, you must log in to it '
' once before you will be able to send mails.'),
} }
}[service] }[service]
d = QDialog(self) d = QDialog(self)
@ -141,7 +145,7 @@ class SendEmail(QWidget, Ui_Form):
bb.accepted.connect(d.accept) bb.accepted.connect(d.accept)
bb.rejected.connect(d.reject) bb.rejected.connect(d.reject)
d.tl = QLabel('<p>'+_('You can sign up for a free {name} email ' d.tl = QLabel('<p>'+_('You can sign up for a free {name} email '
'account at <a href="http://{url}">http://{url}</a>.').format( 'account at <a href="http://{url}">http://{url}</a>. {extra}').format(
**service)) **service))
l.addWidget(d.tl, 0, 0, 3, 0) l.addWidget(d.tl, 0, 0, 3, 0)
d.tl.setWordWrap(True) d.tl.setWordWrap(True)