Splitted mail adress away expection error text, now inserting it with %s

This commit is contained in:
suutari-olli 2016-04-13 19:49:30 +03:00
parent feb549a8e7
commit cc9f89bfdb
1 changed files with 5 additions and 4 deletions

View File

@ -90,6 +90,8 @@ class Ui_ExceptionDialog(object):
"""
Translate the widgets on the fly.
"""
# Note that bugs_mail is not clicable, but it adds the blue color and underlining and makes the test copyable.
bugs_mail = '<a href = "mailto:bugs@openlp.org" > bugs@openlp.org</a>'
exception_dialog.setWindowTitle(translate('OpenLP.ExceptionDialog', 'Error Occurred'))
self.description_explanation.setText(
translate('OpenLP.ExceptionDialog', '<strong>Please describe what you were trying to do.</strong> '
@ -97,13 +99,12 @@ class Ui_ExceptionDialog(object):
self.message_label.setText(
translate('OpenLP.ExceptionDialog', '<strong>Oops, OpenLP hit a problem '
'and couldn\'t recover!</strong> <br><br>'
'<strong>You can help </strong> OpenLP developers to fix this by<br>'
'sending them a <strong>bug report</strong> '
'to <a href="mailto:bugs@openlp.org"> bugs@openlp.org </a> <br> <br>'
'<strong>You can help </strong> OpenLP developers to <strong>fix this</strong> by<br>'
'sending them a <strong>bug report</strong> to %s<br><br>'
'<strong>No email app? </strong> You can <strong>save</strong> this '
'information to a <strong>file</strong> and<br>'
'send it from your <strong>mail on browser</strong> via an <strong>attachement.</strong><br><br>'
'<strong>Thank you<strong> for being part of making OpenLP better!'))
'<strong>Thank you<strong> for being part of making OpenLP better!<br>') % bugs_mail)
self.send_report_button.setText(translate('OpenLP.ExceptionDialog', 'Send E-Mail'))
self.save_report_button.setText(translate('OpenLP.ExceptionDialog', 'Save to File'))
self.attach_tile_button.setText(translate('OpenLP.ExceptionDialog', 'Attach File'))