From 8d7cecf11762702ce2201cb7663e0a4c280ba0b8 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Thu, 26 Jul 2007 07:55:50 +0000 Subject: Improve the restricted ports message, patch by Cosimo Cecchi. Fixes bug 2007-07-26 Diego Escalante Urrelo * embed/mozilla/EphyAboutModule.cpp: Improve the restricted ports message, patch by Cosimo Cecchi. Fixes bug #459552. svn path=/trunk/; revision=7199 --- ChangeLog | 7 +++++++ embed/mozilla/EphyAboutModule.cpp | 16 +++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2c1f18237..2e320f49c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-07-26 Diego Escalante Urrelo + + * embed/mozilla/EphyAboutModule.cpp: + + Improve the restricted ports message, patch by Cosimo Cecchi. + Fixes bug #459552. + 2007-07-25 Diego Escalante Urrelo * embed/downloader-view.c: diff --git a/embed/mozilla/EphyAboutModule.cpp b/embed/mozilla/EphyAboutModule.cpp index 6fb6a5849..83bae0015 100644 --- a/embed/mozilla/EphyAboutModule.cpp +++ b/embed/mozilla/EphyAboutModule.cpp @@ -419,17 +419,15 @@ EphyAboutModule::GetErrorMessage(nsIURI *aURI, /* Translators: %s is the hostname, like "www.example.com" */ *aTitle = g_markup_printf_escaped - (_("“%s” Denied Access to Port “%d”"), - host.get(), port > 0 ? port : 80); + (_("Access Denied to Port “%d” of “%s”"), + port > 0 ? port : 80, host.get()); /* Translators: %s is the hostname, like "www.example.com" */ *aPrimary = g_markup_printf_escaped - (_("“%s” denied access to port “%d”."), - host.get(), port > 0 ? port : 80); - *aSecondary = g_strdup (_("The server dropped the connection " - "before any data could be read.")); - *aTertiary = _("The server may be busy or you may have a " - "network connection problem. Try again later."); - *aLinkIntro = _("There may be an old version of the page you wanted:"); + (_("Access denied to port “%d” of “%s”."), + port > 0 ? port : 80, host.get()); + *aSecondary = g_strdup (_("This address uses a network port which is " + "normally used for purposes other than Web browsing.")); + *aTertiary = _("Epiphany has cancelled the request for your protection."); } else if (strcmp (aError, "proxyResolveFailure") == 0 || strcmp (aError, "proxyConnectFailure") == 0) -- cgit