Hi Joel,

Take a look at the service.js file under features/container directory.
The language and locale is passed to server when trying to get
metadata for gadget

Hope this helps.

- Henry

On Mon, Apr 2, 2012 at 9:20 PM, Joel Cairney <[email protected]> wrote:
> Hello shindig-users-help,
>
>
>
> I've seen in the OpenSocial spec that in some version after OpenSocial
> v0.9, the proper way to tell the gadget server the Locale of the
> container is to pass functions returning the language and country as
> properties of the container config object:
>
>
>
> var config = {
>                GET_LANGUAGE: function() { return 'en' },
>
>                GET_COUNTRY: function() { return 'us' },              //
> as a really simple example
>
> };
>
>
>
> var container = new shindig.container.Container(config);
>
>
>
> (extrapolating from here:
> https://cwiki.apache.org/confluence/display/SHINDIG/Common+Container,
> and here
> http://opensocial-resources.googlecode.com/svn/spec/2.0/incubating/Core-
> Container.xml)
>
>
>
> However, new .Container() doesn't check for GET_LANGUAGE or GET_COUNTRY,
> and the constants are not found in the shindig.container.ContainerConfig
> set of constants where the other properties are named.  So how is
> setting the Locale done with the version of OpenSocial implemented as
> part of Shindig 2.0?
>
>
>
> Much obliged,
>
> --Joel
>

Reply via email to