Perhaps you could use the data protocol to avoid the temporary file<div><br></div><div><a href="http://www.ietf.org/rfc/rfc2397.txt" target="_blank">http://www.ietf.org/rfc/</a><a href="http://www.ietf.org/rfc/rfc2397.txt" target="_blank">rfc2397.txt</a></div>
<div><br></div><div>Or a custom protocol handler, not sure if that's possible with webkit/libsoup.<span></span><br dir="ltr"><br>On Tuesday, 18 September 2012, Manuel Kaufmann wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Sep 18, 2012 at 1:55 PM, Manuel Kaufmann <<a>humitos@gmail.com</a>> wrote:<br>
> This patch contains a HTML template (error_page.tmpl) that is used to<br>
> generate the error page with the correct language.<br>
<br>
Please, comments and suggestions are welcomed here. I didn't find an<br>
existent way (inside Sugar) to translate html content, so I decide to<br>
make it by myself.<br>
<br>
I created a file called "error_page.tmpl" that contains the html<br>
structure of the page with some placeholders to put the translated<br>
strings (those placeholders are substituted with the % operator) and a<br>
new html file is create: "error_page.html" with the correct strings<br>
and url to try again. Then, this file is used to tell WekKit to load<br>
that file as an uri:<br>
<br>
self.load_uri('file://' + DEFAULT_ERROR_PAGE)<br>
<br>
That file is generated every time that the web page can't be reached<br>
for any reason.<br>
<br>
See you,<br>
<br>
--<br>
Kaufmann Manuel<br>
Blog: <a href="http://humitos.wordpress.com/" target="_blank">http://humitos.wordpress.com/</a><br>
Porfolio: <a href="http://fotos.mkaufmann.com.ar/" target="_blank">http://fotos.mkaufmann.com.ar/</a><br>
PyAr: <a href="http://www.python.com.ar/" target="_blank">http://www.python.com.ar/</a><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a>Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</blockquote></div><span></span>
<br><br>-- <br>Daniel Narvaez<br><br>