[Sugar-devel] [PATCH Browse] Error page SL #3500
Daniel Narvaez
dwnarvaez at gmail.com
Tue Sep 18 13:21:14 EDT 2012
Perhaps you could use the data protocol to avoid the temporary file
http://www.ietf.org/rfc/
<http://www.ietf.org/rfc/rfc2397.txt>rfc2397.txt<http://www.ietf.org/rfc/rfc2397.txt>
Or a custom protocol handler, not sure if that's possible with
webkit/libsoup.
On Tuesday, 18 September 2012, Manuel Kaufmann wrote:
> On Tue, Sep 18, 2012 at 1:55 PM, Manuel Kaufmann <humitos at gmail.com>
> wrote:
> > This patch contains a HTML template (error_page.tmpl) that is used to
> > generate the error page with the correct language.
>
> Please, comments and suggestions are welcomed here. I didn't find an
> existent way (inside Sugar) to translate html content, so I decide to
> make it by myself.
>
> I created a file called "error_page.tmpl" that contains the html
> structure of the page with some placeholders to put the translated
> strings (those placeholders are substituted with the % operator) and a
> new html file is create: "error_page.html" with the correct strings
> and url to try again. Then, this file is used to tell WekKit to load
> that file as an uri:
>
> self.load_uri('file://' + DEFAULT_ERROR_PAGE)
>
> That file is generated every time that the web page can't be reached
> for any reason.
>
> See you,
>
> --
> Kaufmann Manuel
> Blog: http://humitos.wordpress.com/
> Porfolio: http://fotos.mkaufmann.com.ar/
> PyAr: http://www.python.com.ar/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
--
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120918/4bceed6b/attachment.html>
More information about the Sugar-devel
mailing list