I think I ran into the same problem. As far as I can tell, the
message bundle won't be used if you only specify the language.
According to the Orkut localization article (1), you should be able to
specify the location of a Portuguese message bundle like this:
However, it only seems to work if you specify the country in the lang
attribute, like this:
<Locale lang="pt-BR" messages="
http://example.com/hello/pt_ALL.xml""/>
The Google Gadget documentation (2) indicates that the country should
be specified in a separate country attribute, but that doesn't seem to
work either. I could only get Orkut to recognize the message bundle
by specifying both the language and country in the lang attribute.
References:
(1)
http://code.google.com/p/opensocial-resources/wiki/OrkutLocalization
(2)
http://code.google.com/apis/gadgets/docs/i18n.html#Bundles
On Apr 29, 8:13 pm, sharath <
sharath2...@gmail.com> wrote:
> Hi Rohit,
>
> Thanks for the reply, its working fine.
> Also we discussed earlier about writing into activity stream on
> application install.
> It would be great if you can let me know the way to achieve it.
>
> Thanks and Regards
> Sharath
>
> On Apr 29, 10:04 pm, Rohit Ghatol <
rohitsgha...@gmail.com> wrote:
>
> > Hi Sharath,
>
> > Here is a working example. It haslocalizationfor Portuguese also.
> > > > have the following 2 lines in your gadget ModulePrefs, withhttp://
example.com/hello/replacedwiththelocation where your
> > > > message bundles are hosted:
>
> > > > <Locale lang="en" messages="
http://example.com/hello/en_ALL.xml"/>
> > > > <Locale lang="pt" messages="
http://example.com/hello/pt_ALL.xml"/>
>
> > > > For a quick test, you would be better of trying the __MSG_desc__ in
> > > > your gadget body. I am not sure what the caching policy is for the
> > > > gadget description on the Orkut sandbox.
>
> > > > If you want to see thelocalizationworking for a gadget, check
> > > > > > > I went throughLocalizationwiki and tried few sample programs with