[Sugar-devel] detecting the locale while in Browse?

Tomeu Vizoso tomeu at tomeuvizoso.net
Fri Feb 26 12:04:14 EST 2010


On Wed, Feb 24, 2010 at 16:01, Bryan Berry <bryan at olenepal.org> wrote:
> An issue for localizing karma lessons is detecting the Sugar locale.
> Is there a way to access it from within  Browse?
>
> the property navigator.language doesn't change according to the Sugar locale.

I think Browse is sending the Accept-Language HTTP header? Not sure
from which version, though:

http://git.sugarlabs.org/projects/browse/repos/mainline/blobs/master/webactivity.py#line136

Regards,

Tomeu

> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


More information about the Sugar-devel mailing list