From d818dc1a84c382742a1f694503b8f856446313a6 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Jul 2014 10:26:43 -0700 Subject: Remove HTML from translated strings In some strings that won't be possible as the translation needs to be aware of line breaks, etc. But for these strings it seems like the right thing to do. Signed-off-by: Dirk Hohndel --- qt-ui/updatemanager.cpp | 6 +++--- qt-ui/usersurvey.cpp | 6 +++--- translations/subsurface_source.ts | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/qt-ui/updatemanager.cpp b/qt-ui/updatemanager.cpp index 75f454795..51292fcbd 100644 --- a/qt-ui/updatemanager.cpp +++ b/qt-ui/updatemanager.cpp @@ -33,13 +33,13 @@ void UpdateManager::requestReceived(QNetworkReply *reply) { QMessageBox msgbox; QString msgTitle = tr("Check for updates."); - QString msgText = tr("

Subsurface was unable to check for updates.

"); + QString msgText = "

" + tr("Subsurface was unable to check for updates.") + "

"; if (reply->error() != QNetworkReply::NoError) { //Network Error - msgText = msgText + tr("
The following error occurred:
") + reply->errorString() - + tr("

Please check your internet connection."); + msgText = msgText + "
" + tr("The following error occurred:") + "
" + reply->errorString() + + "

" + tr("Please check your internet connection.") + ""; } else { //No network error QString response(reply->readAll()); diff --git a/qt-ui/usersurvey.cpp b/qt-ui/usersurvey.cpp index 0a97fdb78..e1153c42f 100644 --- a/qt-ui/usersurvey.cpp +++ b/qt-ui/usersurvey.cpp @@ -93,13 +93,13 @@ void UserSurvey::requestReceived(QNetworkReply *reply) { QMessageBox msgbox; QString msgTitle = tr("Submit User Survey."); - QString msgText = tr("

Subsurface was unable to submit the user survey.

"); + QString msgText = "

" + tr("Subsurface was unable to submit the user survey.") + "

"; if (reply->error() != QNetworkReply::NoError) { //Network Error - msgText = msgText + tr("
The following error occurred:
") + reply->errorString() - + tr("

Please check your internet connection."); + msgText = msgText + "
" + tr("The following error occurred:") + "
" + reply->errorString() + + "

" + tr("Please check your internet connection.") + ""; } else { //No network error QString response(reply->readAll()); diff --git a/translations/subsurface_source.ts b/translations/subsurface_source.ts index 6bd96ab7d..623a1c659 100644 --- a/translations/subsurface_source.ts +++ b/translations/subsurface_source.ts @@ -2856,17 +2856,17 @@ p, li { white-space: pre-wrap; } - <h3>Subsurface was unable to check for updates.</h3> + Subsurface was unable to check for updates. - <br/><b>The following error occurred:</b><br/> + The following error occurred: - <br/><br/><b>Please check your internet connection.</b> + Please check your internet connection. @@ -3017,17 +3017,17 @@ Language: %1 - <h3>Subsurface was unable to submit the user survey.</h3> + Subsurface was unable to submit the user survey. - <br/><b>The following error occurred:</b><br/> + The following error occurred: - <br/><br/><b>Please check your internet connection.</b> + Please check your internet connection. -- cgit v1.2.3-70-g09d2