From 2f259b5187b57f7526ffcfead2dff4324ae4bd21 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 10 Jul 2012 22:15:44 +0200 Subject: Last string fixed. Promised :) (anyway, it was a translator suggestion to remove p tags from i18n...) --- src/webpage.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/webpage.cpp b/src/webpage.cpp index 49345ad0..59262862 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -610,12 +610,14 @@ QString WebPage::errorPage(QNetworkReply *reply) msg += QL1S(""); msg += QL1S("
"); - msg += i18n("

"); + msg += QL1S("

"); + msg += i18n("We tried to load url: %1.
", urlString); msg += i18n("Check your address for errors like ww.kde.org instead of www.kde.org.
"); msg += i18n("If you spelled right, just try to reload it.
", urlString); msg += i18n("Otherwise, just be careful the next time around."); - msg += i18n("

"); + + msg += QL1S("

"); QString laughIconPath = QString("file://") + KIconLoader::global()->iconPath("face-laugh" , -KIconLoader::SizeHuge, false); msg += QL1S("
"); @@ -631,13 +633,15 @@ QString WebPage::errorPage(QNetworkReply *reply) msg += QL1S(""); msg += QL1S(""); - msg += i18n("

"); + msg += QL1S("

"); + msg += i18n("Maybe you are having problems with your network.
"); msg += i18n("Try checking your network connections", QL1S("about:settings/network")); msg += i18n(", your proxy settings ", QL1S("about:settings/proxy")); msg += i18n("and your firewall.
", QL1S("about:settings/firewall")); msg += i18n("Then try again.
"); - msg += i18n("

"); + + msg += QL1S("

"); msg += QL1S("
"); @@ -647,7 +651,7 @@ QString WebPage::errorPage(QNetworkReply *reply) msg += QL1S(""); msg += QL1S("
"); - msg += i18n("

"); + msg += QL1S("

"); // Default SearchEngine KService::Ptr defaultEngine = SearchEngine::defaultEngine(); @@ -667,14 +671,14 @@ QString WebPage::errorPage(QNetworkReply *reply) msg += i18n("At least, you can consult a cached snapshot of the site:
"); msg += i18n("Try checking the Wayback Machine", QL1S("http://wayback.archive.org/web/*/") + urlString); msg += i18n(" or the Google Cache.", QL1S("http://google.com/search?q=cache:") + urlString); - msg += i18n("

"); + + msg += QL1S("

"); QString winkIconPath = QString("file://") + KIconLoader::global()->iconPath("face-wink" , -KIconLoader::SizeHuge, false); msg += QL1S("
"); msg += QL1S(""); msg += QL1S("
"); - // done. Replace variables and show it QString html = QL1S(file.readAll()); -- cgit v1.2.1