diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-10-24 19:16:11 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-10-24 19:16:11 +0800 |
commit | e9b286e6e0b230debf3647c8ec5d4df9d673feb8 (patch) | |
tree | 931df62df3c28f53e773b0913a7ac60f575d86e8 /embed | |
parent | 2a93fb20b6618d44c05589bb636fe77b7b04e075 (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/EphyHeaderSniffer.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
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. */ |