aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-10-24 19:16:11 +0800
committerChristian Persch <chpe@src.gnome.org>2003-10-24 19:16:11 +0800
commite9b286e6e0b230debf3647c8ec5d4df9d673feb8 (patch)
tree931df62df3c28f53e773b0913a7ac60f575d86e8
parent2a93fb20b6618d44c05589bb636fe77b7b04e075 (diff)
downloadgsoc2013-epiphany-e9b286e6e0b230debf3647c8ec5d4df9d673feb8.tar
gsoc2013-epiphany-e9b286e6e0b230debf3647c8ec5d4df9d673feb8.tar.gz
gsoc2013-epiphany-e9b286e6e0b230debf3647c8ec5d4df9d673feb8.tar.bz2
gsoc2013-epiphany-e9b286e6e0b230debf3647c8ec5d4df9d673feb8.tar.lz
gsoc2013-epiphany-e9b286e6e0b230debf3647c8ec5d4df9d673feb8.tar.xz
gsoc2013-epiphany-e9b286e6e0b230debf3647c8ec5d4df9d673feb8.tar.zst
gsoc2013-epiphany-e9b286e6e0b230debf3647c8ec5d4df9d673feb8.zip
Use translatable title for untitled pages.
2003-10-25 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyHeaderSniffer.cpp: Use translatable title for untitled pages.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EphyHeaderSniffer.cpp10
2 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 54ebdc209..b4bedf967 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-10-25 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/EphyHeaderSniffer.cpp:
+
+ Use translatable title for untitled pages.
+
2003-10-24 Marco Pesenti Gritti <marco@gnome.org>
* embed/mozilla/MozDownload.cpp:
diff --git a/embed/mozilla/EphyHeaderSniffer.cpp b/embed/mozilla/EphyHeaderSniffer.cpp
index 8fbf2220b..483f0fd01 100644
--- a/embed/mozilla/EphyHeaderSniffer.cpp
+++ b/embed/mozilla/EphyHeaderSniffer.cpp
@@ -36,6 +36,10 @@
*
* ***** END LICENSE BLOCK ***** */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "MozillaPrivate.h"
#include "MozDownload.h"
@@ -53,6 +57,8 @@
#include "nsIDOMHTMLDocument.h"
#include "nsIDownload.h"
+#include <bonobo/bonobo-i18n.h>
+
EphyHeaderSniffer::EphyHeaderSniffer (nsIWebBrowserPersist* aPersist, MozillaEmbedPersist *aEmbedPersist,
nsIFile* aFile, nsIURI* aURL, nsIDOMDocument* aDocument, nsIInputStream* aPostData,
PRBool aBypassCache)
@@ -209,10 +215,10 @@ nsresult EphyHeaderSniffer::PerformSave (nsIURI* inOriginalURI)
defaultFileName = NS_ConvertUTF8toUCS2(hostName);
}
- /* 5 One last case to handle about:blank and other fruity untitled pages. */
+ /* 5 One last case to handle about:blank and other untitled pages. */
if (defaultFileName.IsEmpty())
{
- defaultFileName.AssignWithConversion("untitled");
+ defaultFileName.AssignWithConversion(_("Untitled"));
}
/* Validate the file name to ensure legality. */