Hi Igor,
I pinged the team about this and it's expected behavior. Looking at your web
page example, the url of the iframe containing the gadget has the parameters
lang=all and country=ALL:

<iframe src="
http://www-open-opensocial.googleusercontent.com/gadgets/ifr?url=http%3A%2F%2Fgfarry.com%2F%2F%2Fgadgets%2Ft1.xml&amp;container=open&amp;view=home&amp;lang=all&amp;country=ALL&amp;debug=0&amp;nocache=0&amp;v=c2d3b111b4e94fc2&amp;source=http%3A%2F%2Fgfarry.com%2Ft3.htm&amp;parent=http%3A%2F%2Fgfarry.com%2Ft3.htm&amp;libs=core%3Acore.io#st=%25st%25";
width="300" height="200" style="display:block;" frameborder="0"
scrolling="no"></iframe>

hth,
Rob Russell
Google Developer Relations


On Tue, Nov 2, 2010 at 10:54 PM, gfarry <[email protected]> wrote:

> gadgets.Prefs.getCountry() returns correct country code when gadget is
> added to iGoogle page.
> But it returns "ALL" if gadget is located on external server.
>
> example:
> gadget: http://gfarry.com//gadgets/t1.xml
> web-page: http://gfarry.com/t3.htm
>
> if you click on "+Google" button and add the gadget to your iGoogle
> page - it will show correct country code.
>
> The same is with getLang(): returns "all".
>
> Is it a bug or it works as expected?
>
> Is there any gadget API to detect client's IP address?
>
> Thanks,
> Igor
>
> --
> You received this message because you are subscribed to the Google Groups
> "iGoogle Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-gadgets-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en.

Reply via email to