Commits

Virgil Dupras committed af1479f

Added a restart suggestion in the error window.

Comments (0)

Files changed (11)

error_report_dialog.py

 
 from PyQt4.QtCore import Qt, QUrl, QCoreApplication, QSize
 from PyQt4.QtGui import (QDialog, QDesktopServices, QVBoxLayout, QHBoxLayout, QLabel,
-    QPlainTextEdit, QSpacerItem, QSizePolicy, QPushButton, QApplication)
+    QPlainTextEdit, QPushButton, QApplication)
 
 from hscommon.trans import trget
+from .util import horizontalSpacer
 
 tr = trget('qtlib')
 
         self.errorTextEdit = QPlainTextEdit(self)
         self.errorTextEdit.setReadOnly(True)
         self.verticalLayout.addWidget(self.errorTextEdit)
+        msg = tr("Although the application should continue to run after this error, it may be in an "
+            "instable state, so it is recommended that you restart the application.")
+        self.label2 = QLabel(msg)
+        self.label2.setWordWrap(True)
+        self.verticalLayout.addWidget(self.label2)
         self.horizontalLayout = QHBoxLayout()
-        spacerItem = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
-        self.horizontalLayout.addItem(spacerItem)
+        self.horizontalLayout.addItem(horizontalSpacer())
         self.dontSendButton = QPushButton(self)
         self.dontSendButton.setText(tr("Don\'t Send"))
         self.dontSendButton.setMinimumSize(QSize(110, 0))

locale/cs/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr ""
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr ""
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""

locale/de/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr ""
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr ""
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""

locale/fr/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr ""
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr "Néerlandais"
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""

locale/hy/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr "ՉԳՐԱՆՑՎԱԾ"
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr "Սխալի զեկույցը"
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 msgstr ""
 "Ինչ-որ բան սխալ էր: Ուղարկե՞լ սխալի մասին զեկույց Hardcoded Software-ին:"
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr "Չուղարկել"
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr "Ուղարկել"
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr ""
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""

locale/it/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr ""
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr ""
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""

locale/nl/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr ""
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr ""
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""
 msgid "UNREGISTERED"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid "Something went wrong. Would you like to send the error report to Hardcoded Software?"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:48
+msgid "Although the application should continue to run after this error, it may be in an instable state, so it is recommended that you restart the application."
+msgstr ""
+
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr ""
 

locale/ru/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr "НЕЗАРЕГИСТРИРОВАННАЯ"
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr "Сообщение об ошибках"
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 msgstr ""
 "Что-то пошло не так. Хотите отправить отчет об ошибке в Hardcoded Software?"
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr "Не отправлять"
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr "Отправить"
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr ""
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""

locale/uk/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr "НЕЗАРЕЄСТРОВАНИЙ"
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr "повідомлення про помилки"
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 "Щось пішло не так. Хочете відправити звіт про помилку в Hardcoded програмне "
 "забезпечення?"
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr "Не відправляти"
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr "Надіслати"
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr ""
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""

locale/zh_CN/LC_MESSAGES/qtlib.po

 msgid "UNREGISTERED"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:37
+#: qtlib/error_report_dialog.py:38
 msgid "Error Report"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:41
+#: qtlib/error_report_dialog.py:42
 msgid ""
 "Something went wrong. Would you like to send the error report to Hardcoded "
 "Software?"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:51
+#: qtlib/error_report_dialog.py:56
 msgid "Don't Send"
 msgstr ""
 
-#: qtlib/error_report_dialog.py:55
+#: qtlib/error_report_dialog.py:60
 msgid "Send"
 msgstr ""
 
 #: qtlib/preferences.py:26
 msgid "Dutch"
 msgstr ""
+
+#: qtlib/error_report_dialog.py:48
+msgid ""
+"Although the application should continue to run after this error, it may be "
+"in an instable state, so it is recommended that you restart the application."
+msgstr ""