Fix QNetworkReply::errorString returning an untranslated string
authorGiuseppe D'Angelo <dangelog@gmail.com>
Mon, 12 Sep 2011 16:43:21 +0000 (18:43 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 12 Sep 2011 18:59:47 +0000 (20:59 +0200)
commit5b414f73d60f94c0119df844c6c850af6b882662
tree7b39d9b342e91c3343f33f57b61975222859b9d6
parent0192bf919fe03ac8e85190fa1c09720339eb9dd2
Fix QNetworkReply::errorString returning an untranslated string

The QHttpNetworkConnectionPrivate::errorDetail is supposed to return a
translated string, which is then set as the QNetworkReply error.
The current code incorrectly uses QT_TRANSLATE_NOOP,
which mark the strings for translation, but does not translate them.
The result is that even with a translator loaded those strings are
written in English.

Fixes QTBUG-18382.

Merge-request: 2671
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
(cherry picked from commit 434686a926a2a6e71f3cdea2508898b7800f7c81)

Change-Id: I8673cef7671d41106f50b75e78394916f3b720c9
Reviewed-on: http://codereview.qt-project.org/4691
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
src/network/access/qhttpnetworkconnection.cpp