Hi Henry,

I haven't been able to find a service.js or a features folder in my 
installation.  But I'm not too familiar with how things are laid out, so they 
may be there.

In any case, how do I make use of this knowledge in code to make sure the right 
language and country are passed?

Thanks,
Joel

-----Original Message-----
From: Henry Saputra [mailto:[email protected]] 
Sent: Wednesday, April 04, 2012 2:14 PM
To: [email protected]
Subject: Re: How can a gadget container tell shindig what the Locale is?

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/Cor
> e-
> 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
>

--
Click the link below to report this message as spam to Caseware E-Mail Security 
Server ESVA. 
http://esva5.caseware.com/cgi-bin/learn-msg.cgi?id=9A769287F9.EE858



Reply via email to