diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/EphyHeaderSniffer.cpp | 10 |
2 files changed, 14 insertions, 2 deletions
@@ -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. */ |