PICARD-947: fix typo in parenthesis causing translation to fail

The string was correctly parsed by gettext, but not translated at runtime.
This commit is contained in:
Laurent Monin
2017-02-09 00:07:17 +01:00
parent 40114def9a
commit 0b6207a40d

View File

@@ -281,11 +281,11 @@ class SearchDialog(PicardDialog):
def network_error(self, reply, error):
error_msg = _("<strong>Following error occurred while fetching results:<br><br></strong>"
"Network request error for %s:<br>%s (QT code %d, HTTP code %s)<br>" % (
"Network request error for %s:<br>%s (QT code %d, HTTP code %s)<br>") % (
reply.request().url().toString(QtCore.QUrl.RemoveUserInfo),
reply.errorString(),
error,
repr(reply.attribute(QtNetwork.QNetworkRequest.HttpStatusCodeAttribute)))
repr(reply.attribute(QtNetwork.QNetworkRequest.HttpStatusCodeAttribute))
)
self.show_error(error_msg, show_retry_button=True)